Slap protection

By 3nigmat1c on Nov 01, 2009

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

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

Sign in to comment.
Cracker200   -  Nov 08, 2009

Lol, ok

 Respond  
Ghost-writer   -  Nov 07, 2009

You dont have to put / in a script, and for your alternitive, you could put them both in 1 and make it random.

 Respond  
3nigmat1c   -  Nov 07, 2009

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.

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.

}
}
 Respond  
Cracker200   -  Nov 06, 2009

Why, use |'s on a anti-slapper anyways?o.O

 Respond  
gooshie   -  Nov 02, 2009

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.

 Respond  
sunslayer   -  Nov 02, 2009

change

on *:ACTION:$($+(*slap*,$me,*)):#: {

to

on *:ACTION:$($+(*slap*,lamb-chop,*)):#: {
 Respond  
3nigmat1c   -  Nov 02, 2009

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

 Respond  
gooshie   -  Nov 02, 2009

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.

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

 Respond  
3nigmat1c   -  Nov 02, 2009

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

 Respond  
Ghost-writer   -  Nov 02, 2009

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

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!
:)

 Respond  
3nigmat1c   -  Nov 01, 2009

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 })?

 Respond  
Jethro   -  Nov 01, 2009

Here is an alternative:

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.

 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.