From 9480c42181d5a954224af81729afbe49d73100f0 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 5 Jan 2025 22:47:55 +0100 Subject: [PATCH] Add player coordinates to spotter --- Modules/Spotter.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/Spotter.lua b/Modules/Spotter.lua index 2c7ec2d..f7aa1a5 100644 --- a/Modules/Spotter.lua +++ b/Modules/Spotter.lua @@ -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 = {