All pastes #366987 Raw Edit

Untitled

public text v1 · immutable
#366987 ·published 2007-02-22 01:16 UTC
rendered paste body

function inittriggers()
{
  AddTrigger ImmuneFrost "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Chilled failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFrost "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Frostbolt failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFrost "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Cone of Cold failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFrost "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Frost Nova failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFrost "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Ice Lance failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFire "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Pyroblast failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFire "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Fireball failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFire "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Fire Blast failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFire "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Blast Wave failed. @mob@ is immune.\"@*@)"
  AddTrigger ImmuneFire "[Event:@eventid@"CHAT_MSG_SPELL_SELF_DAMAGE](\"Your Scorch failed. @mob@ is immune.\"@*@)"
}
function ImmuneFrost()
{
  Immune-Frost:set[TRUE]
}
function ImmuneFire()
{
  Immune-Fire:set[TRUE]
}
; example spell
if ${Me.PctMana}>10&&!${Immune-Frost}
{
  call UpdateHudStatus "Casting Frostbolt"
  call CastSpell "Frostbolt" ${AttackGUID}
}