WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   SendWho Issue (https://www.wowinterface.com/forums/showthread.php?t=40744)

czarathustra 07-04-11 11:49 PM

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.

Dainton 07-05-11 01:19 AM

Code:

/script query = 'z-\"Orgrimmar\" r-\"Blood Elf\"'
Use it like this.

czarathustra 07-05-11 01:52 PM

That seems to have fixed it. I thought I'd tried that iteration, but I guess not.

Thanks.


All times are GMT -6. The time now is 11:12 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI