matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: My First Script, some problems
code: function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if (Message === "/command1") {
ChatWnd.SendMessage("command1");
return "";
} else if (Message === "/command2") {
ChatWnd.SendMessage("command2");
return "";
}
}
|
|