WoW:API CastSpellByName: Difference between revisions

Added new 1.10 Operation Procuder
No edit summary
(Added new 1.10 Operation Procuder)
Line 28: Line 28:


----
----
;''Note:''
;''Notes:''
: You might encounter difficulties when using this on a localized version of WoW.
: You might encounter difficulties when using this on a localized version of WoW.
: See the [[HOWTO:_Localize_an_AddOn#Unicode|Unicode part]] of the Localization HOWTO for more details about editing a source file containing localized strings.
: See the [[HOWTO:_Localize_an_AddOn#Unicode|Unicode part]] of the Localization HOWTO for more details about editing a source file containing localized strings.


: This problem does only appear when working with Lua source files. When you're using macros, inside the WoW client, it should work in unicode directly.
: This problem does only appear when working with Lua source files. When you're using macros, inside the WoW client, it should work in unicode directly.
:In patch 1.10, this function operates when called From; Button presses, Slash Commands and '''some''' Events. (PLAYER_TARGET_CHANGED is the only one i have found, but there may be more, i assume Events that are called In reaction to Player's Actions are those that work.)


----
----


An FYI, as an antibot measure, this function only operates when called
directly from a button click.  If you try to call it from an event handler such as OnEvent(event) or OnUpdate(elapsed) it will not work.
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user