O.P. Problems With First Script
Hello everybody!
I wrote this script just to try, but it doesn't work! I can call it from my chat window! how can I do?
CODE:
function CambiaStatus(){
var status, pstatus;
//find your status
status=Messenger.MyStatus;
//if it's not "lunch", it sets to "lunch"
if(status!=9){
//should say all you're going
debug.trace("/all pappa-time, a dopo!!!");
//sets the status
Messenger.MyStatus=9;
pstatus=status;
}
//else put "online" as status
else{
if(pstatus==0)
Messenger.MyStatus=3;
else
Messenger.Mystatus=pstatus;
}
}
function OnEvent_ChatWndSendMessage(ChatWnd,Message ){
if(Message=="/pappa")
}
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>pappa</Name>';
commands+='<Description>Avverte tutti che stai andando a pranzo</Description>';
return commands;
}
OnEvent_MenuClicked(MenuItemId,Location,OriginWnd){
CambiaStatus();
}
|