46 lines
1.2 KiB
Plaintext
Executable File
46 lines
1.2 KiB
Plaintext
Executable File
using System;
|
|
using Server;
|
|
using Server.Mobiles;
|
|
using Server.Gumps;
|
|
|
|
public class InsuranceAgent : BaseCreature
|
|
{
|
|
[Constructable]
|
|
public InsuranceAgent()
|
|
: base(AIType.AI_Vendor, FightMode.None, 0, 0, 0.2, 0.4)
|
|
{
|
|
Name = "an Insurance Agent";
|
|
Body = 0x190; // male human
|
|
Hue = Utility.RandomSkinHue();
|
|
|
|
Blessed = true; // invulnerable
|
|
CantWalk = true; // stationary
|
|
Frozen = true; // cannot be moved
|
|
Warmode = false; // never fights
|
|
}
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
if (from is PlayerMobile pm && pm !=null)
|
|
{
|
|
this.Say("Here are your insurance options.");
|
|
|
|
pm.OpenItemInsuranceMenu(new ItemInsuranceMenuGump(pm, pm.Items, null, 0));
|
|
}
|
|
}
|
|
|
|
public InsuranceAgent(Serial serial) : base(serial) { }
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write(0);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
reader.ReadInt();
|
|
}
|
|
}
|