Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
95
Scripts/Mobiles/NPCs/EvilWanderingHealer.cs
Normal file
95
Scripts/Mobiles/NPCs/EvilWanderingHealer.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class EvilWanderingHealer : BaseHealer
|
||||
{
|
||||
[Constructable]
|
||||
public EvilWanderingHealer()
|
||||
{
|
||||
this.Title = (Core.AOS) ? "the Priest Of Mondain" : "the evil wandering healer";
|
||||
this.Karma = -10000;
|
||||
|
||||
this.AddItem(new GnarledStaff());
|
||||
|
||||
this.SetSkill(SkillName.Camping, 80.0, 100.0);
|
||||
this.SetSkill(SkillName.Forensics, 80.0, 100.0);
|
||||
this.SetSkill(SkillName.SpiritSpeak, 80.0, 100.0);
|
||||
}
|
||||
|
||||
public EvilWanderingHealer(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool CanTeach
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override bool AlwaysMurderer
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override bool ClickTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}// Do not display title in OnSingleClick
|
||||
public override bool CheckTeach(SkillName skill, Mobile from)
|
||||
{
|
||||
if (!base.CheckTeach(skill, from))
|
||||
return false;
|
||||
|
||||
return (skill == SkillName.Anatomy) ||
|
||||
(skill == SkillName.Camping) ||
|
||||
(skill == SkillName.Forensics) ||
|
||||
(skill == SkillName.Healing) ||
|
||||
(skill == SkillName.SpiritSpeak);
|
||||
}
|
||||
|
||||
public override bool CheckResurrect(Mobile m)
|
||||
{
|
||||
if (Core.AOS && m.Criminal)
|
||||
{
|
||||
this.Say(501222); // Thou art a criminal. I shall not resurrect thee.
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
if (Core.ML && Utility.RandomDouble() <= 0.25)
|
||||
c.AddItem(Loot.Construct(typeof(MapFragment)));
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int)1); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if (version < 1 && this.Title == "the wandering healer" && Core.AOS)
|
||||
this.Title = "the priest of Mondain";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user