Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
mNo edit summary
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  +
{{wowapi}}
<center>'''''SendWho''''' - ''Documentation by [[User:EDG|EDG]]''</center>
 
   
 
Sends a [[Who List|Who request]], much like using the [[Slash Command|slash command]] ''/who'' or entering a query in the entry field of the [[Who List]].
 
Sends a [[Who List|Who request]], much like using the [[Slash Command|slash command]] ''/who'' or entering a query in the entry field of the [[Who List]].
Line 37: Line 37:
 
'''''Result'''''
 
'''''Result'''''
 
: Searches for Night Elf Rogues in Teldrassil, of levels 10-15, with the string "bob" in their names.
 
: Searches for Night Elf Rogues in Teldrassil, of levels 10-15, with the string "bob" in their names.
----
 
{{template:WoW API}}
 

Revision as of 16:25, 4 December 2007

Sends a Who request, much like using the slash command /who or entering a query in the entry field of the Who List.

SendWho(filter)

Arguments

(String filter)
filter
The critera for which you want to perform a Who query, surrounded by quotation marks. This can be anything for which you could normally search in a Who query:
  • Name (minimum of 3 characters; string can appear anywhere in the name)
  • Name (n-\"<char_name>\")
  • Zone (z-\"<zone_name>\")
  • Race (r-\"<race_name>\")
  • Class (c-\"<class_name>\")
  • Guild (g-\"<guild_name>\")
  • Level (<lower_limit>-<higher_limit> or <single_level>)
These can be combined, but no more than one of each type can be searched for at once. Note that the quotation marks around the zone, race, and class must be present, and they must be escaped (\").
None of these are required; you may send a blank query:
/script SendWho("");
This returns up to 50 apparently-random players, throughout the world, as if you had simply typed "/who" into the chat frame. (The quotation marks must be present, even if you are not submitting any criteria!)

Returns

SendWho appears to always return nil.

Example

SendWho('bob z-"Teldrassil" r-"Night Elf" c-"Rogue" 10-15');

Result

Searches for Night Elf Rogues in Teldrassil, of levels 10-15, with the string "bob" in their names.