Register new account
==Custom Actions The Custom Code section of the Actions tab can be used to execute custom Lua commands whenever a display is shown or hidden. For a list of all commands that interact with the WoW client, see [[http://www.wowpedia.org/Wow_API|the WoW API]]. Note that some actions, like moving or casting spells, cannot be executed by Lua code. For more information on Lua syntax, see [[http://www.lua.org/pil/|Programming in Lua]]. There is a special variable provided by WeakAuras that holds the [[http://www.wowpedia.org/UnitId|UnitID]] of the unit currently being scanned for auras. This is really only useful for Group-based Aura triggers. For example, if you create a display with the following trigger settings: The display's On Show Custom Code can be used to announce the name of the person on whom Beacon of Light is cast, with the following code: <<code lua>> SendChatMessage("Beacon of Light on "..GetUnitName(WeakAuras.CurrentUnit), "RAID") <</code>>
The type of markup for this entry.
Click here for details