What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » scripting help need please

scripting help need please
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: scripting help need please
Gareth_2007,

Note that your general code is completely wrong though. It will not function properly and will returns errors in some cases:
code:
function OnEvent_Initialize(MessengerStart){
    if(MessengerStart==false){
        startcharacter();
        merlin.Show();
        merlin.MoveTo(25,30);
        merlin.Play("Announce");
        merlin.Speak("Hello" + Messenger.MyName);
        merlin.Play("Greet");
        merlin.Play("RestPose");
        merlin.Speak("I'm Merlin, Nice To Meet You!" + Messenger.MyStatus);

        merlin.Speak("Bye");
        merlin.Play("Wave");
        merlin.Hide();
    }else{
        function OnEvent_SigninReady(Email){
            startcharacter();
        }
    }
}

Fixed for what you probably want to do:
code:
function OnEvent_Initialize(MessengerStart){
    if(Messenger.MyStatus > 1){
        OnEvent_SigninReady(Messenger.MyEmail);
    }
}

function OnEvent_SigninReady(Email){
        startcharacter();
        merlin.Show();
        merlin.MoveTo(25,30);
        merlin.Play("Announce");
        merlin.Speak("Hello " + Messenger.MyName);
        merlin.Play("Greet");
        merlin.Play("RestPose");
        merlin.Speak("I'm Merlin, Nice To Meet You! Your status is " + Array("Unknown", "Offline", "Appear Offline", "Online", "Busy", "Be Right Back", "Idle", "Away", "In a Call", "Out to Lunch")[Messenger.MyStatus]);

        merlin.Speak("Bye");
        merlin.Play("Wave");
        merlin.Hide();
}

;)




-------------------------------------------------------------------
quote:
Originally posted by Dennis Mike
switch(Messenger.MyStatus){
case 1:
status = "online"
1 = "Offline", not "Online"


This post was edited on 03-07-2007 at 12:29 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 11:44 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
scripting help need please - by Gareth_2007 on 03-07-2007 at 12:31 AM
RE: scripting help need please - by Dennis Mike on 03-07-2007 at 02:56 AM
RE: scripting help need please - by Felu on 03-07-2007 at 03:14 AM
RE: scripting help need please - by CookieRevised on 03-07-2007 at 11:44 AM
RE: scripting help need please - by Gareth_2007 on 03-07-2007 at 01:55 PM
RE: scripting help need please - by CookieRevised on 03-07-2007 at 02:52 PM


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