All pastes #509481 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-25 14:06 UTC
rendered paste body
on *:text:!ice*:#:{
  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 [DM] There is no current DM going on! Type !DM to start! | HALT }
  if (%dmnick1 == $nick) && (%dmnick2 == $nick) { notice $nick [DM] You are not in the DM! | HALT }
  if (%dmspec [ $+ [ $nick ] ] < 25) { notice $nick [DM] You do not have enough special meter! | HALT }
  if (%dmturn != $nick) { notice $nick [DM] It is not your turn! | HALT }
  if (%dmwait == on) { notice $nick [DM] 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,50)
  }
  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 [DM] $nick uses his Ice barrage and hits a %dmhit $+   it also freezes %dmotherperson Please go again !
  dec %dmhealth [ $+ [ %dmotherperson ] ] %dmhit
  dmregen $nick %dmotherperson
  notice $nick [DM] You now have %dmspec [ $+ [ $nick ] ] special bar.