#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
79
Scripts/Mobiles/Healers/EvilWanderingHealer.cs
Normal file
79
Scripts/Mobiles/Healers/EvilWanderingHealer.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class EvilWanderingHealer : BaseHealer
|
||||
{
|
||||
public override bool CanTeach{ get{ return true; } }
|
||||
|
||||
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 );
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public EvilWanderingHealer()
|
||||
{
|
||||
Title = ( Core.AOS ) ? "the Priest Of Mondain" : "the evil wandering healer";
|
||||
Karma = -10000;
|
||||
|
||||
AddItem( new GnarledStaff() );
|
||||
|
||||
SetSkill( SkillName.Camping, 80.0, 100.0 );
|
||||
SetSkill( SkillName.Forensics, 80.0, 100.0 );
|
||||
SetSkill( SkillName.SpiritSpeak, 80.0, 100.0 );
|
||||
}
|
||||
|
||||
public override bool AlwaysMurderer{ get{ return true; } }
|
||||
public override bool ClickTitle{ get{ return false; } } // Do not display title in OnSingleClick
|
||||
|
||||
public override bool CheckResurrect( Mobile m )
|
||||
{
|
||||
if ( Core.AOS && m.Criminal )
|
||||
{
|
||||
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 ( Utility.RandomDouble() < 0.5 )
|
||||
c.DropItem( new FragmentOfAMap() );
|
||||
}
|
||||
|
||||
public EvilWanderingHealer( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
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 && Title == "the wandering healer" && Core.AOS )
|
||||
Title = "the priest of Mondain";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue