Shoutbox

[Request] AntiMock - 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] AntiMock (/showthread.php?tid=62717)

[Request] AntiMock by Nushio on 07-07-2006 at 03:19 AM

A friend and script kiddy named Mike recently stumbled upon The Mocker script for Messenger Plus. Its been annoying me to no end, so I started developing the AntiMocker.

At first, I would simply reply with stuff like "//nick I am stupid", and he would type the same thing making his nickname "I am stupid". It was all fun till he blocked commands.

I started work based on the original Mocker, but have not yet succeeded.
Is there a way I can detect if the message being received is the same as the one I sent, thus prevent it from being printed out in the chat window?

Any help is sure appreciate it.

Here's a piece of code I developed based on The Mocker

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
    if(Message == "AntiMock")
    {
        antiMock = '1'
    }
   
    if(Message == "AntiMockOff")
    {
        antiMock = '0'
    }
   
    if(Message == "AntiMock?")
    {
        if(antiMock == '0')
        {
            Interop.Call("User32.dll", "MessageBoxW", 0, "AntiMocker Is OFF","Status", 0);
        } else {
            Interop.Call("User32.dll", "MessageBoxW", 0, "AntiMocker Is ON","Status", 0);   
        }
    }
    newMessage = Message;
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
    lastMessage = Message;
    if(antiMock == '1')
    {
        if (newMessage == lastMessage )
        {
            return false;
//This is where the blocking code should be placed at, I think.
        }
    }
   
}

Another question:
When I send a message, does MSN take it as a "Received Message"? Because I often get "message failed to be delivered" when testing The AntiMocker.


-Nushio
RE: [Request] AntiMock by S4mP410 on 07-07-2006 at 03:24 AM

Just Say " NoMock " and the other guy will repeat, disactivating the Mock Script :grin:


Edit: Grammar


RE: [Request] AntiMock by Silentdragon on 07-07-2006 at 03:26 AM

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if(Origin == Messenger.MyName) {
  lastMessage = Message;
  return Message;
}
if(antiMock == '1')
{
   if (Message == lastMessage)
   {
      return "";
   }
}
}

What about that?
RE: [Request] AntiMock by Nushio on 07-07-2006 at 03:32 AM

quote:
Originally posted by S4mP410
Just Say " NoMock " and the other guy will repeat, disactivating the Mock Script :grin:


Edit: Grammar

Oh, I tried, believe me. It worked for around 20 minutes until he figured out a way to change it.

As I said, I also made him type stuff like changing his personal message, he disabled all Plus! commands though.

The code I typed is what I've been working on with the AntiMocker. The comment line is where the actual antimockery should happen.

The above code doesnt work yet. At least not as its intended. It wont let me send any messages at all...
RE: [Request] AntiMock by Voldemort on 07-07-2006 at 03:36 AM

Block him?


RE: [Request] AntiMock by Nushio on 07-07-2006 at 03:45 AM

I tried blocking him, but theres just some things we *need* to talk about. He's my partner in some businesses I make, you see.

I tried your code Silent Dragon, and I must admit it works quite well, except that it displays "Mike says:" and blank.

I'll settle with that, but is there any way for the message to not appear?

Edit: Perhaps changing his username to "blank" for the rest of the message? I wouldnt mind a 2 line break between where he was supposed to Mock...


RE: RE: [Request] AntiMock by segosa on 07-07-2006 at 07:15 AM

quote:
Originally posted by Nushio
I tried blocking him, but theres just some things we *need* to talk about. He's my partner in some businesses I make, you see.



Don't go into business with idiots :p
RE: [Request] AntiMock by Agwan on 07-11-2006 at 10:58 AM

This script mocks each client separately so they do not effect each other, and it also contains a working anti mocker, enjoy.

If there are any problems email to danielwbz@hotmail.com thanx

Admin Edit: Script removed (downloaded 32 times) - get it here instead.