mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- Fixed addon deeds that retain hue from the craft resources. - You can now, per EA, dye the above mentioned addon deeds with natural dyes and tokuno dyes - Addon Deeds now face opposite direction once re-deed. Any of the above mentioned deeds will not be able to be dyed any longer once re-deeded, per EA - Consolidated Custom Sign Entry gumps to one gump and context menu entry - Fixed sign gump Crash - Added IImbueableEquipment and ICombatEquipment for convenient accessors of certain properties, ie ItemPower, TimesImbued, Etc. - Onslaught no longer uses mana on initial use, and no longer has a cooldown per EA - Regen on items have had their max intensity adjusted to give the proper item weight - Huntsmaster challenge new season will now auto correct the season start and end date - City Loyalty System will not setup in fel for siege shards - Fixed context menu entries from appearing on pre-aos shards *Requires core recompile*
91 lines
2.5 KiB
C#
91 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Server.ContextMenus;
|
|
using Server.Multis;
|
|
using Server.Mobiles;
|
|
using Server.Gumps;
|
|
|
|
namespace Server.Items
|
|
{
|
|
[FlipableAttribute(0x4B20, 0x4B21)]
|
|
public class CustomizableWallSign : Item, ICustomizableMessageItem
|
|
{
|
|
public string[] Lines { get; set; }
|
|
|
|
[Constructable]
|
|
public CustomizableWallSign()
|
|
: base(0x4B20)
|
|
{
|
|
Lines = new string[3];
|
|
LootType = LootType.Blessed;
|
|
}
|
|
|
|
public override void OnDoubleClick(Mobile from)
|
|
{
|
|
if (IsChildOf(from.Backpack))
|
|
{
|
|
if(from is PlayerMobile)
|
|
BaseGump.SendGump(new AddCustomizableMessageGump((PlayerMobile)from, this));
|
|
}
|
|
else
|
|
{
|
|
from.SendLocalizedMessage(1116249); // That must be in your backpack for you to use it.
|
|
}
|
|
}
|
|
|
|
public override void GetProperties(ObjectPropertyList list)
|
|
{
|
|
base.GetProperties(list);
|
|
|
|
if (Lines != null)
|
|
{
|
|
for (int i = 0; i < Lines.Length; i++)
|
|
{
|
|
if (!string.IsNullOrEmpty(Lines[i]))
|
|
{
|
|
list.Add(1150301 + i, Lines[i]); // [ ~1_LINE0~ ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public CustomizableWallSign(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
|
|
{
|
|
base.GetContextMenuEntries(from, list);
|
|
|
|
BaseHouse house = BaseHouse.FindHouseAt(from);
|
|
|
|
if (house != null && house.IsCoOwner(from) && from is PlayerMobile)
|
|
{
|
|
list.Add(new EditSign(this, (PlayerMobile)from));
|
|
}
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
writer.Write((int)0); // version
|
|
|
|
writer.Write((int)Lines.Length);
|
|
|
|
for (int i = 0; i < Lines.Length; i++)
|
|
writer.Write((string)Lines[i]);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
int version = reader.ReadInt();
|
|
|
|
Lines = new string[reader.ReadInt()];
|
|
|
|
for (int i = 0; i < Lines.Length; i++)
|
|
Lines[i] = reader.ReadString();
|
|
}
|
|
}
|
|
}
|