All pastes #1277442 Raw Edit

semi-fixed (?) Blizzard

public text v1 · immutable
#1277442 ·published 2008-12-06 02:59 UTC
rendered paste body
on 1:TEXT:blizzard*:%BattleChannel:{
  if ((%fightera == $nick)) {
    if ((%mpa >= 75)) { msg %BattleChannel 12 %fightera used 75 MP to use Blizzard! | dec %mpa 75 | msg %BattleChannel 12 $+ %fightera casts 10Blizzard12 on %fighteri $+ . | blizzard }
    else { msg %BattleChannel 12 %fightera $+ , you don't have enough MP to use Blizzard! }
  }
}

alias blizzard {
  if (%blizz.combo <= 5) {
    set -s %dam $rand(25,50)
    if ($readini(batscore.ini, %fightera, accessory) == robe of magi) inc -s %dam 25
    msg %BattleChannel 12An ice crystal pierces %fighteri and does %dam points of damage!
    inc -s %damtotal %dam
    unset %dam
  }
  else {
    unset %blizz.combo
    if ($readini(batscore.ini, %fighteri, accessory) == scarf of warmth) { msg %BattleChannel 12 $+ %fighteri $+ 's Scarf of Warmth reduced 10Blizzard12's damage! | dec -s %damtotal 50 }
    msg %BattleChannel 13Altogether, %fightera inflicted %damtotal points of damage!
    dec -s %hpi %damtotal
    unset %damtotal
    set -s %blizz.chance $rand(0,3)
    if (%blizz.chance == 0) msg %BattleChannel 12The ice attack froze %fighteri for the next turn!
    else switch
  }
}