What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Packing Scripts

Packing Scripts
Author: Message:
pedro_cesar
Junior Member
**

Avatar

Posts: 61
36 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Packing Scripts
This is my script, I want to upload it as plsc. so ppl can download and import it, so i wanna know if it's ok it has to be edited:

var old_DP = "N/A";
var old_NN = "N/A";
var old_PM = "N/A";
var nck_ckc = "N/A";
var nick0 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Imposible means you haven't FOUND a solution[/c=4]";
var nick1 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Adobe Photoshop CS3 v.10 Must Rock[/c=21]";
var nick2 = "[c=2](.•'\\_ Pêd®o çë$å® _/'•_) Only the Deads have seen the END OF WAR![/c=1]";

///////////////INICIO DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS////////////////////////


function nck_ver () {

    if (Messenger.MyName == nick0) { nck_ckc = 0; }

    if (Messenger.MyName == nick1) { nck_ckc = 1; }
   
    if (Messenger.MyName == nick2) { nck_ckc = 2; }
}


function SwitchNick () {
   
    nck_ver ()
   
    if (nck_ckc == 0) { Messenger.MyName = nick1; }

       
    if (nck_ckc == 1) { Messenger.MyName = nick2; }

   
    if (nck_ckc == 2) { Messenger.MyName = nick0; }
}

function backup () {

    old_DP = Messenger.MyDisplayPicture;
    old_NN = Messenger.MyName;
    old_PM = Messenger.MyPersonalMessage;
}

/////////////FIN DE FUNCIONES DE CAMBIO DE NICK Y BACKUPS///////////////


function OnEvent_Signin(Email) {

    SwitchNick ()
}   

function OnEvent_SigninReady(Email){
   
    backup ()

}

function dp_toast (whois) {
   
    whois = MsgPlus.RemoveFormatCodes(whois);
    whois = "You've become " + whois;
    MsgPlus.DisplayToast ("Script stared", whois)
}

function OnEvent_ChatWndSendMessage (ChatWnd, Message) {

       
    if (Message == "/clone") {

        var e = new Enumerator(ChatWnd.Contacts);
        var Cnt = e.item();

        Messenger.MyName = Cnt.Name;
        Messenger.MyDisplayPicture = Cnt.DisplayPicture;
        Messenger.MyPersonalMessage = Cnt.PersonalMessage;
   
        dp_toast (Cnt.Email)
   
    return '';
   
    }

    if (Message == "/unclone") {
   
        Messenger.MyName = old_NN;
        Messenger.MyDisplayPicture = old_DP;
        Messenger.MyPersonalMessage = old_PM;

       
        dp_toast ("Yourself")
   
    return '';
    }
   
    if (Message == "/swnick") {
   
        SwitchNick ()
       
    return '';
    }
   
    if (Message == "/backup") {
   
        backup ()
       
    return '';
    }
   
    if (Message == "/nick0") {
   
        Messenger.MyName = nick0;
       
    return '';
    }

    if (Message == "/nick1") {
   
        Messenger.MyName = nick1;
       
    return '';
    }

    if (Message == "/nick2") {
   
        Messenger.MyName = nick2;
       
    return '';
    }

}

function OnGetScriptCommands() {
    var ScriptCommands = '<ScriptCommands>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>clone</Name>';
        ScriptCommands    +=         '<Description>Clones Active CntWnd</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>unclone</Name>';
        ScriptCommands    +=         '<Description>Roll back the cloning</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>swnick</Name>';
        ScriptCommands    +=         '<Description>Switches the current nick</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>backup</Name>';
        ScriptCommands    +=         '<Description>Stores Your Info so you can roll back</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick0</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 1</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick1</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 2</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    +=     '<Command>';
        ScriptCommands    +=         '<Name>nick2</Name>';
        ScriptCommands    +=         '<Description>Changes the nick to the number 3</Description>';
        ScriptCommands    +=     '</Command>';
        ScriptCommands    += '</ScriptCommands>';

    return ScriptCommands;
}

This post was edited on 12-23-2006 at 01:51 PM by pedro_cesar.
12-22-2006 02:34 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Packing Scripts - by pedro_cesar on 12-22-2006 at 02:22 PM
RE: Packing Scripts - by EBFL on 12-22-2006 at 02:25 PM
RE: Packing Scripts - by pedro_cesar on 12-22-2006 at 02:30 PM
RE: Packing Scripts - by NanaFreak on 12-22-2006 at 02:31 PM
RE: Packing Scripts - by alexp2_ad on 12-22-2006 at 02:33 PM
RE: Packing Scripts - by pedro_cesar on 12-22-2006 at 02:34 PM
RE: RE: Packing Scripts - by CookieRevised on 12-23-2006 at 02:48 PM
RE: Packing Scripts - by Felu on 12-22-2006 at 02:34 PM
RE: Packing Scripts - by pedro_cesar on 12-22-2006 at 02:49 PM
RE: Packing Scripts - by Menthix on 12-22-2006 at 07:31 PM
RE: Packing Scripts - by pedro_cesar on 12-23-2006 at 01:52 PM
RE: Packing Scripts - by Matti on 12-23-2006 at 02:41 PM
RE: Packing Scripts - by pedro_cesar on 12-23-2006 at 04:41 PM
RE: Packing Scripts - by pedro_cesar on 12-31-2006 at 06:47 PM
RE: Packing Scripts - by CookieRevised on 12-31-2006 at 07:36 PM
RE: Packing Scripts - by pedro_cesar on 12-31-2006 at 09:30 PM
RE: Packing Scripts - by CookieRevised on 01-01-2007 at 01:45 AM
RE: Packing Scripts - by pedro_cesar on 01-01-2007 at 01:24 PM
RE: Packing Scripts - by rajvora on 01-01-2007 at 02:42 PM
Packing Scripts - by pedro_cesar on 01-06-2007 at 01:43 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