Wowpedia

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

READ MORE

Wowpedia
Advertisement

Many of the API functions which act on units in the game world (Players, NPC's, Monsters, etc) refer to the unit in question by an identifier that is related to how the player is accessing the unit. The following values are available:

Values

"player"
The current player
"pet"
The current player's pet
"party1"
The first other party member
"party2"
The second other party member
"party3"
The third other party member
"party4"
The fourth other party member
"target"
The currently targetted unit
"mouseover"
The unit which the mouse is currently (or was most recently) hovering over

The following value also appears in some very specific places (Vendor interactions, for example)

"npc" or "NPC"
The NPC with which the player is currently interacting.

Notes

Many of the functions which take a UnitId only provide useful results for a subset of ID's. Other functions will only provide information for friendly targets (or those upon which a power is active).

Template:WoW API

Advertisement