servuo/Scripts/Items/Consumables/SpringDecorToken.cs
TrueUO fb1802305f Bug Fixes
- Removed unneeded usings
- World chat log now has a Config option. Turned off by default now.
- Added two new timer priorities.
- Fixed a crash with box of ropes.
- Consolidation of the Pathing movements and algorithms.
- Correctly makes sure you are inside the house you are trying to place addons in.
2020-09-21 09:53:44 -04:00

52 lines
1.4 KiB
C#

using Server.Gumps;
namespace Server.Items
{
public class SpringDecorToken : Item
{
public override int LabelNumber => 1070997; // a promotional token
[Constructable]
public SpringDecorToken()
: base(0x2AAA)
{
LootType = LootType.Blessed;
Weight = 5.0;
}
public SpringDecorToken(Serial serial)
: base(serial)
{
}
public override void OnDoubleClick(Mobile from)
{
if (IsChildOf(from.Backpack))
{
from.CloseGump(typeof(SpringDecorTokenGump));
from.SendGump(new SpringDecorTokenGump(this, from));
}
else
from.SendLocalizedMessage(1062334); // This item must be in your backpack to be used.
}
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
list.Add(1070998, string.Format("#{0}", 1075553)); // Spring Decor Collection Item
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
reader.ReadInt();
}
}
}