public void OnOptionSelected(Mobile from, int choice) { m_HonestyTileType = (HonestyTileType)choice; if (!Deleted) { base.OnDoubleClick(from); } }
public HonestyVirtueTileAddon(HonestyTileType type) { m_HonestyTileType = type; offset = 0; if (type == HonestyTileType.North) { offset = 4; } AddComponent(new AddonComponent(5279 + offset), 0, 0, 0); AddComponent(new AddonComponent(5280 + offset), 0, 1, 0); AddComponent(new AddonComponent(5281 + offset), 1, 1, 0); AddComponent(new AddonComponent(5282 + offset), 1, 0, 0); }