stab

By RevJohn Straub on May 07, 2009

its my very first script it works for me alls you have to do it type !stab and it should work any problem let me know

on *:TEXT:-!stab:#: {
  var %KR $rand(1,6)
  if (%KR == 1) { msg $chan ouch! you've been stabbed, $nick $+ ! | /kick $chan $nick You just lost at knife Roulette! }
  if (%KR == 2) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%KR == 3) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%KR == 4) { msg $chan man that hurt! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Knife Roulette! }
  if (%KR == 5) { msg $chan That was a close one, $nick $+ , but you're safe this time! }
  if (%KR == 6) { msg $chan stabed in the chest! You're dead, $nick $+ ! | /kick $chan $nick You just lost at Knife Roulette! }
}

Comments

Sign in to comment.
RevJohn Straub   -  May 11, 2009

it is the only codeing i learned so far like you yourself said im am new and i will learn as i go

 Respond  
PATX   -  May 11, 2009

omg. ur posting the same thing over and over..... just changing the code...

 Respond  
RevJohn Straub   -  May 07, 2009

napa thank for your help

 Respond  
RevJohn Straub   -  May 07, 2009

hey thanks for the tip im working on one that you can choose what knife you pick up

 Respond  
Aucun50   -  May 07, 2009

If you don't get what napa said what so ever you could use elseif, as napa said add some flood protection. If you look though some of the older scripts napa had posted a nice flood protection alias, are maybe he can post it again.

 Respond  
napa182   -  May 07, 2009

nice for ur first snippet
you could also do it like this. This is only an example nothing more:

on $@*:TEXT:/@stab$/iS:#: {
  var %RR $r(1,6)
  msg # $iif(%RR isnum 1-3,That was a close one $+ $chr(44) $nick $+ $chr(44) but you're safe this time!,$gettok(man that hurt!|stabed in the chest!|ouch! you've been stabbed,$r(1,3),124) You're dead $+ $chr(44) $nick $+ !)
  $iif(%RR isnum 4-6,kick # $nick You just lost at Knive Roulette!)
}

also you may want to ad abit of flood control to it.

 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.