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)
end
local x, y = GetPlayerMapPosition("player")
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",
name,
class,
@@ -92,7 +93,8 @@ function shared.Spotter.Init()
faction,
FormatHP(hp),
FormatHP(maxHp),
location)
location,
x, y)
---@type Message
local msg = {