Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
105
Scripts/Mobiles/NPCs/GabrielPiete.cs
Normal file
105
Scripts/Mobiles/NPCs/GabrielPiete.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests.Collector
|
||||
{
|
||||
public class GabrielPiete : BaseQuester
|
||||
{
|
||||
[Constructable]
|
||||
public GabrielPiete()
|
||||
: base("the renowned minstrel")
|
||||
{
|
||||
}
|
||||
|
||||
public GabrielPiete(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
this.InitStats(100, 100, 25);
|
||||
|
||||
this.Hue = 0x83EF;
|
||||
|
||||
this.Female = false;
|
||||
this.Body = 0x190;
|
||||
this.Name = "Gabriel Piete";
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
this.AddItem(new FancyShirt());
|
||||
this.AddItem(new LongPants(0x5F7));
|
||||
this.AddItem(new Shoes(0x5F7));
|
||||
|
||||
this.HairItemID = 0x2049; // Pig Tails
|
||||
this.HairHue = 0x460;
|
||||
|
||||
this.FacialHairItemID = 0x2041; // Mustache
|
||||
this.FacialHairHue = 0x460;
|
||||
}
|
||||
|
||||
public override bool CanTalkTo(PlayerMobile to)
|
||||
{
|
||||
QuestSystem qs = to.Quest as CollectorQuest;
|
||||
|
||||
if (qs == null)
|
||||
return false;
|
||||
|
||||
return (qs.IsObjectiveInProgress(typeof(FindGabrielObjective)) ||
|
||||
qs.IsObjectiveInProgress(typeof(FindSheetMusicObjective)) ||
|
||||
qs.IsObjectiveInProgress(typeof(ReturnSheetMusicObjective)) ||
|
||||
qs.IsObjectiveInProgress(typeof(ReturnAutographObjective)));
|
||||
}
|
||||
|
||||
public override void OnTalk(PlayerMobile player, bool contextMenu)
|
||||
{
|
||||
QuestSystem qs = player.Quest;
|
||||
|
||||
if (qs is CollectorQuest)
|
||||
{
|
||||
this.Direction = this.GetDirectionTo(player);
|
||||
|
||||
QuestObjective obj = qs.FindObjective(typeof(FindGabrielObjective));
|
||||
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else if (qs.IsObjectiveInProgress(typeof(FindSheetMusicObjective)))
|
||||
{
|
||||
qs.AddConversation(new GabrielNoSheetMusicConversation());
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = qs.FindObjective(typeof(ReturnSheetMusicObjective));
|
||||
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
obj.Complete();
|
||||
}
|
||||
else if (qs.IsObjectiveInProgress(typeof(ReturnAutographObjective)))
|
||||
{
|
||||
qs.AddConversation(new GabrielIgnoreConversation());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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