Avoid a slap :p

By Weldon on Nov 02, 2012

i was bored :p
Anyways what this does, when someone slaps you, you dodge it and punch them.
change YourNick to the nickname you want to trigger.
you can also add more or change how it slaps or revenges.

Ty Stronach for the help :)

on *:ACTION:*slaps*:#:{
   if ($istok($1-,$me,32)) {
    inc %anti
  describe $chan Dodges and Punches $nick in the face!! $+([ %anti, : People have been punched!, ]) }
}
}

Comments

Sign in to comment.
napa182   -  Nov 15, 2012

you should add some sort of flood protection to this or you can be flooded out.
Also you have an extra closing bracket.

 Respond  
Jordyk19   -  Nov 13, 2012

This is not really avoiding :P
Its more payback.

 Respond  
Meta   -  Nov 03, 2012

Ah, just one thing... it should be if ($istok($1-,$me,32)) {

 Respond  
Weldon   -  Nov 03, 2012

thanks meta, good idea :D

 Respond  
Meta   -  Nov 02, 2012

I'd recommend changing the if condition from $me isin $1- to $istok($1-,$me,32), otherwise, the script could trigger on false positives... example: if your nick is "Mark", somebody else's nick is "Mark12345", and someone ("John") slaps Mark12345, you'll end up dodging a slap that wasn't aimed at you and subsequently punching John in the face for no reason.

You could also use regex for better matching , but I'd have to check which characters aren't allowed in nicks first.

 Respond  
Weldon   -  Nov 02, 2012

updated

 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.