on *:TEXT:!barrage*:#:{ if (%dmrun) { if ($nick != %dmp1) && ($nick != %dmp2) { .notice $nick 14You are not fighting in this Dm. } else { if ($nick != %turn) { .notice $nick 14It is not your turn. } else { if ($nick == %dmp1) { /set %brg2 $rand(5,30) if (%brg2 < %hp [ $+ [ %dmp2 ] ]) { /dec %hp [ $+ [ %dmp2 ] ] %brg2 .msg $chan 14 %dmp1 has hit %dmp2 with Ice Barrage and has done4 %brg2 14damage. %dmp2 has3 %hp [ $+ [ %dmp2 ] ] 14hp left. if (%spec [ $+ [ %dmp1 ] ] < 100) { /inc %spec [ $+ [ %dmp1 ] ] 5 } .msg $chan 14It is now %dmp2 $+ 's turn. /set %turn %dmp2 /unset %brg2 /halt } if (%brg2 > %hp [ $+ [ %dmp2 ] ]) { /set %brg2 %hp [ $+ [ %dmp2 ] ] /dec %hp [ $+ [ %dmp2 ] ] %brg2 .msg $chan 14 %dmp1 has hit a4 %brg2 14with Ice Barrage leaving %dmp2 with3 %hp [ $+ [ %dmp2 ] ] 14hp. Congratulations %dmp1 $+ , you won the Dm! /timerdm off /unset %dmstart /unset %dmrun /unset %hp* /unset %food* /unset %spec* /unset %dmp* /unset %dhp* /unset %whp* /unset %ghp* /unset %turn /unset %dmchan /unset %hax* /Halt } } if ($nick == %dmp2) { /set %brg1 $rand(5,30) if (%brg1 < %hp [ $+ [ %dmp1 ] ]) { /dec %hp [ $+ [ %dmp1 ] ] %brg1 .msg $chan 14 %dmp2 has hit %dmp1 with Ice Barrage and has done 4 $+ %brg1 14damage. %dmp1 has 3 $+ %hp [ $+ [ %dmp1 ] ] 14hp left. if (%spec [ $+ [ %dmp2 ] ] < 100) { /inc %spec [ $+ [ %dmp2 ] ] 5 } .msg $chan 14 It is now %dmp1 $+ 's turn. /set %turn %dmp1 /unset %brg1 /halt } if (%brg1 > %hp [ $+ [ %dmp1 ] ]) { /set %brg1 %hp [ $+ [ %dmp1 ] ] /dec %hp [ $+ [ %dmp1 ] ] %brg1 .msg $chan 14 %dmp2 has hit a4 %brg1 14with Ice Barrage leaving %dmp1 with3 %hp [ $+ [ %dmp1 ] ] 14hp. Congratulations %dmp2 $+ , you won the Dm! /timerdm off /unset %dmstart /unset %dmrun /unset %hp* /unset %food* /unset %spec* /unset %dmp* /unset %dhp* /unset %whp* /unset %ghp* /unset %turn /unset %dmchan /unset %hax* /Halt } } } } } else { .notice $nick 14A DM is not running and thus you may not attack your opponent. } }