Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-08-06, 11:04 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
How to execute a slash-command?

Hello,

Sorry if it is a stupid question but I would like to execute a slash-command in a script and I don't know how this can be done.

I tried:

local myCommand = "/raresist";
RunScript(myCommand);
SendChatMessage(myCommand,"SAY");
SendChatMessage(myCommand,"EMOTE");
DoEmote(myCommand);
ConsoleExec(myCommand);

but nothing works

Thanks for youy help!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to execute a slash-command?

Thread Tools
Display Modes

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