Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
126
Scripts/Mobiles/NPCs/Gretchen.cs
Normal file
126
Scripts/Mobiles/NPCs/Gretchen.cs
Normal file
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Engines.Quests
|
||||
{
|
||||
public class Curiosities : BaseQuest
|
||||
{
|
||||
/* Curiosities */
|
||||
public override object Title{ get{ return "Curiosities"; } }
|
||||
|
||||
|
||||
public override object Description{ get{ return 1094978; } }
|
||||
public override object Refuse{ get{ return "You are Scared from this Task !! Muahahah"; } }
|
||||
|
||||
public override object Uncomplete{ get{ return "I am sorry that you have not accepted!"; } }
|
||||
|
||||
public override object Complete{ get{ return 1094981; } }
|
||||
|
||||
public Curiosities () : base()
|
||||
{
|
||||
AddObjective( new ObtainObjective( typeof( FertileDirt ), "Fertil Dirt", 3, 0xF81 ) );
|
||||
AddObjective( new ObtainObjective( typeof( Bone ), "Bone", 3, 0xF7e ) );
|
||||
|
||||
AddReward( new BaseReward( typeof( ExplodingTarPotion ),"Exploding Tar Potion") );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
public class Gretchen : MondainQuester
|
||||
{
|
||||
public override Type[] Quests{ get{ return new Type[]
|
||||
{
|
||||
typeof( Curiosities )
|
||||
}; } }
|
||||
|
||||
[Constructable]
|
||||
public Gretchen() : base( "Gretchen", "the Alchemist" )
|
||||
{
|
||||
}
|
||||
|
||||
public Gretchen( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void InitBody()
|
||||
{
|
||||
InitStats(100, 100, 25);
|
||||
|
||||
Female = true;
|
||||
Race = Race.Elf;
|
||||
|
||||
Hue = 33767;
|
||||
HairItemID = 0x2047;
|
||||
HairHue = 0x465;
|
||||
|
||||
CantWalk = true;
|
||||
Direction = Direction.East;
|
||||
}
|
||||
|
||||
public override void InitOutfit()
|
||||
{
|
||||
SetWearable( new Backpack() );
|
||||
SetWearable(new Shoes(1886));
|
||||
SetWearable(new FemaleElvenRobe(443));
|
||||
|
||||
SetWearable(new QuarterStaff());
|
||||
}
|
||||
|
||||
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 == 0)
|
||||
{
|
||||
Female = true;
|
||||
Race = Race.Elf;
|
||||
|
||||
Hue = 33767;
|
||||
HairItemID = 0x2047;
|
||||
HairHue = 0x465;
|
||||
|
||||
CantWalk = true;
|
||||
Direction = Direction.East;
|
||||
|
||||
Item item = FindItemOnLayer(Layer.Cloak);
|
||||
if (item != null)
|
||||
item.Delete();
|
||||
|
||||
item = FindItemOnLayer(Layer.MiddleTorso);
|
||||
if (item != null)
|
||||
item.Delete();
|
||||
|
||||
item = FindItemOnLayer(Layer.MiddleTorso);
|
||||
if (item != null)
|
||||
item.Hue = 1886;
|
||||
|
||||
SetWearable(new FemaleElvenRobe(443));
|
||||
SetWearable(new QuarterStaff());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user