MetaMap – Map Additions
If anyone is using Lightheaded and wants the links to work with MetaMap, here’s how. Whenever you click on a coordinate link in Lightheaded, it will create a note in MetaMap, bring up MetaMap, ping the note (or the nearest note if one already existed near the location), and bring up the waypoint popup. Links within comments will add the note to the current zone, so make sure you’re in the proper zone before clicking. Some coords, such as those for NPCs, actually have zone information in them and will automatically put the map into the proper zone before adding the note.
NOTE: The following code unfortunately won’t have any tabs or spaces in front of it, so the formatting will look off.
1. Install MetaMap and Lightheaded (you can find Lightheaded at http://www.wowinterface.com )
2. In the main Lightheaded directory in your AddOns folder, load the “Lightheaded.lua” file into your favorite text editor.
3. Find the function “LightHeaded:OnHyperlinkClick”
4. Within this function, look for the following code:
if TomTom then
TomTom:AddWaypoint(x, y, note)
end
5. Insert the following code AFTER the above code:
— MetaMap support by CaptCrunch
if(MetaMap_SetNewNote) then
local qid,cid,rating,indent,parent,date,poster,comment = self:GetQuestComment(lhframe.title, lhframe.level, lhframe.current_page-1)
local mapName = GetZoneText()
local cx = x/100
local cy = y/100
local name = “Quest: “..lhframe.title
local creator = “LightHeaded”
local inf1 = “Poster: “..poster
local inf2 = “Date: “..date
local noteAdded, noteID = MetaMap_SetNewNote(mapName, cx, cy, name, inf1, inf2, “LightHeaded”, 4, 1, 2, 3, nil)
if(MetaMap_ShowLocation) then
if (not noteAdded and MetaMap_CheckNearNotes) then
— If the note wasn’t added, find a nearby note
noteID = MetaMap_CheckNearNotes(zoneName, cx, cy)
if (not noteID) then noteID = nil end
end
— Opens the map and shows the location. If note was already
— added, noteID will be nil and the routine should search
— for the name of the note
MetaMap_ShowLocation(mapName, name, noteID)
if (noteID and BWP_ShowNoteMenu) then
— Brings up the waypoint popup
BWP_ShowNoteMenu(noteID)
end
end
end
— End MetaMap support
6. Search for the following text, again within the “LightHeaded:OnHyperlinkClick” function:
if TomTom and type(TomTom.AddZWaypoint) == “function” then
TomTom:AddZWaypoint(c, z, x, y, note)
elseif TomTom then
self:Print(“NPC locations are not supported in this version of TomTom.”)
end
7. Insert the following code AFTER the above code:
— MetaMap support by CaptCrunch
if(MetaMap_SetNewNote) then
local zone = select(z, GetMapZones(c))
local mapName = zone
local cx = x/100
local cy = y/100
local name = “NPC: “..note
local creator = “LightHeaded”
local inf1 = “”
local inf2 = “”
local noteAdded, noteID = MetaMap_SetNewNote(mapName, cx, cy, name, inf1, inf2, “LightHeaded”, 2, 1, 2, 3, nil)
if(MetaMap_ShowLocation) then
if (not noteAdded and MetaMap_CheckNearNotes) then
— If the note wasn’t added, find a nearby note
noteID = MetaMap_CheckNearNotes(zoneName, cx, cy)
if (not noteID) then noteID = nil end
end
— Opens the map and shows the location. If note was already
— added, noteID will be nil and the routine should search
— for the name of the note
MetaMap_ShowLocation(mapName, name, noteID)
if (noteID and BWP_ShowNoteMenu) then
— Brings up the waypoint popup
BWP_ShowNoteMenu(noteID)
end
end
end
— End MetaMap support
8. Save the “Lightheaded.lua” file
CC
Similar articles
- World of Warcraft – English (NA) Forums
http://www.wowinterface.com/downloads/info7017-LightHeaded.html Q u o t e: LightHeaded is a very simple addon that displays quest information and comments from http://www.wowhead.com in game, eliminating the need to Alt-Tab when you get stuck on quest. This addon was inspired by qcomments and wowhead_quests, which both serve a similar purpose. Data is only loaded when you first
... - Addon Spotlight: TomTom
Greetings, folks, I have returned from my vacation, and the hiatus that followed. (Vacation to recover from vacation? Madness!) Today, we’re going to take a look at an alternative navigation tool, an addon that provides some of the functionality found in the Cartographer suite. (We’ve talked about Cartographer before.) TomTom is a mod
... - Metamap v20003
Description: MetaMap adds features to the WoW world map, keeping all mapping type features in a single place. Some features are: Adjust the map window size. Move the map anywhere on the screen. Adjust the opacity of the window & maps. Saved sets for toggling between 2 map modes. Allows full player movement,
... - WoW-Pro Addon – Patch 3.2
Hello everyone, I believe I may have a solution to the problem of the addon not showing up on the in-game UI. Here is what I did, step by step: -I installed all the updated addons into both the C drive WOW folder and the Public folder on my computer. -I then located James Alliance
... - Level Fast! 3 Free and Essential Power Leveling Addons For World of Warcraft
Leveling World of Warcraft toons can quickly become tedious after the first 40 or so hours of game play. Though World of Warcraft is a highly addictive game, there are some parts of it that even the most dedicated player would love to skip over. There’s only so many times you can kill 40 mobs
...