Implement tomtom waypoint for help

This commit is contained in:
2025-01-09 17:08:13 +01:00
parent 6b74e01f0a
commit 7314c67357

View File

@@ -427,7 +427,29 @@ function shared.MinimapTagger.Init()
print(string.format("[%s] Found help position: %s, %s", ModuleName, tostring(x), tostring(y))) print(string.format("[%s] Found help position: %s, %s", ModuleName, tostring(x), tostring(y)))
end end
if x and y then 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
end end
--endregion --endregion