kill randon on action poke

By _Lestat_ on Feb 17, 2012

just when someone type /me pokes $me it kills a random person in the chan. Also main Idea was incorporated by Sophia. took out else { goto rest }

on *:action:pokes*:#: {  if ($2 == $me) { 
    :nickpick
    var %nick = $nick(#,$r(1,$nick(#,0)))
    if (%nick == $nick) || (%nick == $me) { goto nickpick }
     inc %Kills 
describe $chan explodes, 8killing %nick $+ . 9,13(People Killed by Explosion: %Kills $+ ) } }

Comments

Sign in to comment.
dma   -  Feb 11, 2016

I poked a friend nothing happened > was up with that??? lol

 Respond  
chachin   -  Mar 09, 2012

thanks man 10/10 :D

 Respond  
Wade   -  Mar 09, 2012

@chachin updated my previous post :)

 Respond  
chachin   -  Mar 08, 2012

@Wader. could you be awersome and show me how to add a "exempt" or somehow to add a channel so it wont get triggered there?

 Respond  
chachin   -  Mar 08, 2012

wow very nice :)

 Respond  
Wade   -  Mar 08, 2012

For @chachin. Added antispam, will ignore pokes if you get poked 5 times within 5 seconds, also will reset counter at 10,000 kills.

Add channels to %ignorechans seperated by a space to stop the script in those channels

on *:action:pokes *:#: {
    if ($2 == $me) {
        var %ignorechans #chan1 #chan2 #chan3
        if ($istok(%ignorechans,$chan,32)) { return }
        inc -u5 %antispam.pokes
        if (%antispam.pokes >= 5) { return }
        :nickpick
        var %nick = $nick(#,$r(1,$nick(#,0)))
        if (%nick == $nick) || (%nick == $me) { goto nickpick }
        inc %kills
        describe $chan explodes, 08killing %nick $+ . 09,13(People Killed: $bytes(%kills,b) $+ ) 
        if (%kills >= 10000) { unset %kills }
}
 Respond  
chachin   -  Mar 06, 2012

um it needs spam protection :P against bots

 Respond  
iso   -  Feb 18, 2012

@Chachin

Just clear the variable.

 Respond  
chachin   -  Feb 18, 2012

if i have a certain amount of users.. how can i restart back to zero? you should make a mod to it so it resets at 10,000 pokes :D

 Respond  
chachin   -  Feb 18, 2012

thanks this is a fun script :D

 Respond  
Wade   -  Feb 17, 2012

You dont need the

else { goto rest }
:rest

its redundant seeing as mIRC will sequentially go through the code anyway unless you put a halt or return in there.

 Respond  
Snorlax   -  Feb 17, 2012

Haha cool little script, Thanks for sharing =)
I changed the colours a little bit for myself, The yellow was hard to see for me.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.