Hello..
I tried to make my own command. Like this: /test
It doesnīt matter how I try.. I canīt get this to work..
-------------------------------------------------------------------------
var test1 = 'Hello World!';
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>test</Name>";
ScriptCommands += "<Description>testing</Description>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
<<Some kind of switch>> (donīt know how)
switch ("some thing") {
case "/test": return function();
}
}
function() {
ChatWnd.SendMessage(test1);
}
-------------------------------------------------------------------------
can someone explane the switch and how to use it..
and the return when you have typed the "/test".. I am not sure if thatīs correkt either
//Bewwen