public override void OnComponentLoaded(AddonComponent c) { switch (c.ItemID) { case 0x1016: case 0x101A: case 0x101D: case 0x10A5: --c.ItemID; break; } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Addon = reader.ReadItem() as BaseAddonContainer; m_Offset = reader.ReadPoint3D(); if (m_Addon != null) { m_Addon.OnComponentLoaded(this); } AddonComponent.ApplyLightTo(this); }
public override void OnComponentUsed(AddonComponent c, Mobile from) { if (from.InRange(Location, 2)) { BaseHouse house = BaseHouse.FindHouseAt(this); if (house != null && house.IsOwner(from)) { from.CloseGump(typeof(RewardDemolitionGump)); from.SendGump(new RewardDemolitionGump(this, 1049783)); // Do you wish to re-deed this decoration? } else { from.SendLocalizedMessage(1049784); // You can only re-deed this decoration if you are the house owner or originally placed the decoration. } } else { from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that. } }
public AddonContainerComponent(int itemID) : base(itemID) { Movable = false; AddonComponent.ApplyLightTo(this); }