Top

Anti-Poker


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Jul 15, 2009
Last Updated  Jul 15, 2009
Tags  anti  crazylicious  mirc  poke  poker  snippet 

Introduction

My First ever attempt at scripting

When someone pokes you it pokes them back

O_O Difficult Right?



Grab the Code

On *:Action:*Poke*:#:{ 
   if (($me isin $1-) && (%antiflood)) { 
      set -u5 %antiflood 2
      inc %Slapexx
      describe $chan slaps $nick right back |Number Of Slapbacks| %slapexx
   }
}

Comments

  (8)  RSS
knoeki
Comments: 120
 
mIRC Snippet:  Anti-Poker
Posted on Jul 15, 2009 2:42 pm
about your indenting: it looks like you heard the bell but are unaware of it's location ;_)

this looks a little bit more proper:
Code:
On *:Action:*Poke*:#:{
   if (($me isin $1-) && (%antiflood)) {
      set -u5 %antiflood 2
      inc %Slapexx
      describe $chan slaps $nick right back %slapexx
   }
}


other than that, it seems to look fine ;_)
Crazylicious
Comments: 4
 
mIRC Snippet:  Anti-Poker
Posted on Jul 15, 2009 2:52 pm
Thanks im kinda new to scripting
knoeki
Comments: 120
 
mIRC Snippet:  Anti-Poker
Posted on Jul 15, 2009 2:59 pm
Quote:
Thanks im kinda new to scripting


everyone has to start somewhere ;_) that's why I'm giving you this tip :_)
Noutrious
Comments: 365
 
mIRC Snippet:  Anti-Poker
Posted on Jul 16, 2009 6:31 pm
Code:
on *:action:*poke*:#:if $me isin $1- && !%slapantiflood { inc -u5 %slapantiflood | inc %slapnum | describe $chan slaps $nick right back.. ( $+ %slapnum slapbacks totally) }
Jethro_
Comments: 437
 
mIRC Snippet:  Anti-Poker
Posted on Jul 17, 2009 5:04 pm
To get technical with your script, you could do:
Code:
describe $chan slaps $nick right back the $ord(%slapexx) time.
Or
Code:
describe $chan slaps $nick right back %slapexx $iif(%slapexx == 1,time,times)
mountaindew
Comments: 1,826
 
mIRC Snippet:  Anti-Poker
Posted on Jul 17, 2009 5:51 pm
Shouldn't it be
Code:

   if (($me isin $1-) && (!%antiflood)) {
Crazylicious
Comments: 4
 
mIRC Snippet:  Anti-Poker
Posted on Jul 18, 2009 9:12 am
Thanks everyone, as i said this is my first ever script so im not that good yet
Jethro_
Comments: 437
 
mIRC Snippet:  Anti-Poker
Posted on Jul 18, 2009 4:10 pm
Yes, we all know what's like to be new at one point in time, but you have to make sure the snippet you've submitted is in a working condition. As mountaindew pointed out, you should have added an exclamation mark in, and I quote, (!%antiflood))

Or you edit your script as soon as you receive suggestions from other people to perfect it.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom