Slap Revenge

By S4br3W0lf on Mar 24, 2006

OK, just copy and paste it into remotes, replace Puresoul189 with your nick

on *:ACTION:*slaps*:#:{
if ($2 == Yourname) {
inc %slap
kick $chan $nick Dont slap me mmk? %slap people have been punished!
}
}

Comments

Sign in to comment.
bluedragons   -  Jan 05, 2012

this is a good script but u might want it to remove the kick part of this

 Respond  
S4br3W0lf   -  Mar 26, 2006

Fixed :P

 Respond  
S4br3W0lf   -  Mar 25, 2006

OO thanks for the tips guys :D

 Respond  
Bandit   -  Mar 24, 2006

Yes indeed, KuTsuM. That would work better. Wasn\'t thinkin about that. Good job ;)

 Respond  
KuTsuM   -  Mar 24, 2006

Bandit, this is better:
on :ACTION:$($+(slaps,,$me,)):: { }

This will catch no matter what sequence, providing \"slaps\" is the first word in the string..

 Respond  
Bandit   -  Mar 24, 2006

Hey nice script, it\'s always nice to see new scripters around. But here\'s a suggestion for you: say for instance someone says \"/me slaps \" yes, the script would then activate. But, if someone said \"/me slaps stupid-head with a nuclear missle, then the script would not activate, because the $2 is not the nick, it\'s the word \"stupid-head\" So, to fix this, we could do:

if ( $me isin $1- )

so, replace the if ($2 == $me) with ( $me isin $1- )

That way, if your nick is found anywhere in the action \"slaps\", then the script will activate. Hope this helps, and welcome to the world of mIRC Scripting!

--Bandit

 Respond  
S4br3W0lf   -  Mar 24, 2006

Your edit of the script doesnt work :s

 Respond  
S4br3W0lf   -  Mar 24, 2006

Edited thanks for the comments and tips!

 Respond  
S4br3W0lf   -  Mar 24, 2006

srry i kinda suck at scripting im kinda new :S

 Respond  
sean   -  Mar 24, 2006

\"inc %slap\" is going to return %slap as a numeric
try using \"var %slap\" with some type of variable in this case i believe your going for $nick. so i would replace it with:
\"var %slap $nick\"

which is also rather pointless since u can just put $nick in lieu of using a variable :)

also, instead of having people to put their nick in that part of the remotes, you can make it easy by using:
\"if ($2 == $me) {\"

you also forgot an ending bracket }
and / is not needed in a script

\"on :ACTION:slaps*:#: {
if ($2 == $me) {
kick $chan $nick Dont slap Da waffles! $nick have slapped me and been punished!
}
}\"

 Respond  
xDaeMoN   -  Mar 24, 2006

You\'re missing the last bracket & include a check if you are an op in the channel.

 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.