All pastes #837744 Raw Edit

dm script

public text v1 · immutable
#837744 ·published 2007-12-29 21:53 UTC
rendered paste body
on *:text:!dmcommands*:#:{
  if (%chandm != $chan) { 
    notice $nick %dmlogo You are in the wrong channel! Goto 7 $+ %chandm $+  for DMing!
    HALT
  }
  if (%commandhalt2 [ $+ [ $nick ] ] != $null) { HALT }
  if (%commandhalt != $null) { notice $nick 06I am currently sending commands to somebody else.05 Please wait.
    set %commandhalt2 [ $+ [ $nick ] ] yes
  HALT }
  unset %commandhalt2*
  set %commandhalt yes
  timer 01 10 unset %commandhalt
  msg $chan %dmlogo Sending $nick DMCommands.
  msg $chan %dmlogo Please wait 15-20 seconds before using another command.
  msg $nick %dmlogo DM RULES.
  msg $nick %dmlogo You start with 100% Special Attack meter. It is suggested you use this.
  msg $nick %dmlogo Every turn, your Special Attack meter raises 5%.
  msg $nick %dmlogo DM SPECIAL COMMANDS.
  msg $nick %dmlogo Syntax: Command :: Percent special uses :: Max hit :: Effect
  msg $nick %dmlogo !dds :: 25% :: 46 (double 23) :: Hits twice.
  msg $nick %dmlogo !dmace :: 25% :: 50 :: Double the chance to hit below 25.
  msg $nick %dmlogo !anchor :: 50% :: 40 :: Double the chance to hit above 15.
  msg $nick %dmlogo !dscim :: 60% :: 35 :: 5% chance of earning 100% special meter. 10% chance of earning 40% special meter. 50% chance of STEALING 10% special meter.
  msg $nick %dmlogo !whip :: 55% :: 35 (40. See special) :: If hits below 10, do 1 extra damage. If hits above 11, do 2 extra damage, if hits above 25, do 3 extra damage, if hits 35, do 5 extra damage and steal 20% special meter.
  msg $nick %dmlogo !daxe :: 60% :: Either hits 0 or 45 :: Low chance to hit 45.
  msg $nick %dmlogo DM NORMAL COMMANDS.
  msg $nick %dmlogo Syntax: Command :: Max hit :: Effect
  msg $nick %dmlogo !Nwhip :: 30 :: None.
  msg $nick %dmlogo !Nmaul :: 25 :: Slightly high chance to hit higher.
  msg $nick %dmlogo !Nanchor :: 35 :: Slightly high chance to hit lower.
  msg $nick %dmlogo !Ndscim :: 25 :: Regenerate 5% extra special meter this turn.
  msg $nick %dmlogo OTHER COMMANDS.
  msg $nick %dmlogo Syntax: Command :: Effect
  msg $nick %dmlogo !dmstop :: Stops DM. Requires two people to initiate.
  msg $nick %dmlogo !dmcommands :: Display all commands. This that you are reading IS !dmcommands
  msg $nick %dmlogo !dmcheck :: Display current Win/Lose record, K/D ratio, gold, items.
  msg $nick %dmlogo !dmadmin :: For ADMINS. Displays admin commands.
  msg $nick %dmlogo !dmbuy :: If buying mod is enabled, lets you buy/check items to buy.
  msg $nick %dmlogo !dmmods :: Checks what mods are currently enabled.
}
on *:text:!dds*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 25) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 25
  set %dmhit1 $rand(0,28)
  set %dmhit2 $rand(0,28)
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit1 < 0) { set %dmhit1 0 }
  if (%dmhit2 < 0) { set %dmhit2 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his DDS Special and hits a %dmhit1 and %dmhit2 $+ !
  set %dmhit $calc( %dmhit1 + %dmhit2 )
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!dmace*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 25) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 25
  set %dmhit $rand(0,50)
  if (%dmhit > 25) {
    set %dmhit $rand(0,55)
  }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his DMace Special and hits a %dmhit $+ !
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!anchor*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 50) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 50
  set %dmhit $rand(0,35)
  if (%dmhit < 15) {
    set %dmhit $rand(0,45)
  }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his Anchor Special and hits a %dmhit $+ !
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!dscim*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 60) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 60
  set %dmhit $rand(0,37)
  set %dmrand1 $rand(1,20)
  if (%dmrand1 == 1) { set %dmscima yes }
  set %dmrand2 $rand(1,10)
  if (%dmrand2 == 1) { set %dmscimb yes }
  set %dmrand3 $rand(1,2)
  if (%dmrand3 == 1) { set %dmscimc yes }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his Dscim Special and hits a %dmhit $+ !
  if (%dmscima == yes) { msg $chan %dmlogo $nick Also gains an extra _100%_ worth of special meter! | inc %dmspec [ $+ [ $nick ] ] 100 }
  if (%dmscimb == yes) { msg $chan %dmlogo $nick Also gains an extra _40%_ worth of special meter! | inc %dmspec [ $+ [ $nick ] ] 40 }
  if (%dmscimc == yes) { msg $chan %dmlogo $nick Also STEALS _10%_ special meter from %dmotherperson $+ ! | inc %dmspec [ $+ [ $nick ] ] 10 | dec %dmspec [ $+ [ %dmotherperson ] ] 10 }
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!whip*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 55) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 55
  set %dmhit $rand(0,42)
  if (%dmhit < 11) { inc %dmhit 1 | set %dmwhip 1 }
  if (%dmhit > 10) && (%dmhit < 35) { inc %dmhit 2 | set %dmwhip 2 }
  if (%dmhit == 35) { inc %dmhit 5 | set %dmwhip 5 }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his Whip Special and hits a %dmhit $+ , which includes a + $+ %dmwhip bonus!
  if (%dmwhip == 5) { msg $chan %dmlogo $nick Also steals _20%_ special meter from %dmotherperson $+ !
    inc %dmspec [ $+ [ $nick ] ] 20
    dec %dmspec [ $+ [ %dmotherperson ] ] 20
  }
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!daxe*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 60) { notice $nick %dmlogo You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  dec %dmspec [ $+ [ $nick ] ] 60
  set %dmhit $rand(1,5)
  if (%dmhit < 2) { set %dmhit 0 }
  if (%dmhit > 3) { set %dmhit 65 }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his Daxe Special and hits a %dmhit $+ .
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!nwhip*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  set %dmhit $rand(0,42)
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his Whip and hits a %dmhit $+ .
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!nmaul*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  set %dmhit $rand(0,4)
  if (%dmhit != 4) {
    set %dmhit $rand(0,30)
  }
  if (%dmhit == 4) {
    set %dmhit $rand(15,25)
  }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his maul and hits a %dmhit $+ .
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!nanchor*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  set %dmhit $rand(0,4)
  if (%dmhit != 4) {
    set %dmhit $rand(0,40)
  }
  if (%dmhit == 4) {
    set %dmhit $rand(0,21)
  }
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his anchor and hits a %dmhit $+ .
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
on *:text:!ndscim*:#:{
  if (%otherdmbot == yes) { HALT }
  if ($nick == %dmnick1) { set %dmotherperson %dmnick2 }
  if ($nick == %dmnick2) { set %dmotherperson %dmnick1 }
  if (%chandm != $chan) { HALT }
  if (%dm != on) { notice $nick %dmlogo There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick %dmlogo You are not in the DM! | HALT }
  if (%dmturn != $nick) { notice $nick %dmlogo It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick %dmlogo Please wait until your health meter shows up before doing an attack! | HALT }
  set %dmhit $rand(0,30)
  if (%buydmmod == yes) {
    if (extra_damage isin %listdm [ $+ [ $nick ] ]) { set %dmhit $calc(%dmhit + 5) }
    if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 1) }
    if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 2) }
    if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit $calc(%dmhit - 5) }
    if (special_boost100 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 100 }
    if (special_boost50 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 50 }
    if (special_boost15 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 15 }
    if (special_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 10 }
    if (special_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmspec [ $+ [ $nick ] ] 5 }
    if (health_boost1 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 1 }
    if (health_boost5 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 5 }
    if (health_boost10 isin %listdm [ $+ [ $nick ] ]) { inc %dmhealth [ $+ [ $nick ] ] 10 }
  }
  if (%dmhit < 0) { set %dmhit 0 }
  if (%dmspec [ $+ [ $nick ] ] > 100) { set %dmspec [ $+ [ $nick ] ] 100 }
  msg $chan %dmlogo $nick uses his dscim and hits a %dmhit $+ , and also regenerates an extra 5% special meter!
  inc %dmspec [ $+ [ $nick ] ] 5
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick %dmlogo You now have %dmspec [ $+ [ $nick ] ] special bar.
}
alias dmregen {
  if (%otherdmbot == yes) { HALT }
  inc %dmspec [ $+ [ $1 ] ] 5
  if (%dmspec [ $+ [ $1 ] ] > 100) { set %dmspec [ $+ [ $1 ] ] 100 }
  set %dmturn $2
  msg %chandm %dmlogo It is now $2 $+ 's turn!
  if (%dmhealth [ $+ [ %dmnick1 ] ] > 99) {
  set %dmhealth [ $+ [ %dmnick1 ] ] 99 }
  if (%dmhealth [ $+ [ %dmnick2 ] ] > 99) {
  set %dmhealth [ $+ [ %dmnick2 ] ] 99 }
  if (%dmturn != $me) {
    timer 01 02 msg %chandm %dmlogo Health: %dmnick1 $+ (05 $+ %dmhealth [ $+ [ %dmnick1 ] ] $+ ) %dmnick2 $+ (05 $+ %dmhealth [ $+ [ %dmnick2 ] ] $+ )
    timer 01 02 unset %dmwait
  }
  set %dmwait on
  dmcheck
}
alias dmcheck {
  if (%otherdmbot == yes) { HALT }
  if (%dmhealth [ $+ [ %dmnick1 ] ] < 1) {
    msg %chandm %dmlogo %dmnick1 has fallen to the ground, while %dmnick2 celebrates a glorious win! %dmnick2 wins!
    inc %losedm [ $+ [ %dmnick1 ] ]
    inc %winsdm [ $+ [ %dmnick2 ] ]
    set %golddm1 $rand(150,500)
    set %golddm2 $rand(50,150)
    set %golddm1 $calc(%golddm1 + %dmhealth [ $+ [ %dmnick2 ] ] - %dmhealth [ $+ [ %dmnick1 ] ] + %dmspec [ $+ [ %dmnick2 ] ] - %dmspec [ $+ [ %dmnick1 ] ])
    if (%dmnick2 != $me) { notice %dmnick2 You win04 %golddm1 Gold! }
    if (%dmnick1 != $me) { notice %dmnick1 You win04 %golddm2 Gold! }
    inc %golddm [ $+ [ %dmnick1 ] ] %golddm2
    inc %golddm [ $+ [ %dmnick2 ] ] %golddm1
    inc %allgolddm [ $+ [ %dmnick1 ] ] %golddm2
    inc %allgolddm [ $+ [ %dmnick2 ] ] %golddm1
    if (%listdm2 [ $+ [ %dmnick1 ] ] != $null) { set %listdm [ $+ [ %dmnick1 ] ] %listdm2 [ $+ [ %dmnick1 ] ] }
    if (%listdm2 [ $+ [ %dmnick2 ] ] != $null) { set %listdm [ $+ [ %dmnick2 ] ] %listdm2 [ $+ [ %dmnick2 ] ] }
    unset %listdm2*
    unset %dm*
    halt
  }
  if (%dmhealth [ $+ [ %dmnick2 ] ] < 1) {
    msg %chandm %dmlogo %dmnick2 has fallen to the ground, while %dmnick1 celebrates a glorious win! %dmnick1 wins!
    inc %losedm [ $+ [ %dmnick2 ] ]
    inc %winsdm [ $+ [ %dmnick1 ] ] 
    set %golddm1 $rand(150,500)
    set %golddm2 $rand(50,150)
    set %golddm1 $calc(%golddm1 + %dmhealth [ $+ [ %dmnick1 ] ] - %dmhealth [ $+ [ %dmnick2 ] ] + %dmspec [ $+ [ %dmnick1 ] ] - %dmspec [ $+ [ %dmnick2 ] ])
    if (%dmnick1 != $me) { notice %dmnick1 You win04 %golddm1 Gold! }
    if (%dmnick2 != $me) { notice %dmnick2 You win04 %golddm2 Gold! }
    inc %golddm [ $+ [ %dmnick1 ] ] %golddm1
    inc %golddm [ $+ [ %dmnick2 ] ] %golddm2
    inc %allgolddm [ $+ [ %dmnick1 ] ] %golddm1
    inc %allgolddm [ $+ [ %dmnick2 ] ] %golddm2
    if (%listdm2 [ $+ [ %dmnick1 ] ] != $null) { set %listdm [ $+ [ %dmnick1 ] ] %listdm2 [ $+ [ %dmnick1 ] ] }
    if (%listdm2 [ $+ [ %dmnick2 ] ] != $null) { set %listdm [ $+ [ %dmnick2 ] ] %listdm2 [ $+ [ %dmnick2 ] ] }
    unset %listdm2*
    unset %dm*
    halt
  }
  dmaiturn
}
on *:load:{
  set %dmlogo 04[05DM04]
  unset %dm*
  :genderdm
  set %genderdm $?="Are you a guy or girl? Please type GUY or GIRL."
  if (%genderdm == guy) {
    set %genderdm his
  }
  if (%genderdm == girl) {
    set %genderdm her
  }
  if (%genderdm != her) && (%genderdm != his) { goto genderdm }
  set %buydmmod $?="Do you want Buy Mod enabled? (Lets people buy items with gold they earn, recommended.) $+ $crlf $+ Answer Y/N."
  if (%admindm == y) || (%admindm == yes) {
    set %buydmmod yes
  }
  if (%admindm == n) || (%admindm == no) {
    set %buydmmod no
  }
  :admindm
  set %admindm $?="Do you want any Admins? (They can edit basically anything, even during a game. Only aliases of course. $+ $crlf $+ Answer Y/N."
  if (%admindm == y) || (%admindm == yes) {
    set %admindm yes
    set %adminsdm $?="What are the nicks of what Admins you want? Type a comma inbetween each. No spaces."
  }
  if (%admindm == n) || (%admindm == no) {
    set %admindm no
  }
  if (%admindm != yes) && (%admindm != no) && (%admindm != y) && (%admindm != n) {
    goto admindm
  }
  set %chandm $?="What channel do you want your DM script to be in? (Default: #chatdm )"
  set %copymod $?="Do you want CopyMod Beta on? (While fighting the bot, it imitates your items. (YES/NO, Y/N)"
  if (%copymod == n) { set %copymod no }
  if (%copymod == y) { set %copymod yes }
}
alias dmadmins {
  if (%otherdmbot == yes) { HALT }
  if ($1 == $null) { set %adminsdm $?="What are the nicks of people you want as admins?"
    halt
  }
  set %adminsdm $1-
  halt
}
on *:text:!dmadmin*:#: {
  if (%otherdmbot == yes) { HALT }
  if ($nick !isin %adminsdm) { notice $nick %dmlogo You are not an admin! | HALT }
  if ($2 == commands) || ($2 == $null) {
    msg $nick %dmlogo ADMIN COMMANDS
    msg $nick %dmlogo An underlined line means YOU put that info in.
    msg $nick %dmlogo If something is bold underlined, it means it is optional.
    msg $nick %dmlogo Syntax: Command - What it does
    msg $nick %dmlogo !dmadmin edit type amount other - Edits type to amount.
    msg $nick %dmlogo EDIT COMMANDS (type)
    msg $nick %dmlogo !dmadmin edit hp amount person - Edits person's Health to amount
    msg $nick %dmlogo !dmadmin edit wins amount person - Edits person's Win amount to amount
    msg $nick %dmlogo !dmadmin edit loses amount person - Edits person's Lose amount to amount
    msg $nick %dmlogo !dmadmin edit special amount person - Edits person's Special Meter to amount
    msg $nick %dmlogo !dmadmin edit vote amount - Edits the current amount of votes to end the game to amount
    msg $nick %dmlogo !dmadmin edit gold amount person - Edits person's gold amount to amount
    msg $nick %dmlogo !dmadmin edit person number person - Changes number's game position to person's. If person is unspecified, it's you.
    msg $nick %dmlogo !dmadmin edit copymod on/off - Changed Copy Mod to On or Off
    msg $nick %dmlogo !dmadmin edit buydmmod on/off - Changed Buying Mod to On or Off
    msg $nick %dmlogo DM NUMBER SYNTAX FOR ABOVE COMMAND: number 1: person who first said !DM. number 2: person who accepted DM by typing !DM second.
    msg $nick %dmlogo More commmands to be coming. Admin in beta mode currently.
    halt
  }
  if ($2 == edit) {
    if ($3 == gold) {
      set %golddm [ $+ [ $5 ] ] $4
      notice $nick %dmlogo $5 $+ 's Gold set to $4 $+ .
      halt
    }
    if ($3 == hp) {
      set %dmhealth [ $+ [ $5 ] ] $4
      notice $nick %dmlogo $5 $+ 's Health set to $4 $+ .
      halt
    }
    if ($3 == wins) {
      set %winsdm [ $+ [ $5 ] ] $4
      notice $nick %dmlogo $5 $+ 's Wins set to $4 $+ .
      halt
    }
    if ($3 == loses) {
      set %losedm [ $+ [ $5 ] ] $4
      notice $nick %dmlogo $5 $+ 's Loses set to $4 $+ .
      halt
    }
    if ($3 == special) {
      set %dmspec [ $+ [ $5 ] ] $4
      notice $nick %dmlogo $5 $+ 's Special Meter set to $4 $+ .
      halt
    }
    if ($3 == vote) {
      set %dmstopcount $4
      notice $nick %dmlogo Votes to end the game now $4 $+ .
      halt
    }
    if ($3 == copymod) {
      if ($4 != on) && ($4 != off) {
        notice $nick %dmlogo Please type !dmadmin edit copymod on/off
        halt
      }
      set %copymod $4
      notice $nick %dmlogo CopyMod now $4
      halt
    }
    if ($3 == buydmmod) {
      if ($4 != on) && ($4 != off) {
        notice $nick %dmlogo Please type !dmadmin edit buydmmod on/off
        halt
      }
      set %copymod $4
      notice $nick %dmlogo Buying Mod now $4
      halt
    }
  }
  if ($3 == person) {
    if ($5 == $null) {
      if ($4 == 1) {
        if (%dmturn == %dmnick1) {
          set %dmturn $nick
        }
        set %dmhealth [ $+ [ $nick ] ] %dmhealth [ $+ [ %dmnick1 ] ]
        set %dmspec [ $+ [ $nick ] ] %dmspec [ $+ [ %dmnick1 ] ]
        notice $nick %dmlogo You are now in the place of %dmnick1 $+ .
        msg %dmchan %dmlogo $nick is now in the place of %dmnick1 $+ .
        set %dmnick1 $nick
        halt
      }
      if ($4 == 2) {
        if (%dmturn == %dmnick2) {
          set %dmturn $nick
        }
        set %dmhealth [ $+ [ $nick ] ] %dmhealth [ $+ [ %dmnick2 ] ]
        set %dmspec [ $+ [ $nick ] ] %dmspec [ $+ [ %dmnick2 ] ]
        notice $nick %dmlogo You are now in the place of %dmnick2 $+ .
        msg %dmchan %dmlogo $nick is now in the place of %dmnick2 $+ .
        set %dmnick1 $nick
        halt
      }
    }
    if ($5 != $null) {
      if ($4 == 1) {
        if (%dmturn == %dmnick1) {
          set %dmturn $5
        }
        set %dmhealth [ $+ [ $5 ] ] %dmhealth [ $+ [ %dmnick1 ] ]
        set %dmspec [ $+ [ $5 ] ] %dmspec [ $+ [ %dmnick1 ] ]
        notice $nick %dmlogo $5 is now in the place of %dmnick1 $+ .
        msg %dmchan %dmlogo $5 is now in the place of %dmnick1 $+ .
        set %dmnick1 $nick
        halt
      }
      if ($4 == 2) {
        if (%dmturn == %dmnick2) {
          set %dmturn $5
        }
        set %dmhealth [ $+ [ $5 ] ] %dmhealth [ $+ [ %dmnick2 ] ]
        set %dmspec [ $+ [ $5 ] ] %dmspec [ $+ [ %dmnick2 ] ]
        notice $nick %dmlogo $5 is now in the place of %dmnick2 $+ .
        msg %dmchan %dmlogo $5 is now in the place of %dmnick2 $+ .
        set %dmnick1 $nick
        halt
      }
    }
  }
}
alias chandm {
  if ($1 == $null) {
    echo -a %dmlogo Setting ( $+ %chandm $+ ) to $active
    set %chandm $active
    halt
  }
  echo -a %dmlogo Setting ( $+ %chandm $+ )  to $1-
  set %chandm $1-
  halt
}
alias dmend {
  if (%otherdmbot == yes) { HALT }
  if (%dmnick2 == $null) {
    msg %chandm %dmlogo Nobody has replied to %dmnick1 $+ 's DM request within 15 seconds! I will face you!
    if (%copymod == yes) { set %listdm2 [ $+ [ $me ] ] %listdm [ $+ [ $me ] ] 
      set %listdm [ $+ [ $me ] ] %listdm [ $+ [ %dmnick1 ] ] 
    }
    set %dmai on
    set %dmnick2 $me
    set %dm on
    set %dmrand $rand(1,2)
    if (%dmrand == 1) {
      set %dmturn %dmnick1
    }
    if (%dmrand == 2) {
      set %dmturn %dmnick2
    }
    msg %chandm %dmlogo DM started between %dmnick1 and %dmnick2 $+ !
    msg %chandm %dmlogo To see commands, type !dmcommands $+ !
    msg %chandm %dmlogo Random pick... %dmturn goes first!
    msg %chandm %dmlogo For current mods running, type !dmmods!
    set %dmspec [ $+ [ %dmnick1 ] ] 100
    set %dmspec [ $+ [ %dmnick2 ] ] 100
    set %dmhealth [ $+ [ %dmnick1 ] ] 99
    set %dmhealth [ $+ [ %dmnick2 ] ] 99
    dmaiturn
  }
}
on *:text:!dmmods*:#: {
  if (%dmcommands == on) { 
    notice $nick %dmlogo Currently sending somebody else the mods.
    notice $nick %dmlogo Please try again in 10 seconds.
    halt
  }
  set %dmcommands on
  timer 01 10 unset %dmcommands
  if (%copymod == yes) {
    notice $nick %dmlogo CopyMod Beta is enabled! When you face the bot, it will copy your items!
  }
  if (%buydmmod == yes) {
    notice $nick %dmlogo BuyingMod Beta is enabled! You can buy items for initial use all the time. Type !dmbuy for more info.
  }
  if (%admindm == yes) {
    notice $nick %dmlogo AdminDM Beta is enabled! Certain people get to use admin commands!
    notice $nick %dmlogo AdminDM Beta is enabled! Admins: %adminsdm
  }
}
on *:text:!dmbuy*:#: {
  if (%otherdmbot == yes) { HALT }
  if (%buydmmod != yes) { msg nick %dmlogo This bot has DM Buying Mod turned OFF. | HALT }
  if (%golddm [ $+ [ $nick ] ] == $null) { set %golddm [ $+ [ $nick ] ] 0 }
  if ($2 == $null) || ($2 == list) {
    if (%dmcommands == on) { 
      notice $nick %dmlogo Currently sending somebody else the commands.
      notice $nick %dmlogo Please try again in 15 seconds.
      halt
    }
    set %dmcommands on
    timer 01 20 unset %dmcommands
    msg $chan %dmlogo Sending $nick DM Items To Buy List.
    msg $chan %dmlogo Please wait 15-20 seconds before using another command.
    msg $nick %dmlogo ITEMS TO BUY LIST
    msg $nick %dmlogo TO BUY: !dmbuy buy item
    msg $nick %dmlogo Syntax: Item - Price - Effect
    msg $nick %dmlogo Health_Boost1 - 1500 - Increases your health by 1 hp each turn.
    msg $nick %dmlogo Health_Boost5 - 5000 - Increases your health by 5 hp each turn.
    msg $nick %dmlogo Health_Boost10 - 9500 - Increases your health by 10 hp each turn.
    msg $nick %dmlogo Special_Boost100 - 20000 - Infinite special meter.
    msg $nick %dmlogo Special_Boost50 - 12000 - Increases your special meter by 50 each turn.
    msg $nick %dmlogo Special_Boost15 - 7000 - Increases your special meter by 15 each turn.
    msg $nick %dmlogo Special_Boost10 - 5000 - Increases your special meter by 10 each turn.
    msg $nick %dmlogo Special_Boost5 - 2500 - Increases your special meter by 5 each turn.
    msg $nick %dmlogo Extra_Damage - 10000 - Hits an extra 5 damage every hit.
    msg $nick %dmlogo Weak_Armor - 1500 - Get inflicted with 1 less damage every hit.
    msg $nick %dmlogo Med_Armor - 2500 - Get inflicted with 2 less damage every hit.
    msg $nick %dmlogo Strong_Armor - 10000 - Get inflicted with 5 less damage every hit.
    msg $nick %dmlogo Inc_Wins1 - 4000 - Increase your wins by 1 win.
    msg $nick %dmlogo Inc_Wins5 - 15000 - Increase your wins by 5 wins.
    msg $nick %dmlogo Dec_Loses1 - 5000 - Decrease your loses by 1 lose.
    msg $nick %dmlogo Dec_Loses5 - 20000 - Decrease your loses by 5 loses.
    msg $nick %dmlogo Dm Beta Buying Mod
  }
  if ($2 == buy) {
    if ($3 isin %listdm [ $+ [ $nick ] ]) {
      notice $nick You already have $3 $+ !
      halt
    }
    if ($3 == dec_lose1) {
      if (%golddm [ $+ [ $nick ] ] < 5000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 5000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
      dec %losedm [ $+ [ $nick ] ] 1
    }
    if ($3 == dec_lose5) {
      if (%golddm [ $+ [ $nick ] ] < 20000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 20000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
      dec %losedm [ $+ [ $nick ] ] 5
    }
    if ($3 == inc_wins5) {
      if (%golddm [ $+ [ $nick ] ] < 15000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 15000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
      inc %winsdm [ $+ [ $nick ] ] 5
    }
    if ($3 == inc_wins1) {
      if (%golddm [ $+ [ $nick ] ] < 4000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 4000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
      inc %winsdm [ $+ [ $nick ] ] 1
    }
    if ($3 == strong_armor) {
      if (%golddm [ $+ [ $nick ] ] < 10000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 10000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == med_armor) {
      if (%golddm [ $+ [ $nick ] ] < 2500) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 2500
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == weak_armor) {
      if (%golddm [ $+ [ $nick ] ] < 1500) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 1500
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == extra_damage) {
      if (%golddm [ $+ [ $nick ] ] < 10000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 10000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == special_boost5) {
      if (%golddm [ $+ [ $nick ] ] < 2500) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 2500
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == special_boost10) {
      if (%golddm [ $+ [ $nick ] ] < 5000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 5000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == special_boost15) {
      if (%golddm [ $+ [ $nick ] ] < 7000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 7000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == special_boost50) {
      if (%golddm [ $+ [ $nick ] ] < 12000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 12000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == special_boost100) {
      if (%golddm [ $+ [ $nick ] ] < 20000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 20000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == health_boost1) {
      if (%golddm [ $+ [ $nick ] ] < 1500) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 1500
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == health_boost5) {
      if (%golddm [ $+ [ $nick ] ] < 5000) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 5000
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
    if ($3 == health_boost10) {
      if (%golddm [ $+ [ $nick ] ] < 9500) {
        notice $nick %dmlogo You do not have enough gold! You have %golddm [ $+ [ $nick ] ] gold!
        halt
      }
      if (%listdm [ $+ [ $nick ] ] != $null) { set %listdm [ $+ [ $nick ] ] %listdm [ $+ [ $nick ] ] $+ , $+ $3 }
      if (%listdm [ $+ [ $nick ] ] == $null) { set %listdm [ $+ [ $nick ] ] $3 }
      dec %golddm [ $+ [ $nick ] ] 9500
      msg $nick %dmlogo Your Items: %listdm [ $+ [ $nick ] ]
      msg $nick %dmlogo Your gold: %golddm [ $+ [ $nick ] ]
    }
  }
}
alias dmaiturn {
  if (%otherdmbot == yes) { HALT }
  if (%dmai == on) {
    if (%dmturn == $me) {
      if (%dmspec [ $+ [ $me ] ] > 59) {
        set %dmrand $rand(1,6)
        goto %dmrand
      }
      if (%dmspec [ $+ [ $me ] ] > 54) && (%dmspec < 60) {
        set %dmrand $rand(1,4)
        goto %dmrand
      }
      if (%dmspec [ $+ [ $me ] ] > 49) && (%dmspec < 55) {
        set %dmrand $rand(1,3)
        goto %dmrand
      }
      if (%dmspec [ $+ [ $me ] ] > 24) && (%dmspec < 50) {
        set %dmrand $rand(1,2)
        goto %dmrand
      }
      if (%dmspec [ $+ [ $me ] ] < 25) {
        set %dmrand $rand(7,10)
        goto %dmrand
      }
      :10
      if (%dmrand == 10) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !ndscim
            set %dmhit1 $rand(0,25)
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Dscim and hits a %dmhit1 $+ , and also regenerates an extra 5% special meter!
            inc %dmspec [ $+ [ $me ] ] 5
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :9
      if (%dmrand == 9) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !nanchor
            set %dmhit1 $rand(0,4)
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%dmhit1 != 4) {
              set %dmhit1 $rand(0,35)
            }
            if (%dmhit1 == 4) {
              set %dmhit1 $rand(0,21)
            }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Anchor and hits a %dmhit1 $+ .
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :8
      if (%dmrand == 8) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !nmaul
            set %dmhit1 $rand(0,4)
            if (%dmhit1 != 4) {
              set %dmhit1 $rand(0,25)
            }
            if (%dmhit1 == 4) {
              set %dmhit1 $rand(15,25)
            }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Maul and hits a %dmhit1 $+ .
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :7
      if (%dmrand == 7) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !nwhip
            set %dmhit1 $rand(0,30)
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Whip and hits a %dmhit1 $+ .
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :6
      if (%dmrand == 6) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !daxe
            dec %dmspec [ $+ [ $me ] ] 60
            set %dmhit1 $rand(1,5)
            if (%dmhit < 2) { set %dmhit 0 }
            if (%dmhit > 3) { set %dmhit 45 }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Daxe Special and hits a %dmhit1 $+ !
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :5
      if (%dmrand == 5) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !dscim
            dec %dmspec [ $+ [ $me ] ] 60
            set %dmhit1 $rand(0,35)
            set %dmrand1 $rand(1,20)
            if (%dmrand1 == 1) { set %dmscima yes }
            set %dmrand2 $rand(1,10)
            if (%dmrand2 == 1) { set %dmscimb yes }
            set %dmrand3 $rand(1,2)
            if (%dmrand3 == 1) { set %dmscimc yes }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm DScim Special and hits a %dmhit1 $+ !
            if (%dmscima == yes) { msg %chandm %dmlogo $me Also gains an extra _100%_ worth of special meter! | inc %dmspec [ $+ [ $me ] ] 100 }
            if (%dmscimb == yes) { msg %chandm %dmlogo $me Also gains an extra _40%_ worth of special meter! | inc %dmspec [ $+ [ $me ] ] 40 }
            if (%dmscimc == yes) { msg %chandm %dmlogo $me Also STEALS _10%_ special meter from %dmotherperson $+ ! | inc %dmspec [ $+ [ $me ] ] 10 | dec %dmspec [ $+ [ %dmotherperson ] ] 10 }
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :4
      if (%dmrand == 4) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !whip
            dec %dmspec [ $+ [ $me ] ] 55
            set %dmhit1 $rand(0,35)
            if (%dmhit1 < 11) { inc %dmhit1 1 | set %dmwhip 1 }
            if (%dmhit1 > 10) && (%dmhit1 < 35) { inc %dmhit1 2 | set %dmwhip 2 }
            if (%dmhit1 == 35) { inc %dmhit1 5 | set %dmwhip 5 }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Whip Special and hits a %dmhit1 $+ , which includes a + $+ %dmwhip bonus!
            if (%dmwhip == 5) { msg %chandm %dmlogo $me Also steals _20%_ special meter from %dmotherperson $+ !
              inc %dmspec [ $+ [ $me ] ] 20
              dec %dmspec [ $+ [ %dmotherperson ] ] 20
            }
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :3
      if (%dmrand == 3) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !anchor
            dec %dmspec [ $+ [ $me ] ] 50
            set %dmhit1 $rand(0,35)
            if (%dmhit1 < 15) {
              set %dmhit1 $rand(0,40)
            }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm Anchor Special and hits a %dmhit1 $+ !
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :2
      if (%dmrand == 2) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !dmace
            dec %dmspec [ $+ [ $me ] ] 25
            set %dmhit1 $rand(0,50)
            if (%dmhit1 > 25) {
              set %dmhit1 $rand(0,50)
            }
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            msg %chandm %dmlogo $me uses %genderdm DMace Special and hits a %dmhit1 $+ !
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit1
            dmregen $me %dmotherperson
          }
        }
      }
      :1
      if (%dmrand == 1) {
        if (%dmai == on) {
          if (%dmturn == $me) {
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            msg %chandm !dds
            dec %dmspec [ $+ [ $me ] ] 25
            set %dmhit1 $rand(0,23)
            set %dmhit2 $rand(0,23)
            if ($me == %dmnick1) { set %dmotherperson %dmnick2 }
            if ($me == %dmnick2) { set %dmotherperson %dmnick1 }
            if (%buydmmod == yes) {
              if (extra_damage isin %listdm [ $+ [ $me ] ]) { set %dmhit1 $calc(%dmhit1 + 5) }
              if (weak_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 1) }
              if (med_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 2) }
              if (strong_armor isin %listdm [ $+ [ %dmotherperson ] ]) { set %dmhit1 $calc(%dmhit1 - 5) }
              if (special_boost100 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 100 }
              if (special_boost50 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 50 }
              if (special_boost15 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 15 }
              if (special_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 10 }
              if (special_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmspec [ $+ [ $me ] ] 5 }
              if (health_boost1 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 1 }
              if (health_boost5 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 5 }
              if (health_boost10 isin %listdm [ $+ [ $me ] ]) { inc %dmhealth [ $+ [ $me ] ] 10 }
            }
            if (%dmhit1 < 0) { set %dmhit1 0 }
            if (%dmhit2 < 0) { set %dmhit2 0 }
            msg %chandm %dmlogo $me uses %genderdm DDS Special and hits a %dmhit1 and %dmhit2 $+ !
            set %dmhit $calc( %dmhit1 + %dmhit2 )
            dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
            dmregen $me %dmotherperson
          }
        }
      }
    }
  }
}
on *:text:!dmcheck*:#:{
  if (%chandm != $chan) { 
    notice $nick %dmlogo You are in the wrong channel! Goto 7 $+ %chandm $+  for DMing!
    HALT
  }
  if (%otherdmbot == yes) { HALT }
  if ($2 == $null) {
    if (%winsdm [ $+ [ $nick ] ] == $null) { set %winsdm [ $+ [ $nick ] ] 0 }
    if (%losedm [ $+ [ $nick ] ] == $null) { set %losedm [ $+ [ $nick ] ] 0 }
    if (%golddm [ $+ [ $nick ] ] == $null) { set %golddm [ $+ [ $nick ] ] 0 }
    notice $nick %dmlogo You have ( $+ %golddm [ $+ [ $nick ] ] $+ ) Gold.
    notice $nick %dmlogo Gold earned to date: ( $+ %allgolddm [ $+ [ $nick ] ] $+ ) $+ .
    if (%buydmmod == yes) { notice $nick %dmlogo You're Item List: %listdm [ $+ [ $nick ] ] }
    notice $nick %dmlogo Wins: ( $+ %winsdm [ $+ [ $nick ] ] $+ )
    notice $nick %dmlogo Loses: ( $+ %losedm [ $+ [ $nick ] ] $+ )
    if (%losedm [ $+ [ $nick ] ] != 0) { notice $nick %dmlogo Win Ratio: Everytime you lose, you average ( $+ $calc( %winsdm [ $+ [ $nick ] ] / %losedm [ $+ [ $nick ] ] ) $+ ) wins. }
    if (%losedm [ $+ [ $nick ] ] == 0) { notice $nick %dmlogo Win Ratio: Everytime you lose, you average ( $+ %winsdm [ $+ [ $nick ] ] $+ ) wins. }
    halt
  }
  if (%winsdm [ $+ [ $2 ] ] == $null) { set %winsdm [ $+ [ $2 ] ] 0 }
  if (%losedm [ $+ [ $2 ] ] == $null) { set %losedm [ $+ [ $2 ] ] 0 }
  if (%golddm [ $+ [ $2 ] ] == $null) { set %golddm [ $+ [ $2 ] ] 0 }
  notice $nick %dmlogo $2 has ( $+ %golddm [ $+ [ $2 ] ] $+ ) Gold.
  notice $nick %dmlogo $2 $+ 's Gold earned to date: ( $+ %allgolddm [ $+ [ $2 ] ] $+ ) $+ .
  if (%buydmmod == yes) { notice $nick %dmlogo $2 $+ 's Item List: %listdm [ $+ [ $2 ] ] }
  notice $nick %dmlogo $2 $+ 's Wins: ( $+ %winsdm [ $+ [ $2 ] ] $+ )
  notice $nick %dmlogo $2 $+ 's Loses: ( $+ %losedm [ $+ [ $2 ] ] $+ )
  if (%losedm [ $+ [ $2 ] ] == 0) { notice $nick %dmlogo $2 $+ 's Win Ratio: Everytime $2 loses, they average ( $+ %winsdm [ $+ [ $2 ] ] $+ ) wins. }
  if (%losedm [ $+ [ $2 ] ] != 0) { notice $nick %dmlogo $2 $+ 's Win Ratio: Everytime $2 loses, they average ( $+ $calc( %winsdm [ $+ [ $2 ] ] / %losedm [ $+ [ $2 ] ] ) $+ ) wins. }
  halt
}
on *:text:!dmstop*:#:{
  if (%chandm != $chan) { 
    notice $nick %dmlogo You are in the wrong channel! Goto 7 $+ %chandm $+  for DMing!
    HALT
  }
  if (%otherdmbot == yes) { HALT }
  if (%dm != on) {
    notice $Nick %dmlogo No game is currently running!
    halt
  }
  if (%dmstopcount == $null) {
    set %dmstopcount 1
    msg %chandm %dmlogo There is now 1 vote to end the game!
    halt
  }
  if (%dmstopcount == 1) {
    msg %chandm %dmlogo Ending game!
    unset %dm*
    halt
  }
}
on *:text:!stopdm*:#:{
  if (%chandm != $chan) { 
    notice $nick %dmlogo You are in the wrong channel! Goto 7 $+ %chandm $+  for DMing!
    HALT
  }
  if (%otherdmbot == yes) { HALT }
  if (%dm != on) {
    notice $Nick %dmlogo No game is currently running!
    halt
  }
  if (%dmstopcount == $null) {
    set %dmstopcount 1
    msg %chandm %dmlogo There is now 1 vote to end the game!
    halt
  }
  if (%dmstopcount == 1) {
    msg %chandm %dmlogo Ending game!
    unset %dm*
    halt
  }
}
on *:text:!dm*:#:{
  if (%chandm != $chan) { 
    notice $nick %dmlogo You are in the wrong channel! Goto 7 $+ %chandm $+  for DMing!
    HALT
  }
  if (%otherdmbot == yes) { HALT }
  if ($chan == %chandm) {
    if (%dmfixing == yes) { msg %chandm %dmlogo DM'ing is currently disabled! We are adding a few new features. We hope to be back shortly.
      halt
    }
  }
  if (%dmfixing == yes) { notice $nick %dmlogo DM'ing is currently disabled! We are adding a few new features. We hope to be back shortly.
    halt
  }
  if ($1 == !dm) {
    if (%dm == on) {
      notice $Nick %dmlogo A dm is already running! Have 2 people type !dmstop to stop it!
      halt
    }
    if ($chan != %chandm) {
      notice $nick %dmlogo This is the wrong channel for DMing! Please goto %chandm to DM!
      halt
    }
    if (%dmstart == $null) {
      msg %chandm %dmlogo A DM request has been opened! One more person needs to type !DM to join!
      timer 01 15 dmend
      unset %dm*
      set %dmnick1 $nick
      set %dmstart yes
      halt
    }
    if (%dmstart == yes) {
      if (%dmnick1 != $nick) {
        set %dmnick2 $nick
        set %dm on
        msg %chandm %dmlogo DM started between %dmnick1 and %dmnick2 $+ !
        msg %chandm %dmlogo To see commands, type !dmcommands $+ !
        set %dmrand $rand(1,2)
        if (%dmrand == 1) {
          set %dmturn %dmnick1
        }
        if (%dmrand == 2) {
          set %dmturn %dmnick2
        }
        set %dmspec [ $+ [ %dmnick1 ] ] 100
        set %dmspec [ $+ [ %dmnick2 ] ] 100
        set %dmhealth [ $+ [ %dmnick1 ] ] 99
        set %dmhealth [ $+ [ %dmnick2 ] ] 99
        msg %chandm %dmlogo Random pick... %dmturn goes first!
      }
    }
  }
}