Top

Slap protection


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Nov 01, 2009
Last Updated  Nov 07, 2009
Tags  fun  protection  slap 

Introduction

This is my first script/snippet, I use it for auto slap-retaliation.

Grab the Code

on *:action:*slaps*lamb-chop*:#: {
/describe $chan grabs a machete
.timer 1 1 | /describe $chan grabs $nick $+ 's afro
.timer 1 2 | /describe $chan decapitates $nick
.timer 1 3 | /describe $chan takes out a catapult
.timer 1 4 | /describe $chan shoots off $nick $+ 's head into space
.timer 1 5 | /describe $chan watches the head smash into the ground and become like a pancake
.timer 1 6 | /describe $chan grabs a straw
.timer 1 7 | /describe $chan yummy
}
 
____________________________________________________________
ALTERNATIVELY
____________________________________________________________
 
on *:action:*slaps*lamb-chop*:#: {
/describe $chan thinks about it
/set %slap $rand(1,6)
 if (%slap == 1) .msg $chan 4,1Nuh uhhh, You dont slap me!, /Avoids Slap
if (%slap == 2) .msg $chan 4,1I WILL RIP YOUR LUNGS OUT!!!!
if (%slap == 3) .msg $chan 4,1You slap as bad as Ponyboy, FLIPPING FAIRY
if (%slap == 4) .describe $chan 4,1makes a new Texas Chainsaw Massacre, but this time it is $nick Chainsaw Massacre
if (%slap == 5) .describe $chan 4,1mmmm, slap again that feels good
if (%slap == 6) /msg $chan 4,1Slapping me is asking for Chuck Norris.
 
}
}

Comments

  (12)  RSS
Jethro_
Comments: 436
 
mIRC Snippet:  Slap protection
Posted on Nov 1, 2009 3:32 pm
Here is an alternative:
Code:
on *:ACTION:$($+(*,slap,*,$me,*)):#: {
  var %x = grabs $nick $+ 's afro|decapitates $nick $+ |takes out a catapult|shoots off $nick $+ 's head into space|$&
    watches the head smash into the ground and become like a pancake|grabs a straw|yummy
  var %y = $numtok(%x,124) | while (%y) { .timer 1 $calc(%y * 2) describe $!active $gettok(%x,%y,124) | dec %y }
}
Not sure if every one is required to "slaps lamp-chop," but usually it is you who gets slapped that counts.
3nigmat1c
Comments: 15
 
mIRC Snippet:  Slap protection
Posted on Nov 1, 2009 10:19 pm
Woah... I'm like hectically confused now, var (%y = $numtok(%x,124) | while (%y) { .timer 1 $calc(%y * 2) describe $!active $gettok(%x,%y,124) | dec %y })?
Ghost-writer
Comments: 255
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 5:53 am
its ok let me walk you threw it :P i had to read it at first to understand it to, first he sets %x to all those choices so he can send multiple messages, then he while loops threw them and messages the channel all of those messages at once, so it would turn out like so
Quote:

*noob has hit $me over the head
*$me grabs noob's afro
*$me decapitates noob $+
*$me takes out a catapult|shoots off noob's head into space
*$me watches the head smash into the ground and become like a pancake
*$me grabs a straw
*$me Yummy

With timers of course!
:)
3nigmat1c
Comments: 15
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 7:11 am
... Isn't that what mine does already? And mine actually works, I tried his and no matter how much I slap it doesn't do anything :P!
gooshie
Comments: 65
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 8:22 am
Jethro's snippet worked for me.
I made a few refinements.
On the trigger only need to comma
separtate out the $me part, no
need for the $+ before that one |
and tweeked the while loop.

Code:
on *:ACTION:$($+(*slap*,$me,*)):#: {
  var %i 1,%x grabs a machete|grabs $nick $+ 's afro|decapitates $nick |takes out a catapult|shoots $nick $+ 's head into space|$&
    watches the head smash into the ground and become like a pancake|grabs a straw|yummy
  while $gettok(%x,%i,124) { .timer 1 $calc(%i * 2) describe # $v1 | inc %i }
}


so no one else says it, needs flood protection
3nigmat1c
Comments: 15
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 12:33 pm
Neither of these worked for me?

I have a seperate like script user on mIRC and me myself (lamb-chop) uses chatzilla, and it's set to protect lamb-chop not my script user
sunslayer
Comments: 266
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 2:54 pm
change
Code:
on *:ACTION:$($+(*slap*,$me,*)):#: {
to
Code:
on *:ACTION:$($+(*slap*,lamb-chop,*)):#: {
gooshie
Comments: 65
 
mIRC Snippet:  Slap protection
Posted on Nov 2, 2009 9:29 pm
3nigmat1c
To be honest your method does not work
correctly. The | (pipe) in front of the
/describe command breaks the timers
(Status => * /timer: timer 1 not active)
and causes all the the replies to be sent
immediately without being throttled.

Your original trigger is fine for
your intended use. Many people will
want to use the $me type trigger.
Cracker200
Comments: 257
 
mIRC Snippet:  Slap protection
Posted on Nov 6, 2009 12:21 am
Why, use |'s on a anti-slapper anyways?o.O
3nigmat1c
Comments: 15
 
mIRC Snippet:  Slap protection
Posted on Nov 7, 2009 6:19 am
Cracker200 seriously, this is my first script EVER, all I know is that putting the | it worked and previously it didn't. Gooshie, it works I promise. But I can't count the number of times my bot has been kicked for spamming/text flooding, so I got a new one from Magstant, I was gonna do all the scripting myself but he had it pre made so I used his but entered my parameters.

Code:

on *:action:*slaps*lamb-chop*:#: {
/describe $chan thinks about it
/set %slap $rand(1,6)
 if (%slap == 1) .msg $chan 4,1Nuh uhhh, You don't slap lamb-chop!, Avoids Slap
if (%slap == 2) .msg $chan 4,1I WILL RIP YOUR LUNGS OUT!!!!
if (%slap == 3) .msg $chan 4,1You slap as bad as Ponyboy, FLIPPING FAIRY
if (%slap == 4) .describe $chan 4,1makes a new Texas Chainsaw Massacre, but this time it is $nick Chainsaw Massacre
if (%slap == 5) .describe $chan 4,1mmmm, slap again that feels good
if (%slap == 6) /msg $chan 4,1Slapping me is asking for Chuck Norris.

}
}
Ghost-writer
Comments: 255
 
mIRC Snippet:  Slap protection
Posted on Nov 7, 2009 12:07 pm
You dont have to put / in a script, and for your alternitive, you could put them both in 1 and make it random.
Cracker200
Comments: 257
 
mIRC Snippet:  Slap protection
Posted on Nov 8, 2009 11:08 am
Lol, ok

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom