WoW:API CastSpell: Difference between revisions

153 bytes removed ,  26 November 2008
m
Removed invalid statement. CastSpell and CastSpellByName still work for opening trade skill windows outside of secure code. Don't believe me? Try it.
m (Removed invalid statement. CastSpell and CastSpellByName still work for opening trade skill windows outside of secure code. Don't believe me? Try it.)
Line 18: Line 18:


==Note==
==Note==
Use "spell" or SpellBookFrame.booktype as the spellbookType for any non-pet spell. The id is counted from 1 through all spell types (tabs on the right side of SpellBookFrame). Pet spells also start from 1. (See example above). The CastSpell function can not be used outside Blizzard-signed code.
Use "spell" or SpellBookFrame.booktype as the spellbookType for any non-pet spell. The id is counted from 1 through all spell types (tabs on the right side of SpellBookFrame). Pet spells also start from 1. (See example above). The CastSpell function can not be used outside Blizzard-signed code except when "casting" trade skills (e.g. Cooking, Alchemy, etc.).
 
It was previous claimed that this could still be used to open craft windows and activate lock picking, but opening craft windows with an unprotected call is no longer possible. Lock picking is as of yet unconfirmed.
Anonymous user