What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Problems With First Script

Problems With First Script
Author: Message:
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Problems With First Script
i think this should work for you

NOTE: i have not tested this so please dont get up me if it is wrong ;)

code:
function CambiaStatus();{
    var status = Messenger.MyStatus; //find your status
    var pstatus;
    if(status!=9){ //if it's not "lunch", it sets to "lunch"
        //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"){
        //do something????
        //maybe  CambiaStatus();??
    }

}

function OnGetScriptCommands(){

    return '<ScriptCommands><Command><Name>pappa</Name><Description>Avverte tutti che stai andando a pranzo</Description></Command></ScriptCommands>';
}

OnEvent_MenuClicked(MenuItemId,Location,OriginWnd){
    CambiaStatus();
}
02-05-2007 08:51 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problems With First Script - by Twiz on 02-05-2007 at 08:24 PM
RE: Problems With First Script - by NanaFreak on 02-05-2007 at 08:51 PM
RE: RE: Problems With First Script - by roflmao456 on 02-06-2007 at 01:44 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On