Warning script

By Mudkipz on Sep 08, 2008

A simple strike script, This is Version One, Ill add the new updats in two weeks time max.
Its basically Three strikes and your out. Not really Much more to say Really...
SYNAX:- .strike then it tells you how many stikes they currently have

on *:text:.strike*:#: {
  inc %strike. [ $+ [ $2- ] ]
  if ($nick isop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
  if ($nick ishop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
  if ($nick isop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ] 
  if ($nick ishop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ]
  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if ($nick ishop $chan) if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 
  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 
}

Comments

Sign in to comment.
Mudkipz   -  Sep 09, 2008

mountiandew I didnt think of doing it like that, I fit all the commands into the one line tho, using |. Cherion that was my intention, The option of kick on third stike will be on my Upcoming update, aswell as reason for strike, Strike check, And many more. So keep checking this script, If you want I will Pm you when it comes out.Thanks for all the positive comments.

 Respond  
Akishoot   -  Sep 08, 2008

There goes another... 8D

 Respond  
napa182   -  Sep 08, 2008

why not do

on @*:text:.strike*:#: {
  if ($nick(#,$nick,oh)) { 
    inc $+(%,strike,.,$2,.,$chan)
    if ($($+(%,strike,.,$2,.,$chan),2) isnum 1-2) { .notice $2 you now have a strike, you currently have $($+(%,strike,.,$2,.,$chan),2) | .notice $nick you have issued a strike, $2 now has $($+(%,strike,.,$2,.,$chan),2) }
    else { .notice $nick $2 has 3 strikes, which is kbable, so il go ahead and kick ban them | ban -k # $2 2 Three strikes and ur out | unset $+(%,strike,.,$2,.,$chan) }   
  }
}
 Respond  
napalm`   -  Sep 08, 2008

This is the leetness.

 Respond  
guest598594   -  Sep 08, 2008

You can combine some of these if statements. Example:

if ($nick isop $chan || $nick ishop $chan) {
  notice $2 you now have a strike...
  notice $nick you have issued a strike...
}

And then with

  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 

You can combine them:

  if (%strike. [ $+ [ $2- ] ] == 3) {
    notice $nick $2- has 3 strikes, which is kbable, so go ahead
    set %strike. [ $+ [ $2- ] ] 
  }

Just use brackets { } and you can put multiple things in one if statement.

 Respond  
Cheiron   -  Sep 08, 2008

you forgot to add the kick to the third strike unless that was your intention :)

 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.