Shoutbox

Message flooder - 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: Message flooder (/showthread.php?tid=79313)

Message flooder by Jimbo on 11-23-2007 at 08:42 PM

How would i replace this first if function?

code:
if(Message.BeginsWith(".Flood")
{
for(int i = 0; i<20; i++)
{
ChatWnd.SendMessage(Message.IndexOf( 8);
}
}


RE: Message flooder by Spunky on 11-23-2007 at 08:57 PM

What? How would you change the if statement to see if the message starts with ".Flood"?

code:
if(Message.substr(0,6)==".Flood"){
    for(int i = 0; i<20; i++){
        ChatWnd.SendMessage(Message.IndexOf( 8);
    }
}


RE: Message flooder by Mike on 11-23-2007 at 10:08 PM

Btw, don't waste your time trying to make a message flooder. MP!L has built in protection to stop flood scripts.


RE: Message flooder by Nathan on 11-23-2007 at 10:12 PM

quote:
Originally posted by Jimbodude
How would i replace this first if function?

code:
if(Message.BeginsWith(".Flood")
{
for(int i = 0; i<20; i++)
{
ChatWnd.SendMessage(Message.IndexOf( 8);
}
}


And you wonder why you don't become a beta tester.
RE: Message flooder by Jimbo on 11-23-2007 at 11:31 PM

quote:
Originally posted by Napbree
quote:
Originally posted by Jimbodude
How would i replace this first if function?

code:
if(Message.BeginsWith(".Flood")
{
for(int i = 0; i<20; i++)
{
ChatWnd.SendMessage(Message.IndexOf( 8);
}
}


And you wonder why you don't become a beta tester.
Its not for me, someone on WLM asked me to ask and they couldnt be fucked making an account
RE: Message flooder by roflmao456 on 11-24-2007 at 02:01 AM

code:
// Usage: /flood [msg]
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message.substr(0,6).toLowerCase() == "/flood"){
for(i=0;i<15;i++){
ChatWnd.SendMessage(Message.substr(8));
}
}
}

RE: Message flooder by bobby2000 on 11-26-2007 at 04:57 PM

Plus only allows 14 messages to be sent from a script at once doesn't it? (feel free to correct me:P)


RE: Message flooder by skyserpent on 11-26-2007 at 05:19 PM

16 I believe.