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"