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