Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-27-09, 11:47 PM   #1
Zelik
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Feb 2009
Posts: 7
Opening Trade Windows With CastSpellByName()

An addon that I am making requires trade windows to be opened/closed automatically.

While CastSpellByName() is a protected function, the game does not seem to block calling it to open a trade window.

If I type in "/run CastSpellByName("Tailoring")", than it works fine. However, I cannot get a trade window to be opened as the result of an event, which is what I'd like.

Is this intended? Is there a way to work around it?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Opening Trade Windows With CastSpellByName()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off