All pastes #372292 Raw Edit

Someone

public text v1 · immutable
#372292 ·published 2007-02-25 23:06 UTC
rendered paste body
on *:text:!gaxe:#:{ 
  if (%dm != $null) { 
    if (%dm.wepset == 3) { 
      if ($nick != %dm.attacker) { 
        notice $nick %dm.color $+ 10 It's not your turn! 
        halt 
      } 
      if (%dm.attacker == %dm.starter) { 
        set %dm.daxe $rand(0,50) 
        if (%dm.starter.health < 15) { set %dm.daxe $rand(20,70) } 
        if (%dm.opponent.health < %dm.daxe) { set %dm.daxe %dm.opponent.health } 
        dec %dm.opponent.health %dm.daxe 
        if (%dm.opponent.health < 1) { 
          set %dm.opponent.health 0 
          goto two 
        } 
        msg $chan %dm.color $+ 4 %dm.starter 10 hits 4 %dm.opponent 10 with his Dharok's Great Axe and hits a [ 4 $+ %dm.daxe $+ 10 ]  4 %dm.opponent 10 has 4 %dm.opponent.health 10 health remaining. 
        msg $chan %dm.color $+ 10 Go ahead, 4 %dm.opponent 10 it's now your turn! 
        set %dm.attacker %dm.opponent 
        halt 
      } 
      if (%dm.attacker == %dm.opponent) { 
        set %dm.daxe $rand(0,50) 
        if (%dm.opponent.health < 15) { set %dm.daxe $rand(20,70) } 
        if (%dm.starter.health < %dm.daxe) { set %dm.daxe %dm.starter.health } 
        dec %dm.starter.health %dm.daxe 
        if (%dm.starter.health < 1) { 
          set %dm.starter.health 0 
          goto two 
        } 
        msg $chan %dm.color $+ 4 %dm.opponent 10 hits 4 %dm.starter 10 with his Dharok's Great Axe and hits a [ $+ %dm.daxe ]  4 %dm.starter 10 has 4 %dm.starter.health 10 health remaining. 
        msg $chan %dm.color $+ 10 Go ahead, 4 %dm.starter 10 it's now your turn! 
        set %dm.attacker %dm.starter 
        halt 
      } 
      :two 
      if (%dm.opponent.health < 1) { 
        mode $chan -m 
        mode $chan -vv %dm.starter %dm.opponent 
        msg $chan %dm.color $+ 4 Congratulations %dm.starter $+ ! 10 You have defeated %dm.opponent with a mighty %dm.daxe for a 4 KO! 
        unset %dm.* 
        unset %dm 
        halt 
      } 
      if (%dm.starter.health < 1) { 
        mode $chan -m 
        mode $chan -vv %dm.starter %dm.opponent 
        msg $chan %dm.color $+ 4 Congratulations %dm.opponent $+ ! 10 You have defeated 4 %dm.starter 10 with a mighty 4 %dm.daxe 10 for a 4 KO! 
        unset %dm.* 
        unset %dm 
        halt 
      } 
    } 
  } 
}