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