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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 15 ■ Taking Action with Secure Templates 293macrotext—The text <strong>of</strong> a macro. Set this to a Lua string containing themacro you want to run. This text is limited to 1023 bytes (usuallybut not always single characters). A “macro“ attribute will override a“macrotext“ one.cancelaura—Removes a buff from the player, including secured buffs suchas druid <strong>for</strong>ms. Subordinate attributes:index—The number <strong>of</strong> the buff to remove from the player, in an arbitraryorder.spell—The name <strong>of</strong> the buff to be removed. Ignored if index is present.rank—The rank <strong>of</strong> buff to remove. Ignored if index is present.stop—Cancels the target selection cursor (glowing blue h<strong>and</strong>). No subordinateattributes are used.target (U)—Manages unit targeting. If the unit attribute is set to none, theaction will clear the player’s target. If the player has a spell that is awaitinga target (showing the glowing h<strong>and</strong>), the action will choose the target <strong>for</strong>that spell. If the player’s cursor is holding an item, this action will dropthe item on that unit (initiate trade, equip, <strong>and</strong> so <strong>for</strong>th). Otherwise, thisaction just targets the specified unit.focus (U)—Focuses on the given unit.assist (U)—Assists the specified unit.maintank (U)—Sets the unit as a main tank <strong>for</strong> the raid. Subordinateattribute:action—A string indicating what assignment action should be taken:set—Sets the role on the given unit.clear—Clears the role from the given unit.toggle—Toggle the role <strong>for</strong> the given unit.mainassist (U)—Sets the unit as a main assist <strong>for</strong> the raid.action—A string indicating what assignment action should be taken:set—Sets the role on the given unit.clear—Clears the role from the given unit.toggle—Toggle the role <strong>for</strong> the given unit.click—Securely simulates a click on another button. Subordinate attribute:clickbutton—The button to click. This must be a direct reference, not thename <strong>of</strong> the button.

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

Saved successfully!

Ooh no, something went wrong!