public override void OnSpellStruck(SpellPacketBody spell) { Logger.Info("Minor Globe of Invulnerability OnSpellStruck"); }
// spell.target_list.remove_target( target.obj ) // spell.spell_end( spell.id ) public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Elixir of vision OnBeginRound"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("False Life OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Remove Fear OnEndSpellCast"); }
public override void OnSpellStruck(SpellPacketBody spell) { Logger.Info("Web OnSpellStruck"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Lightning Bolt OnEndSpellCast"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Summon Air Elemental OnEndSpellCast"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Restoration OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Glibness OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Protection From Elementals OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Restoration OnBeginRound"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Protection From Elementals OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Ring of Animal Summoning (Dog) OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Ring of Animal Summoning (Dog) OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Silence OnEndSpellCast"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Glibness OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Lightning Bolt OnBeginRound"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Barkskin OnBeginRound"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Summon Air Elemental OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Barkskin OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Remove Fear OnBeginRound"); }
public override void OnSpellEffect(SpellPacketBody spell) { Logger.Info("Barkskin OnSpellEffect"); int bonus; if (spell.casterLevel >= 12) { bonus = 5; } else if (spell.casterLevel >= 9) { bonus = 4; } else if (spell.casterLevel >= 6) { bonus = 3; } else { bonus = 2; } spell.duration = 100 * spell.casterLevel; var target_item = spell.Targets[0]; if (target_item.Object.IsFriendly(spell.caster)) { if ((target_item.Object.type == ObjectType.pc) || (target_item.Object.type == ObjectType.npc)) { target_item.Object.AddCondition("sp-Barkskin", spell.spellId, spell.duration, bonus); target_item.ParticleSystem = AttachParticles("sp-Barkskin", target_item.Object); } else { AttachParticles("Fizzle", target_item.Object); target_item.Object.FloatMesFileLine("mes/spell.mes", 30000); target_item.Object.FloatMesFileLine("mes/spell.mes", 31001); spell.RemoveTarget(target_item.Object); } } else if (!target_item.Object.SavingThrowSpell(spell.dc, SavingThrowType.Will, D20SavingThrowFlag.NONE, spell.caster, spell.spellId)) { if ((target_item.Object.type == ObjectType.pc) || (target_item.Object.type == ObjectType.npc)) { // saving throw unsuccessful target_item.Object.FloatMesFileLine("mes/spell.mes", 30002); target_item.Object.AddCondition("sp-Barkskin", spell.spellId, spell.duration, bonus); target_item.ParticleSystem = AttachParticles("sp-Barkskin", target_item.Object); } else { AttachParticles("Fizzle", target_item.Object); target_item.Object.FloatMesFileLine("mes/spell.mes", 30000); target_item.Object.FloatMesFileLine("mes/spell.mes", 31001); spell.RemoveTarget(target_item.Object); } } else { // saving throw successful target_item.Object.FloatMesFileLine("mes/spell.mes", 30001); AttachParticles("Fizzle", target_item.Object); spell.RemoveTarget(target_item.Object); } spell.EndSpell(); }
public override void OnAreaOfEffectHit(SpellPacketBody spell) { Logger.Info("Web OnAreaOfEffectHit"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Desecrate OnBeginRound"); }
public override void OnBeginSpellCast(SpellPacketBody spell) { Logger.Info("Elixir of vision OnBeginSpellCast"); Logger.Info("spell.target_list={0}", spell.Targets); Logger.Info("spell.caster={0} caster.level= {1}", spell.caster, spell.casterLevel); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Desecrate OnEndSpellCast"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("Elixir of vision OnEndSpellCast"); }
public override void OnBeginRound(SpellPacketBody spell) { Logger.Info("Silence OnBeginRound"); }
public override void OnEndSpellCast(SpellPacketBody spell) { Logger.Info("False Life OnEndSpellCast"); }
public override void OnAreaOfEffectHit(SpellPacketBody spell) { Logger.Info("Minor Globe of Invulnerability OnAreaOfEffectHit"); }