Top

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 
  Bookmark and Share

Introduction

This is my anti slapper script. I was getting tired of seeing people make their anti slap scripts and having them spam every time anybody slapped anyone. Pretty basic, just stick it in your remotes, and wait for someone to attack you in some way.

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.

Grab the Code

Comments

  (4)  RSS
Jamiie
Comments: 140
 
mIRC Snippet:  Anti-Slapper script
Posted on Jul 13, 2008 11:20 am
Looks like a bunch of mess to me.
napa182
Comments: 1,135
 
mIRC Snippet:  Anti-Slapper script
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
  }
}

Gringle
Comments: 2
 
mIRC Snippet:  Anti-Slapper script
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
ermansanidhya
Comments: 43
 
mIRC Snippet:  Anti-Slapper script
Posted on Jul 16, 2008 1:05 pm
what is this ???
Lindrian have simple code for anti action :). But im forget the link

Please Register or Login to start posting comments.
Bottom