View Single Post
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