Anti-Slapper script
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 3.0 |
| Scores Submitted | 1 |
| Date Added | Jul 13, 2008 |
| Last Updated | Jul 13, 2008 |
| Tags | anti slap |
|
|
Introduction
this script will only respond if you are the person being slapped, and will not be set off more than once every 15 seconds to avoid being kicked out of channels for flooding
one of my first scripts, any examples of how I may clean the code up, or make it more efficient will be appreciated
also.....I'm not too sure how to get a script to set a variable to a certain value without it constantly resetting it, which can be bad if the variable was meant to be a certain value but gets reset every time the script is executed, so you may have to type " /set %beat off " to set the variable to its default value before running this script.
mIRC Snippet:
Anti-Slapper script
Posted on Jul 13, 2008 11:20 am
Posted on Jul 13, 2008 11:20 am
Looks like a bunch of mess to me.
mIRC Snippet:
Anti-Slapper script
Posted on Jul 13, 2008 3:25 pm
Posted on Jul 13, 2008 3:25 pm
look in to while loops and tokens you can use them to make this script into somthing like this
| Code: |
| on *:action:*:#:{ var %sl = slaps,hits,whacks,wacks,attacks,kicks,throws, %x = $numtok(%sl,44) while (%x) { if ($istok($1-,$gettok(%sl,%x,44),32) && $me isin $1- && !%spam) { var %ap blocks $nick $+ 's attack and beats six shades of shoot out of their pets|drops dead on the ground|ducks and takes aim with an M16|beats $nick like a red-headed step child|gets up off the ground and roundhouse kicks $nick in the face|does an evasive backflip and throws ninja stars at $nick ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ $nick ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤|throws rocks at $nick describe # $gettok(%ap,$r(1,7),124) set -u15 %spam on } dec %x } } |
mIRC Snippet:
Anti-Slapper script
Posted on Jul 13, 2008 11:21 pm
Posted on Jul 13, 2008 11:21 pm
cool, thanks napa, that looks like a much more efficient code. I guess I'll have to read the help file for info on tokens to fully understand how this works
mIRC Snippet:
Anti-Slapper script
Posted on Jul 16, 2008 1:05 pm
Posted on Jul 16, 2008 1:05 pm
what is this ???
Lindrian have simple code for anti action :). But im forget the link
Lindrian have simple code for anti action :). But im forget the link






