LibUnitControl-1.0

  • 3 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
Callback Usage Draake Draake Oct 07, 2010
Registering Events This library uses CallbackHandler-1.0, so registering for an event is as easy as: local luc = LibStub("LibUnitControl-1.0") function MyAddon:UnitGainControl(unitID) DEFAULT_CHAT_FRAME:AddMessage( UnitName(unitID) .. " has gained control of their character!" ) end function MyAddon:UnitLostControl(unitID) DEFAULT_CHAT_FRAME:AddMessage( UnitName(unitID) .. " has lost control of their character!" ) end function MyAddon:Initialize() luc.RegisterCallback(self,...
LibUnitControl-1.0 API Draake Draake Nov 18, 2010
SetEventHandle(event, func) Event and Utility Functions Parameters event func lib:GetEffectMaskByName(...) Retrieve the bitmask that corresponds to the given effect strings. Parameters ... One or more of the following strings: BANISH, CHARM, CONFUSE, DISARM_MH, DISARM_OH, DISARM_RS, DISORIENT, ENRAGE, FEAR, FREEZE, HORRIFY, INCAPACITATE, PACIFY, POLYMORPH, ROOT, SAP, SHACKLE, SILENCE, SLEEP, SNARE, STUN, TURN, WOUND. Return value An effect bitmask. lib:GetEffectMaskBySpell(spellID) Retrieve a...
Main Draake Draake Oct 23, 2010
A library which provide tools for detecting adverse effects on units (such as those that cause you to lose control of your character). Includes: Individual API's used to indicate whether a specified unit is Asleep/Banished/Charmed/Confused/Disoriented/Ensnared/Feared/Frozen/Horrified/Incapacitated/Polymorphed/Sapped/Shackled/Stunned/Turned/Disarmed/Pacified/Rooted/Silenced (as well as Enraged/Wounded) or has simply lost control of their character. Can differentiate between...
  • 3 pages found