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

Replace letters
Author: Message:
SnuZZer
Full Member
***

Avatar

Posts: 114
32 / Male / Flag
Joined: Jun 2006
O.P. RE: Replace letters
Hi.
I can't get it work.
This is my code (The text is danish):

code:
var Status = "fra";
var Besked = "";

// LAVER BESKED TIL 1337 HVIS STATUS ER "TIL" // TJEKKER OM DER ER LAVET EN KOMMANDO : START
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if (Status == "til")
    {
        Besked = Message.replace(/A/g,'4');
        Besked = Message.replace(/B/g,'8');
        return Besked;
    }
   
    if (Message == "/leettil") {
    Status = "til";
    MsgPlus.DisplayToast("Leet beskeder", "Leet beskeder er slået til.");
    return;
    }
   
    if (Message == "/leetfra") {
    Status = "fra";
    MsgPlus.DisplayToast("Leet beskeder", "Leet beskeder er slået fra.");
    return;
    }   
}
// LAVER BESKED TIL 1337 HVIS STATUS ER "TIL" // TJEKKER OM DER ER LAVET EN KOMMANDO : SLUT

// LAVER KOMMANDO MENU : START
function OnGetScriptCommands(){
    var kommandoer = '<ScriptCommands>';
        kommandoer += '<Command>';
            kommandoer += '<Name>leettil</Name>';
            kommandoer += '<Description>Slår Leet beskeder til.</Description>';
        kommandoer += '</Command>';
        kommandoer += '<Command>';
            kommandoer += '<Name>leetfra</Name>';
            kommandoer += '<Description>Slår Leet beskeder fra.</Description>';
        kommandoer += '</Command>';
    kommandoer += '</ScriptCommands>';
    return kommandoer;
}
// LAVER KOMMANDO MENU : SLUT

I'm new to MSG Plus! Live programming.
08-19-2006 09:22 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Replace letters - by SnuZZer on 08-18-2006 at 07:31 PM
RE: Replace letters - by KnRd_WC on 08-18-2006 at 08:22 PM
RE: Replace letters - by Ezra on 08-18-2006 at 08:54 PM
RE: Replace letters - by KnRd_WC on 08-18-2006 at 09:35 PM
RE: Replace letters - by SnuZZer on 08-19-2006 at 09:22 AM
RE: Replace letters - by KnRd_WC on 08-19-2006 at 09:53 AM
RE: Replace letters - by SnuZZer on 08-19-2006 at 10:24 AM
RE: Replace letters - by KnRd_WC on 08-19-2006 at 10:34 AM
RE: Replace letters - by SnuZZer on 08-19-2006 at 10:48 AM
RE: Replace letters - by CookieRevised on 08-19-2006 at 01:12 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