diff --git a/Modules/MinimapTagger.lua b/Modules/MinimapTagger.lua index e434c52..7467a36 100644 --- a/Modules/MinimapTagger.lua +++ b/Modules/MinimapTagger.lua @@ -427,7 +427,29 @@ function shared.MinimapTagger.Init() print(string.format("[%s] Found help position: %s, %s", ModuleName, tostring(x), tostring(y))) end if x and y then - PlantHelp(tonumber(x), tonumber(y), 2) + x, y = tonumber(x), tonumber(y) + PlantHelp(x, y, 2) + if TomTom then + if Heimdall_Data.config.minimapTagger.debug then + print(string.format("[%s] Adding help waypoint to TomTom", ModuleName)) + end + local areaId = string.match(msg, "%[(%d+)%]") or 0 + if areaId then areaId = tonumber(areaId) end + if Heimdall_Data.config.minimapTagger.debug then + print(string.format("[%s] Area ID: %s", ModuleName, tostring(areaId))) + end + + TomTom:AddMFWaypoint(areaId, nil, x / 100, y / 100, { + title = "Help " .. sender, + world = true, + from = "Heimdall", + crazy = true, + }) + else + if Heimdall_Data.config.minimapTagger.debug then + print(string.format("[%s] No tomtom no waypoint", ModuleName)) + end + end end end --endregion