12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 21 ■ Responding to the Combat Log <strong>and</strong> Threat In<strong>for</strong>mation 393effect or a one-shot effect, one <strong>of</strong> these two events will fire. The followingarguments are included:amount—The amount <strong>of</strong> power gained.powerType—The type <strong>of</strong> power that was gained. See the listing <strong>for</strong> theENERGIZE suffix.extraAmount—The extra amount <strong>of</strong> power that was gained as a bonus <strong>of</strong>the spell. For example, Viper Sting awards 300% <strong>of</strong> the power leeched.DRAIN <strong>and</strong> PERIODIC_DRAIN—When one actor drains a resource from histarget, one <strong>of</strong> these events will occur. Depending on whether the spell isa periodic effect or a one-shot effect, one <strong>of</strong> these two events will fire. Thefollowing arguments are included:amount—The amount <strong>of</strong> power gained.powerType—The type <strong>of</strong> power that was gained. See the listing <strong>for</strong> theENERGIZE suffix.extraAmount—The extra amount <strong>of</strong> power that was gained as a bonus<strong>of</strong> the spell. For example, Viper Sting awards 300% <strong>of</strong> the powerleeched.Spell-Only SuffixesThe following combat suffixes only fire <strong>for</strong> the SPELL prefix:SUMMON—Fires when an actor summons an NPC such as a totem ornon-combat pet. No additional arguments are included.RESURRECT—Fires when a player is resurrected. No additional argumentsare included.CREATE—Fires when a new object is created (as opposed to summonedNPCs), such as a hunter’s pet or mage portal. No additional argumentsare included.INSTAKILL—Fires when a spell instantly kills an actor. No additionalarguments are included.INTERRUPT—Fires when a spell is interrupted. The first set <strong>of</strong> spellarguments (from the prefix) will be the ability that was responsible <strong>for</strong>the interruption. The following arguments are included:extraSpellID—The numeric identifier <strong>for</strong> the spell that wasinterrupted.extraSpellName—The name <strong>of</strong> the spell that was interrupted.extraSchool—The school <strong>of</strong> the spell that was interrupted.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!