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"); }
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"); }