Slap retaliate

By MylesMiz on Apr 02, 2007

Ok this is a VERY simple code, and the first i've posted here (but not the first i made).

When someone slaps you , it auto-matically slaps them back

 on *:ACTION:*slap*:#:{
  describe $chan dodges the trout and hits $nick over the head with an anvil.
}

Comments

Sign in to comment.
[HANZam]   -  Aug 07, 2009

@jethro thnks.. hehehe.

it works. I like it

 Respond  
Jethro   -  Aug 05, 2009

@[HANZam], use this version of my slap script:

on $*:ACTION:/(slaps?)/Si:#: {
  if ($regml(1) isin $1-) && ($me isin $v2) {
    .describe # $regml(1) $nick around with a bit of a large trout!
  }
}
 Respond  
jeroen   -  Aug 04, 2009

this is the script I used for it:

on :ACTION::*: {
if (%slapy == on) { halt }
else if ($me isin $1-) {
set %slapy on
if (slap isin $1-) { describe $chan slaps $nick back }
elseif (slap isin $1-) { describe $chan slaps $nick back }
elseif (throw isin $1-) { describe $chan throws it back }
elseif (smack isin $1-) { describe $chan smacks back }
elseif (hug isin $1-) { describe $chan squeezes $nick to death }
elseif (drives isin $1-) { describe $chan reverses $nick 's gear }
else { msg $chan :o :/ :ç ;o ? }
.timer 1 20 set %slapy of
}
}

very easy to add other slapbacks in it and only reacts to someone slapping you.

 Respond  
[HANZam]   -  Aug 04, 2009

Lindirian...

I tried your script

on :ACTION:slaps:#: {
if ($($+(
,$me,*) iswm $1-)) {
describe $chan slaps $nick around with a bit of a large trout
}
}

but I observed that if someone slap somebody not you... the script automatically slap back to the person who made the first slap...

can u fix it? by the way I like the script...

 Respond  
Lindrian   -  Apr 02, 2007

on :ACTION:$($+(,$me,*)):#: {
describe $chan slaps $nick around with a bit of a large trout.
}

That would react on all of the actions made toward you.
or:
on :ACTION:slaps:#: {
if ($($+(
,$me,*) iswm $1-)) {
describe $chan slaps $nick around with a bit of a large trout
}
}

That would react if slaps is in the text and your nick was mentioned.

 Respond  
Krobeluskill   -  Apr 02, 2007

Also, how do you know it\'s a trout you are ebing slapped with? ;D

 Respond  
peterpowell   -  Apr 02, 2007

perhaps inprove it so it retalites when you are slapped

hint: use iswm ;)

-PP

 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.