WoW:MACRO who: Difference between revisions

1,130 bytes added ,  26 May 2010
→‎Notes: Clarification on result query
(Punc, grmr, correcting Notes: all results, not intersection of sets returned, tighten)
(→‎Notes: Clarification on result query)
Line 6: Line 6:


== Aliases ==
== Aliases ==
None.
:none
 


== Arguments ==
== Arguments ==
Filter: Players are queried on name, guild name, zone, race, class, and level with the following parameters:
:;filter : Filtering options to perform the query with.  Players are queried based on name, guild name, zone, race, class, and level.
 
=== Filtering ===
You may specify custom filters per field by using the following formats:


:n-"name"
:n-"name"
Line 18: Line 22:
:level
:level
:minlevel-maxlevel (all numeric queries are assumed to be level)
:minlevel-maxlevel (all numeric queries are assumed to be level)


== Examples ==
== Examples ==
Line 26: Line 31:
  /who 80 r-"Draenei" c-"Priest"
  /who 80 r-"Draenei" c-"Priest"
  /who 80 Draenei Priest
  /who 80 Draenei Priest
-- This example will return warriors in Shadowmoon Valley, as well as people with
-- "warrior" in their name or guild name. For example, maybe a pally named Warriorsbane
-- or someone in the guild "Warriors of Azeroth".
/who z-"Shadowmoon Valley" Warrior


== Notes ==
== Notes ==
*Returns up to a maximum of 49 players.
:Returns up to a maximum of 49 players.
*If search values are not assigned to a particular field, all fields are queried and all results are returned (up to the maximum).
:If given search terms are not assigned to a particular field, all fields are queried for all terms, and the results are the Union of all sets returned per term, in Intersection with the results of all terms.  A detailed explanation follows:
 
filter1: 80 c-"Priest"
set A = all level 80's (it is technically impossible for a person to have 80 in their name, due to naming restrictions, but if this were not the case, you'd see those too).
set B = all characters of the class Priest
result = A ∩ B
filter2: 80 Priest
set A = all level 80's
set B = all characters of the class Priest
set C = all characters named priest
set D = all characters in a guild with 'Priest' in the name
result = [A ∩ (B U C U D)]
Note that set B C and D are all created with the second term
Priest would also return all people in a zone with 'Priest' in the name, but no such zone exists.
Anonymous user