Shoutbox

[Request] Imitate function - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Request] Imitate function (/showthread.php?tid=61383)

[Request] Imitate function by MGrove03 on 06-25-2006 at 06:53 PM

Is it possible to make a script like the !imitate function in messenger discovery? Because i hate the messenger discovery program and i think that the !imitate function is the only good thing about it so anyone think this is possible?


RE: [Request] Imitate function by matty on 06-25-2006 at 07:00 PM

* 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 '';
RE: [Request] Imitate function by mathieumg on 06-25-2006 at 07:01 PM

correct your typo :p

code:
        }elese{
            boolEnabled = true;
        }


RE: [Request] Imitate function by Apola Silverstone on 06-25-2006 at 07:06 PM

What is his script for ? ... :p and how would i use it?


RE: [Request] Imitate function by MGrove03 on 06-25-2006 at 07:07 PM

will this also copy the other persons font, font colour etc?


RE: [Request] Imitate function by mathieumg on 06-25-2006 at 07:11 PM

Nope it won't and it changes your nickname when it sends the message. It imitates the imitate feature (haha) which modified the header file of the sent message to use the nickname of the other user (just like chat-only names of Stuffplug) and his font.


RE: [Request] Imitate function by MGrove03 on 06-25-2006 at 07:12 PM

well is there anyway that it could get the other persons name, font, and font colour without changing ur display name at the same time?


RE: [Request] Imitate function by Themuzz on 06-25-2006 at 07:13 PM

It's a bit a buggy script. First of all:

If 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.

And you can's say: !imitate hi, i'm you
Perhaps you can make that :)


greetz Themuzz


RE: [Request] Imitate function by DRaGoM on 06-25-2006 at 07:14 PM

That rules... Discovery is nothing more than imitate and a lot of bugs


RE: [Request] Imitate function by h-t on 06-25-2006 at 07:14 PM

When i run the script i get this:

Im saying 10 times the same thing..

[Image: lol0rc.gif]

Edit:

code:
var boolEnabled = false;
var currentNickName;

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

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



Is my code now
RE: [Request] Imitate function by MGrove03 on 06-25-2006 at 07:19 PM

also when i run the code above and type something it keeps resending the same message over and over again for some reason and is only stopped by the flood protection on Messenger Plus


RE: [Request] Imitate function by Zayl on 06-25-2006 at 08:11 PM

Huh... how do we do the script with the script you have given??
Please!


RE: [Request] Imitate function by Xiphias on 06-27-2006 at 10:10 AM

too bad, can't someone make a working imitate script, or else a chat-only nickname like /xchatname script :(