public override void OnSpellStruck(SpellPacketBody spell)
 {
     Logger.Info("Minor Globe of Invulnerability OnSpellStruck");
 }
Exemple #2
0
    // 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");
 }
Exemple #4
0
 public override void OnEndSpellCast(SpellPacketBody spell)
 {
     Logger.Info("Remove Fear OnEndSpellCast");
 }
Exemple #5
0
 public override void OnSpellStruck(SpellPacketBody spell)
 {
     Logger.Info("Web OnSpellStruck");
 }
Exemple #6
0
 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");
 }
Exemple #10
0
 public override void OnEndSpellCast(SpellPacketBody spell)
 {
     Logger.Info("Protection From Elementals OnEndSpellCast");
 }
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Restoration OnBeginRound");
 }
Exemple #12
0
 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");
 }
Exemple #17
0
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Lightning Bolt OnBeginRound");
 }
Exemple #18
0
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Barkskin OnBeginRound");
 }
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Summon Air Elemental OnBeginRound");
 }
Exemple #20
0
 public override void OnEndSpellCast(SpellPacketBody spell)
 {
     Logger.Info("Barkskin OnEndSpellCast");
 }
Exemple #21
0
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Remove Fear OnBeginRound");
 }
Exemple #22
0
    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();
    }
Exemple #23
0
 public override void OnAreaOfEffectHit(SpellPacketBody spell)
 {
     Logger.Info("Web OnAreaOfEffectHit");
 }
 public override void OnBeginRound(SpellPacketBody spell)
 {
     Logger.Info("Desecrate OnBeginRound");
 }
Exemple #25
0
 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");
 }
Exemple #27
0
 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");
 }