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!
}
}
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
\"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!
}
}\"