All pastes #393319 Raw Edit

[-EvoIX-]

public text v1 · immutable
·published 2007-03-13 13:27 UTC
rendered paste body
on *:text:!charge:#: {
  if (%turn [ $+ [ $chan ] ] == 1) && ($nick == %player1 [ $+ [ $chan ] ]) {
    unset %mage2 [ $+ [ $chan ] ]
    if (%dh1 [ $+ [ $chan ] ] == on) {
      set %dh1 [ $+ [ $chan ] ] off
      set %turn [ $+ [ $chan ] ] 2
      msg $chan [ DM ] $player1 is busy recovering from the Great Axe swing!
      { halt }
    }
    if (%freeze1 [ $+ [ $chan ] ] == on) {
      set %freeze1 [ $+ [ $chan ] ] off
      set %turn [ $+ [ $chan ] ] 2
      msg $chan [ DM ] $player1 is still frozen!
      { halt }
    }
    set %charge1 [ $+ [ $chan ] ] 3
    set %turn [ $+ [ $chan ] ] 2
    msg $chan [ DM ] $player1 casts the Charge spell, Power of god spells for the next 3 turns increased!

  }
  if (%turn [ $+ [ $chan ] ] == 2) && ($nick == %player2 [ $+ [ $chan ] ]) {
    unset %mage1 [ $+ [ $chan ] ]
    if (%dh2 [ $+ [ $chan ] ] == on) {
      set %dh2 [ $+ [ $chan ] ] off
      set %turn [ $+ [ $chan ] ] 1
      msg $chan [ DM ] $player1 is busy recovering from the Great Axe swing!
      { halt }
    }
    if (%freeze2 [ $+ [ $chan ] ] == on) {
      set %freeze2 [ $+ [ $chan ] ] off
      set %turn [ $+ [ $chan ] ] 1
      msg $chan [ DM ] $player2 is still frozen!
      { halt }
    }
    set %charge1 [ $+ [ $chan ] ] 3
    set %turn [ $+ [ $chan ] ] 1
    msg $chan [ DM ] $player2 casts the Charge spell, Power of god spells for the next 3 turns increased!
  }
}