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.
}
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.
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...
That would react if slaps is in the text and your nick was mentioned.