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:
KnRd_WC
Junior Member
**

Avatar
Florian PAQUET

Posts: 74
Reputation: 1
35 / Male / Flag
Joined: Aug 2006
RE: Replace letters
Hi Snuzzer,

Try this :

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")
{
Message = Message.replace(/A/g,'4');
Message = Message.replace(/B/g,'8');
return Message;
// Original Code :
// Besked = Message.replace(/A/g,'4'); // Ok, here you will replace "A" in Message string and store the new string in Besked.
// Besked = Message.replace(/B/g,'8'); // And here, you do the same thing, but with "B". You will ONLY replace "B" in Message string.
// return Besked;
}

if (Message == "/leettil") {
Status = "til";
MsgPlus.DisplayToast("Leet beskeder", "Leet beskeder er slået til.");
return ""; // Here you have to return "", if not, it's the message error
}

if (Message == "/leetfra") {
Status = "fra";
MsgPlus.DisplayToast("Leet beskeder", "Leet beskeder er slået fra.");
return ""; // Same as above
}
}
// 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


;)
08-19-2006 09:53 AM
Profile 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