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,100 @@
using System;
using Server.Gumps;
namespace Server.Mobiles
{
public class PricedHealer : BaseHealer
{
private int m_Price;
[Constructable]
public PricedHealer()
: this(5000)
{
}
[Constructable]
public PricedHealer(int price)
{
this.m_Price = price;
if (!Core.AOS)
this.NameHue = 0x35;
}
public PricedHealer(Serial serial)
: base(serial)
{
}
[CommandProperty(AccessLevel.GameMaster)]
public int Price
{
get
{
return this.m_Price;
}
set
{
this.m_Price = value;
}
}
public override bool IsInvulnerable
{
get
{
return true;
}
}
public override bool HealsYoungPlayers
{
get
{
return false;
}
}
public override void InitSBInfo()
{
}
public override void OfferResurrection(Mobile m)
{
this.Direction = this.GetDirectionTo(m);
m.PlaySound(0x214);
m.FixedEffect(0x376A, 10, 16);
m.CloseGump(typeof(ResurrectGump));
m.SendGump(new ResurrectGump(m, this, this.m_Price));
}
public override bool CheckResurrect(Mobile m)
{
return true;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.Write((int)this.m_Price);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
this.m_Price = reader.ReadInt();
break;
}
}
}
}
}