public override void OnClick() { if (!m_Map.Deleted) { m_Map.DisplayTo(Owner.From); } }
protected override void OnTick() { if (m_TreasureMap.Map != Map.Internal) { double maxSkill = m_MinSkillLevel + 60.0; if (!m_From.CheckSkill(SkillName.Cartography, m_MinSkillLevel, maxSkill)) { m_From.LocalOverheadMessage(MessageType.Regular, 0x3B2, 503018); // You fail to make anything of the map. } else { m_From.LocalOverheadMessage(MessageType.Regular, 0x3B2, 503019); // You successfully decode a treasure map! m_TreasureMap.Decoder = m_From; m_TreasureMap.DisplayTo(m_From); } } else { m_From.SendAsciiMessage("You cannot decode a map while dragging it"); } if (m_From is PlayerMobile) { ((PlayerMobile)m_From).EndPlayerAction(); } }