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