Again?
:tongue: OK, here goes:
on *:text:!a *:#: {
if (%cur [ $+ [ $2 ] ] <= 0) { msg $chan Note: $2 is dead! | set %lose [ $+ [ $2 ] ] $add(%lose [ $+ [ $2 ] ],1) | msg $chan $2 Has been healed! | set %cur [ $+ [ $2 ] ] %max [ $+ [ $2 ] ] | halt }
if ( % [ $+ [ $nick ] $+ equip ] == Wooden Blade ) { set %t1 $rand(1,20) | set %cur [ $+ [ $2 ] ] $sub(%cur [ $+ [ $2 ] ],%t1) | msg $chan $nick attacks $2 for %t1 ! $2 $+ 's current HP: %cur [ $+ [ $2 ] ] $+ / $+ %max [ $+ [ $2 ] ] }
if (% [ $+ [ $nick ] $+ equip ] == Double Blade ) { set %t1 $rand(1,20) | set %cur $sub(%cur [ $+ [ $2 ] ],%t1) | msg $chan $nick hits $2 for %t1 ! $2 $+ 's current hp: %cur [ $+ [ $2 ] ] $+ / $+ %max [ $+ [ $2 ] ] | set %cur [ $+ [ $2 ] ] %cur }
if (% [ $+ [ $nick ] $+ equip ] == Grandigo) { msg $chan 4BOOM! $nick hits $2 for %max [ $+ [ $2 ] ] $+ ! $2 falls flat on his feet! $2 $+ 's current hp: 0/ $+ %max [ $+ [ $2] }
}
I've added a few things here and there :tongue: