on *:text:!dm*:#: {
if (%dm2 == active) {
msg $chan 10There is already a dm going on, please wait for it to end.
}
if (%dm == active) {
set %player2 $nick
msg $chan 10The dm is set! %player1 vs. %player2 $+ .
msg $chan 10 $+ %player1 goes first!
set %dm2 active
set %p1hp 99
set %p2hp 99
set %spec1 0
set %spec2 0
set %spec3 0
set %turn 1
}
else {
set %dm active
set %player1 $nick
msg $chan 10 $+ $nick has initiated a dm. Type !dm within the next 30 seconds if you want to fight him/her.
timer 1 30
timer 1 31 .msg $chan 10No one wants to fight $nick $+ ! Type !dm to initiate a new deathmatch.
unset %dm
unset %player1
unset %player2
unset %dm2
unset %p1hp
unset %p2hp
unset %spec1
unset %spec2
unset %spec3
unset %turn
unset %hit1
unset %hit2
unset %hit3
unset %hit4
unset %hit5
}
}