Implement tomtom waypoint for help
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user