1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Treasure Map Decoder 1

treasure map decoder deed or tool

  1. zerodowned
    Small edit to TreasureMap.cs
    After discovering that XmlAttachments had a AddProperties method, I thought of this script as a way to use it.

    This is a deed or tool to decode treasure maps without requiring skill or chance.

    It checks if the TMap has already been opened by yourself or someone else, as well as if it's completed and of course the usual backpack check.

    What it does
    -Double click the item and target a treasure map
    -If the decode is successful, it will tell you that map and coordinates of the treasure chest.

    Pretty awesome for players that don't like to figure out where that darn pin is pointing.


    The script is drag and drop, except for one minor addition to TreasureMap.cs

    in the GetProperties method add this line at the end of the method

    Code (C#):
    1. public override void GetProperties(ObjectPropertyList list)
    2.         {
    3.             base.GetProperties(list);
    5.             list.Add(m_Map == Map.Felucca ? 1041502 : 1041503); // for somewhere in Felucca : for somewhere in Trammel
    7.             if (m_Completed)
    8.             {
    9.                 list.Add(1041507, m_CompletedBy == null ? "someone" : m_CompletedBy.Name); // completed by ~1_val~
    10.             }
    11.             //Added
    12.             Server.Engines.XmlSpawner2.XmlAttach.AddAttachmentProperties(this, list);
    13.             //Added
    14.         }