Exemple #1
0
        public void ViewMap(Mobile from, TMapBookEntry e, int index)
        {
            if (m_DefaultIndex == index)
            {
                m_DefaultIndex = -1;
            }

            from.CloseGump(typeof(MapDisplayGump));
            from.SendGump(new MapDisplayGump(from, e.Location.X, e.Location.Y));
        }
        public void DropTMap(Mobile from, TMapBookEntry e, int index)
        {
            if (m_DefaultIndex == index)
            {
                m_DefaultIndex = -1;
            }

            m_Entries.RemoveAt(index);

            TreasureMap tmap = new TreasureMap(e.Level, e.Map);

            tmap.Decoder       = e.Decoder;
            tmap.ChestLocation = e.Location;
            tmap.ChestMap      = e.Map;
            tmap.Bounds        = e.Bounds;

            tmap.ClearPins();
            tmap.AddWorldPin(e.Location.X, e.Location.Y);

            from.AddToBackpack(tmap);

            from.SendMessage("You have removed the Treasure Map");
        }
Exemple #3
0
		public void ViewMap(Mobile from, TMapBookEntry e, int index)
		{
			if (m_DefaultIndex == index)
			{
				m_DefaultIndex = -1;
			}

			from.CloseGump(typeof(MapDisplayGump));
			from.SendGump(new MapDisplayGump(from, e.Location.X, e.Location.Y));
		}
Exemple #4
0
		public void DropTMap(Mobile from, TMapBookEntry e, int index)
		{
			if (m_DefaultIndex == index)
			{
				m_DefaultIndex = -1;
			}

			m_Entries.RemoveAt(index);

			var tmap = new TreasureMap(e.Level, e.Map) {
				Decoder = e.Decoder,
				ChestLocation = e.Location,
				ChestMap = e.Map,
				Bounds = e.Bounds
			};

			tmap.ClearPins();
			tmap.AddWorldPin(e.Location.X, e.Location.Y);

			from.AddToBackpack(tmap);

			from.SendMessage("You have removed the Treasure Map");
		}