Wowpedia

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

READ MORE

Wowpedia
Advertisement

This event is fired when the players gear changes.

PLAYER_EQUIPMENT_CHANGED: equipmentSlot, hasCurrent

Payload[]

equipmentSlot
number - InventorySlotId
hasCurrent
boolean - True when a slot becomes empty, false when filled.

Details[]

  • The second payload value was historically documented doing the reverse; true (1) when filled or false (nil) otherwise. [1][2]
  • Modern FrameXML code labels the payload hasCurrent but does not actually use this payload, so the developer intent is unclear.
  • It is unknown if the return values in fact 'flipped' at some point, or if the early documentation was simply wrong.

References[]

Advertisement