O.P. RE: what is wrong?
thanks...
now the problem is:
ex
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if (Message.toLowerCase() == "/rafa") // prevenir erros. (ex. !RaFa)
{
var text="i'm rafa"
ChatWnd.SendMessage(text);
}
}
//outro
function OnGetScriptCommands()
{
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>rafa</Name>";
ScriptCommands += "<Description>tell who i am</Description>";
ScriptCommands += "</Command>";
ScriptCommands += "</ScriptCommands>";
return ScriptCommands;
}
ok... it works...
but gives me a anoying beep song and a erros message that says something like that:
if you want to type /rafa try typing //rafa
edit: mistakes
big progress xD
This post was edited on 09-02-2007 at 04:46 PM by 89rafa.
|