What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Imitate function

[Request] Imitate function
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Imitate function
* matty remembers when I made this for wj hahaha.

code:
var boolEnabled = false;
var currentNickName;

function OnEvent_ChatWndReceiveMessage(Wnd, sOrigin, sMessage, nMessageKind){
    if (boolEnabled == true){
        if (currentNickName != sOrigin){
            currentNickName = Messenger.MyName;
            Messenger.MyName = sOrigin;
            Wnd.SendMessage(sMessage);
            //Messenger.MyName = currentNickName;
        }
    }
}

function OnEvent_ChatWndSendMessage(Wnd, sMessage){
    if (sMessage == '!imitate'){
        if (boolEnabled == true){
            boolEnabled = true;
            Messenger.MyName = currentNickMame;
            return '';
        }else{
            boolEnabled = true;
            return '';
        }
    }
}

quote:
Originally posted by Themuzz
f you type !imitate in the convo then the script will imitate it self.. So it doesn't imitate the thing the person said as last.

Edit thanks, I typed that in 2 mins I corrected it, forgot to add return '';

This post was edited on 06-25-2006 at 07:26 PM by matty.
06-25-2006 07:00 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] Imitate function - by MGrove03 on 06-25-2006 at 06:53 PM
RE: [Request] Imitate function - by matty on 06-25-2006 at 07:00 PM
RE: [Request] Imitate function - by mathieumg on 06-25-2006 at 07:01 PM
RE: [Request] Imitate function - by Apola Silverstone on 06-25-2006 at 07:06 PM
RE: [Request] Imitate function - by MGrove03 on 06-25-2006 at 07:07 PM
RE: [Request] Imitate function - by mathieumg on 06-25-2006 at 07:11 PM
RE: [Request] Imitate function - by MGrove03 on 06-25-2006 at 07:12 PM
RE: [Request] Imitate function - by Themuzz on 06-25-2006 at 07:13 PM
RE: [Request] Imitate function - by DRaGoM on 06-25-2006 at 07:14 PM
RE: [Request] Imitate function - by h-t on 06-25-2006 at 07:14 PM
RE: [Request] Imitate function - by MGrove03 on 06-25-2006 at 07:19 PM
RE: [Request] Imitate function - by Zayl on 06-25-2006 at 08:11 PM
RE: [Request] Imitate function - by Xiphias on 06-27-2006 at 10:10 AM


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