Quote:
Plus is there any way of adding a limit to !rob what i mean is if i !rob someone they must have more than 1000 money for me to be able to !rob them.


See red stuff:

Quote:
Also if unsuccessful in !rob i get - Has Failed To Rob God -
can this be set to some type of Chance type punishment for being unsuccessful in a !rob
IE: cant !rob for 1hour
: pay out 500 money to the person you try to !rob
: loss of health
Only to happen to nic that is unsuccessful in !rob

See blue stuff:

Quote:
How can i set it so that you have to /notice botnic !rob <nic>
so ppl cant tell who is robbing them..

See green stuff.


Code:
[color:green]on *:NOTICE:!rob *:?: {
  if (($nick !ison #Battle) || ($2 !ison #Battle)) {
    ; $nick or $2 isn't on #battle, so do nothing
    return
  }
[/color]   if (%rob [ $+ [ $nick ] ] == on) {
    msg $nick You Have Already Robbed Someone!
    return
  }
  if (%away [ $+ [ $nick ] ] == on) { 
    msg $nick You're away, no robbing when you're away!
    return
  }
  if (%away [ $+ [ $2 ] ] == on) { 
    msg $nick $2 is away, you cannot rob someone who is away!
    return
  }
[color:red]  if (%money [ $+ [ $2 ] ] &lt; 1000) { 
    msg $nick $2 hasn't got enough money.
    return
  }[/color]

  if (%rob [ $+ [ $nick ] ] != on) &amp;&amp; (%account [ $+ [ $2 ] ] == on) {
    msg $chan $nick Attempts To Rob $2
[color:blue]    ; 20 % chance of success robbing $2
    if ($rand(0,99) &lt; 20) {
      var %tthier-money = $round($calc(%money [ $+ [ $2 ] ] / 2),0)
      msg $chan $nick SuccessFully Robs $2
      msg $chan $nick Has Robbed $2 by %tthier-money Money From $2
      inc %money [ $+ [ $nick ] ] %tthier-money
      dec %money [ $+ [ $2 ] ] %tthier-money
    }
    else {
      ; this is the other 80% chance of not successfully robbing $2
      ; make him lose 10-20 health with a 10% chance
      if (($rand(0,99) &lt; 10) &amp;&amp; ($rand(10,20)) {
        msg $nick $2 saw you and hit you with a trout, you lose $v1 health
        set -u300 %rob [ $+ [ $nick ] ] on
        dec %health [ $+ [ $nick ] ] $v1
        ; you should check if $nick has still got health left :)
      }
      ; OR 5% chance of having to pay 500 money back (or all his money)
      else if ($rand(0,99) &lt; 5) {
        if ((%money [ $+ [ $nick ] ] &lt; 500) || (500)) { }
        dec %money [ $+ [ $nick ] ] $v1
        inc %money [ $+ [ $2 ] ] $v1
        msg $nick $2 saw you and took $v1 money from you!
        set -u300 %rob [ $+ [ $nick ] ] on
      }
      ; OR 15% chance of being unable to rob for 1 hour
      else if ($rand(0,99) &lt; 15) {
        msg $nick $2 saw you and keeps watching you for 1 hour
        set -u3600 %rob [ $+ [ $nick ] ] on
      }[/color] 
      msg $chan $nick Has Failed To Rob $2 !
    }
  } 
}