Ok. So I've tried quite a few different things with sending a response, but it crashes whenever I try and send a message...
What am I doing wrong?
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Origin, Message, MessageKind){
if (Message.substr(0,6).toLowerCase() == "/AwayI"){
var param = Message.substr(7);
switch(param){
case "enable":
AI.State = true;
break;
case "disable":
AI.State = false;
break;
case "commands":
alert("Enable\nDisable\nCommands");
break;
/*default:
alert("Invalid Command! Type \"/AwayI Commands\" to see a list of valid commands");
break;
*/
}
}
}