Add notifications for essence
This commit is contained in:
@@ -153,6 +153,7 @@ function shared.Spotter.Init()
|
||||
print(string.format("[%s] Player %s coordinates: %.2f, %.2f", ModuleName, name, x * 100, y * 100))
|
||||
end
|
||||
|
||||
local pvpOn = UnitIsPVP(unit)
|
||||
local stinky = shared.IsStinky(name) or false
|
||||
SetMapToCurrentZone()
|
||||
SetMapByID(GetCurrentMapAreaID())
|
||||
@@ -163,6 +164,7 @@ function shared.Spotter.Init()
|
||||
stinky and string.format("(%s)", "!!!!") or "",
|
||||
race,
|
||||
faction,
|
||||
pvpOn and shared.L.en.tidbits.pvpOn or shared.L.en.tidbits.pvpOff,
|
||||
string.gsub(FormatHP(hp), "M", "kk"),
|
||||
string.gsub(FormatHP(maxHp), "M", "kk"),
|
||||
location,
|
||||
@@ -210,11 +212,20 @@ function shared.Spotter.Init()
|
||||
stinky and string.format("(%s)", "!!!!") or "",
|
||||
ruRace or race,
|
||||
ruFaction or faction,
|
||||
FormatHP(hp),
|
||||
FormatHP(maxHp),
|
||||
pvpOn and shared.L.ru.tidbits.pvpOn or shared.L.ru.tidbits.pvpOff,
|
||||
string.gsub(FormatHP(hp), "M", "kk"),
|
||||
string.gsub(FormatHP(maxHp), "M", "kk"),
|
||||
string.format("%s (%s)", ruZone or zone, ruSubzone or subzone),
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100)
|
||||
if Heimdall_Data.config.essencex.spotter and Heimdall_Data.config.essencex.enabled then
|
||||
local msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.essencex.masterChannel,
|
||||
message = text
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
end
|
||||
|
||||
if Heimdall_Data.config.spotter.debug then
|
||||
print(string.format("[%s] Sending notification: %s", ModuleName, text))
|
||||
|
||||
Reference in New Issue
Block a user