Code:
on *:text:!hit*:*:{
  if (!$9) { return }
  var %_you = $calc((($2 * 1) + ($3 * 2) + ($4 * 4)) * $5), %_enemy = $calc((($6 * 1) + ($7 * 2) + ($8 * 4)) * $9)
  .msg $chan You have4 %_you
  .msg $chan Your enemy have %_enemy
  .msg $chan You have $iif($left($calc(%_you - %_enemy),1) == $chr(45), Lost, Won)
}


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby