Add player coordinates to spotter

This commit is contained in:
2025-01-05 22:47:55 +01:00
parent 17c163c71c
commit 9480c42181

View File

@@ -82,8 +82,9 @@ function shared.Spotter.Init()
location = string.format("%s (%s)", zone, subzone) location = string.format("%s (%s)", zone, subzone)
end end
local x, y = GetPlayerMapPosition("player")
local stinky = Heimdall_Data.config.stinkies[name] or false local stinky = Heimdall_Data.config.stinkies[name] or false
local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s", local text = string.format("I see (%s) %s/%s %s of race %s (%s) with health %s/%s at %s (%.2f, %.2f)",
hostile and "Hostile" or "Friendly", hostile and "Hostile" or "Friendly",
name, name,
class, class,
@@ -92,7 +93,8 @@ function shared.Spotter.Init()
faction, faction,
FormatHP(hp), FormatHP(hp),
FormatHP(maxHp), FormatHP(maxHp),
location) location,
x, y)
---@type Message ---@type Message
local msg = { local msg = {