Standardize location reporting across modules

This commit is contained in:
2025-01-09 12:52:47 +01:00
parent 58e071e77b
commit dee5053345
3 changed files with 27 additions and 3 deletions

View File

@@ -67,13 +67,16 @@ function shared.CombatAlerter.Init()
y * 100))
end
SetMapToCurrentZone()
SetMapByID(GetCurrentMapAreaID())
---@type Message
local msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.combatAlerter.masterChannel,
message = string.format("%s is attacking me in %s(%s) at %2.2f,%2.2f ",
message = string.format("I am in combat with %s at %s (%s) at [%s](%2.2f, %2.2f)",
source,
zone, subZone,
tostring(GetCurrentMapAreaID()),
x * 100, y * 100
),
}