Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
133
Scripts/Mobiles/Normal/Gregorio.cs
Normal file
133
Scripts/Mobiles/Normal/Gregorio.cs
Normal file
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using Server.Engines.Quests;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Gregorio : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public Gregorio()
|
||||
: base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Race = Race.Human;
|
||||
Name = "Gregorio";
|
||||
Title = "the brigand";
|
||||
|
||||
InitBody();
|
||||
InitOutfit();
|
||||
|
||||
SetStr(86, 100);
|
||||
SetDex(81, 95);
|
||||
SetInt(61, 75);
|
||||
|
||||
SetDamage(15, 27);
|
||||
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance(ResistanceType.Physical, 10, 15);
|
||||
SetResistance(ResistanceType.Fire, 10, 15);
|
||||
SetResistance(ResistanceType.Poison, 10, 15);
|
||||
SetResistance(ResistanceType.Energy, 10, 15);
|
||||
|
||||
SetSkill(SkillName.MagicResist, 25.0, 50.0);
|
||||
SetSkill(SkillName.Tactics, 80.0, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0, 100.0);
|
||||
|
||||
PackGold(50, 150);
|
||||
}
|
||||
|
||||
public Gregorio(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
/*public override bool InitialInnocent
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}*/
|
||||
|
||||
public override bool AlwaysMurderer { get { return true; } }
|
||||
|
||||
public override int Damage(int amount, Mobile from, bool informMount, bool checkDisrupt)
|
||||
{
|
||||
if (from is BaseCreature && ((BaseCreature)from).GetMaster() is PlayerMobile)
|
||||
from = ((BaseCreature)from).GetMaster();
|
||||
|
||||
if (from is PlayerMobile)
|
||||
{
|
||||
var pm = (PlayerMobile)from;
|
||||
|
||||
BaseQuest quest = QuestHelper.GetQuest(pm, typeof(GuiltyQuest));
|
||||
|
||||
if (quest != null && !quest.Completed)
|
||||
{
|
||||
return base.Damage(amount, from, informMount, checkDisrupt);
|
||||
}
|
||||
}
|
||||
|
||||
from.SendLocalizedMessage(1075456); // You are not allowed to damage this NPC unless your on the Guilty Quest
|
||||
return 0;
|
||||
}
|
||||
|
||||
public override bool CanBeHarmedBy(Mobile from, bool message)
|
||||
{
|
||||
if (from is BaseCreature && ((BaseCreature)from).GetMaster() is PlayerMobile)
|
||||
from = ((BaseCreature)from).GetMaster();
|
||||
|
||||
if (from is PlayerMobile)
|
||||
{
|
||||
var pm = (PlayerMobile)from;
|
||||
|
||||
BaseQuest quest = QuestHelper.GetQuest(pm, typeof(GuiltyQuest));
|
||||
|
||||
if (quest != null && !quest.Completed)
|
||||
{
|
||||
return base.CanBeHarmedBy(from, message);
|
||||
}
|
||||
}
|
||||
|
||||
from.SendLocalizedMessage(1075456); // You are not allowed to damage this NPC unless your on the Guilty Quest
|
||||
return false;
|
||||
}
|
||||
|
||||
public void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Hue = 0x8412;
|
||||
Female = false;
|
||||
|
||||
HairItemID = 0x203C;
|
||||
HairHue = 0x47A;
|
||||
FacialHairItemID = 0x204D;
|
||||
FacialHairHue = 0x47A;
|
||||
}
|
||||
|
||||
public void InitOutfit()
|
||||
{
|
||||
AddItem(new Sandals(0x75E));
|
||||
AddItem(new Shirt());
|
||||
AddItem(new ShortPants(0x66C));
|
||||
AddItem(new SkullCap(0x649));
|
||||
AddItem(new Pitchfork());
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write((int)0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user