jub369 commented on a Page, Attacking/Gates Script/Alias for Naruto bot  -  Jan 26, 2008

[Alias Punch {
if ($rini($nick,Stats,Attacking) == no) { halt }
set %base.damage 15
set %Exp $Rand(3,6)
set %punch $calc(%Taijutsu / %Defense)
set %damage $calc(%base.damage * %punch)
if (%Damage < 1) { set %Damage 1 }
wini $2 Stats Health $calc($rini($2,Stats,Health) - %damage)
wini $nick Stats Exp $calc($rini($nick,Stats,EXP) + %exp)
wini $nick Stats Attacking No
msg # $nick Punches $2 in the face doing $bytes(%damage,b) damage! (Gained %Exp Exp)
deadcheck $1 $2
}]

its sopose to be

Punch {
  if ($rini($nick,Stats,Attacking) == no) { halt }
  set %base.damage 15
  set %Exp $Rand(3,6)
  set %punch $calc(%Taijutsu / %Defense)
  set %damage $calc(%base.damage * %punch)
  if (%Damage < 1) { set %Damage 1 }
  wini $2 Stats Health $calc($rini($2,Stats,Health) - %damage)
  wini $nick Stats Exp $calc($rini($nick,Stats,EXP) + %exp)
  wini $nick Stats Attacking No
  msg $chan $nick Punches $2 in the face doing $bytes(%damage,b) damage! (Gained %Exp Exp) 
  deadcheck $1 $2
}
 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.