Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,52 @@
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Spells;
using Server.Targeting;
namespace Server.Spells.Mysticism
{
public class HealingStoneSpell : MysticSpell
{
public override SpellCircle Circle { get { return SpellCircle.First; } }
public override TimeSpan CastDelayBase { get { return TimeSpan.FromSeconds(5); } }
private static SpellInfo m_Info = new SpellInfo(
"Healing Stone", "Kal In Mani",
230,
9022,
Reagent.Bone,
Reagent.Garlic,
Reagent.Ginseng,
Reagent.SpidersSilk
);
public HealingStoneSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if ( Caster.Backpack != null && CheckSequence() )
{
Item[] stones = Caster.Backpack.FindItemsByType( typeof( HealingStone ) );
for ( int i = 0; i < stones.Length; i++ )
stones[i].Delete();
int amount = (int)((Caster.Skills[CastSkill].Value + Caster.Skills[DamageSkill].Value) * 1.5);
int maxHeal = (int)((Caster.Skills[CastSkill].Value + Caster.Skills[DamageSkill].Value) / 5);
Caster.PlaySound( 0x650 );
Caster.FixedParticles(0x3779, 1, 15, 0x251E, 0, 0, EffectLayer.Waist);
Caster.Backpack.DropItem( new HealingStone( Caster, amount, maxHeal ) );
Caster.SendLocalizedMessage( 1080115 ); // A Healing Stone appears in your backpack.
}
FinishSequence();
}
}
}