alias playerone return $readini(deathmatch.ini, start, one) alias playertwo return $readini(deathmatch.ini, start, two) alias dmon return $readini(deathmatch.ini, on, $chan) alias dmoff return $readini(deathmatch.ini, off, $chan) alias dmchan return $readini(deathmatch.ini, chan, dmchan) alias turn return $readini(deathmatch.ini, turn, $chan) alias whip return $readini(deathmatch.ini, whip, whip) alias dds1 return $readini(deathmatch.ini, dds, dds1) alias dds2 return $readini(deathmatch.ini, dds, dds2) on $*:text:/^[@!]dds|dagger/i:#kingskrown: { if (!$turn) && ($dmon == on) && ($playerone) && ($playertwo) { notice $nick please type $qt(!turn) inorder to see who's turn it is, because it may not be your turn. } if ($readini(deathmatch.ini, health, $playerone) == *0) || ($readini(deathmatch.ini, health, $playertwo) == *0) { $iif($readini(deathmatch.ini, health, $playerone) == *0, msg $dmchan $playertwo has beat $playerone, $playerone has beat $playertwo) } elseif (!$turn) && ($dmon != on) { notice $nick there is no dm in progress. please type $qt(!dm) inorder to start one. } elseif ($dmon == on) && (!$playertwo) || (!$playerone) { notice $nick there is a dm request in request. please type $qt(!dm) to accept the request. } elseif ($dmon == on) && ($turn != $nick) { notice $nick it isn't your turn. type $qt(!turn) to see who's turn it is. } elseif ($dmon == on) && ($turn == $nick) { var %dds $calc($dds1 + $dds2) $iif($playerone == $turn, msg $chan $turn hit $dds1 and $dds2 on $playertwo using a dragon dagger. $playertwo now has $calc($readini(deathmatch.ini, health, $playertwo) $+(-,%dds)) hp left., msg $chan $turn hit $dds1 and $dds2 on $playerone using a dragon dagger. $playerone now has $calc($readini(deathmatch.ini, health, $playerone) $+(-,%dds)) hp left.) $iif($playertwo == $turn, writeini deathmatch.ini health $playerone $calc($readini(deathmatch.ini, health, $playerone) $+(-,%dds))), writeini deathmatch.ini health $playertwo $calc($readini(deathmatch.ini, health, $playertwo) $+(-,%dds))) $iif($turn == $playerone, writeini deathmatch.ini turn $chan $playertwo, writeini deathmatch.ini turn $chan $playerone) msg $dmchan it is now $+($turn,',s) turn! writeini deathmatch.ini dds dds1 $rand(0,30) writeini deathmatch.ini dds dds2 $rand(0,30) } elseif ($dmon == on) && ($playerone != $nick) || ($playertwo != $nick) { notice $nick you are not a player of the active dm. please wait until the dm is over, or you can type $qt(!stopdm) } }