Thread Tools Display Modes
07-04-11, 11:49 PM   #1
czarathustra
A Murloc Raider
Join Date: Jul 2011
Posts: 4
SendWho Issue

I have problem with the SendWho function. If I issue the following command from the console:

Code:
/script SendWho('z-"Orgrimmar" r-"Blood Elf"')
I get expected results: All blood elves in Orgrimmar.

If, however, I assign the filter to a variable and issue the command, as in:

Code:
/script query = [['z-"Orgrimmar" r-"Blood Elf"']]
/script SendWho(query)
I get zero results.

I've tried escaping the various quotation marks, etc. to no avail. I want to be able to sequentially assign different values to variables called zone and race and issue SendWho commands, but have had no luck. Any ideas on how to deal with or work around this problem? I can issue it without the different fields, but I get false positives, for instance if the sequence "orc" appears anywhere in the name or guild that a person is in.
  Reply With Quote
07-05-11, 01:19 AM   #2
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Code:
/script query = 'z-\"Orgrimmar\" r-\"Blood Elf\"'
Use it like this.
  Reply With Quote
07-05-11, 01:52 PM   #3
czarathustra
A Murloc Raider
Join Date: Jul 2011
Posts: 4
That seems to have fixed it. I thought I'd tried that iteration, but I guess not.

Thanks.

Last edited by czarathustra : 07-05-11 at 01:53 PM. Reason: typo
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SendWho Issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off