85 lines
2.4 KiB
C#
85 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Server.Items;
|
|
using Server.Mobiles;
|
|
using Server.Network;
|
|
|
|
namespace Server.Factions
|
|
{
|
|
public class FactionHorseVendor : BaseFactionVendor
|
|
{
|
|
public FactionHorseVendor(Town town, Faction faction)
|
|
: base(town, faction, "the Horse Breeder")
|
|
{
|
|
this.SetSkill(SkillName.AnimalLore, 64.0, 100.0);
|
|
this.SetSkill(SkillName.AnimalTaming, 90.0, 100.0);
|
|
this.SetSkill(SkillName.Veterinary, 65.0, 88.0);
|
|
}
|
|
|
|
public FactionHorseVendor(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override VendorShoeType ShoeType
|
|
{
|
|
get
|
|
{
|
|
return this.Female ? VendorShoeType.ThighBoots : VendorShoeType.Boots;
|
|
}
|
|
}
|
|
public override void InitSBInfo()
|
|
{
|
|
}
|
|
|
|
public override int GetShoeHue()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
public override void InitOutfit()
|
|
{
|
|
base.InitOutfit();
|
|
|
|
this.AddItem(Utility.RandomBool() ? (Item)new QuarterStaff() : (Item)new ShepherdsCrook());
|
|
}
|
|
|
|
public override void VendorBuy(Mobile from)
|
|
{
|
|
if (this.Faction == null || Faction.Find(from, true) != this.Faction)
|
|
this.PrivateOverheadMessage(MessageType.Regular, 0x3B2, 1042201, from.NetState); // You are not in my faction, I cannot sell you a horse!
|
|
else if (FactionGump.Exists(from))
|
|
from.SendLocalizedMessage(1042160); // You already have a faction menu open.
|
|
else if (from is PlayerMobile)
|
|
from.SendGump(new HorseBreederGump((PlayerMobile)from, this.Faction));
|
|
}
|
|
|
|
public override void VendorSell(Mobile from)
|
|
{
|
|
}
|
|
|
|
public override bool OnBuyItems(Mobile buyer, List<BuyItemResponse> list)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override bool OnSellItems(Mobile seller, List<SellItemResponse> list)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |