Piece of shit stupid fucking cunt worthless server

This commit is contained in:
2025-05-15 21:19:05 +02:00
parent 49543bd75a
commit f085b3bd89
3 changed files with 34 additions and 24 deletions

View File

@@ -1,6 +1,13 @@
aura_env.rayActive = false aura_env.rayActive = false
aura_env.debug = false aura_env.debug = true
-- Init values for display -- Init values for display
aura_env.totalHealAbsorb = 0 aura_env.totalHealAbsorb = 0
aura_env.totalDmgAbsorb = 0 aura_env.totalDmgAbsorb = 0
aura_env.spellID = 197268
-- aura_env.spellID = 207472
-- This just simply does not work on russian wow
-- Because it reports SPELL_MISSED instead of SPELL_ABSORBED
-- And SPELL_MISSED does not carry amount data

View File

@@ -14,12 +14,11 @@ function(
dstRaidFlags, dstRaidFlags,
spellID spellID
) )
local rayActive = aura_env.rayActive -- if aura_env.debug then rayActive = false end
if aura_env.debug then rayActive = false end
-- print(string.format("rayActive: %s, eventtype: %s", tostring(rayActive), tostring(eventtype))) -- print(string.format("rayActive: %s, eventtype: %s", tostring(rayActive), tostring(eventtype)))
if not rayActive and eventtype == "SPELL_AURA_APPLIED" then if not aura_env.rayActive and eventtype == "SPELL_AURA_APPLIED" then
if aura_env.debug then spellID = 197268 end -- if aura_env.debug then spellID = 197268 end
if spellID == 197268 and srcGUID == UnitGUID("player") then if spellID == aura_env.spellID and srcGUID == UnitGUID("player") then
if aura_env.debug then print("Ray applied") end if aura_env.debug then print("Ray applied") end
aura_env.rayActive = true aura_env.rayActive = true

View File

@@ -15,9 +15,12 @@ function(
dstRaidFlags, dstRaidFlags,
... ...
) )
local rayActive = aura_env.rayActive aura_env.rayActive = true
if aura_env.debug then rayActive = true end if aura_env.debug and aura_env.rayActive then
if rayActive and (eventtype == "SPELL_ABSORBED" or eventtype == "SPELL_HEAL_ABSORBED") then print(string.format("aura_env.rayActive: %s, eventtype: %s", tostring(aura_env.rayActive), tostring(eventtype)))
end
-- if aura_env.debug then aura_env.rayActive = true end
if aura_env.rayActive and (eventtype == "SPELL_MISSED" or eventtype == "SPELL_HEAL_ABSORBED") then
local spellID, spellName, spellSchool, aSrcGUID, aSrcName, _, _, aSpellID, aSpellName, aSpellSchool, aSpellAmountAbsorbed, somebullshit, horseshit = local spellID, spellName, spellSchool, aSrcGUID, aSrcName, _, _, aSpellID, aSpellName, aSpellSchool, aSpellAmountAbsorbed, somebullshit, horseshit =
... ...
local function debuggerprinter() local function debuggerprinter()
@@ -42,6 +45,7 @@ function(
print(str) print(str)
end end
end end
debuggerprinter()
-- Ray absorbed heal -- Ray absorbed heal
-- srcName = Player -- srcName = Player
-- dstName = RoH Target -- dstName = RoH Target
@@ -50,15 +54,14 @@ function(
-- aSpellID = Absorbed Heal SpellID -- aSpellID = Absorbed Heal SpellID
-- aSpellAmountAbsorbed = duh; -- aSpellAmountAbsorbed = duh;
if eventtype == "SPELL_HEAL_ABSORBED" then if eventtype == "SPELL_HEAL_ABSORBED" then
if aura_env.debug then spellID = 197268 end -- if aura_env.debug then spellID = 197268 end
if srcGUID == UnitGUID("player") and spellID == 197268 then if srcGUID == UnitGUID("player") and spellID == aura_env.spellID then
debuggerprinter()
if aura_env.debug then if aura_env.debug then
local str = string.format( local str = string.format(
"Ray of Hope absorbed %s's heal, %s, for %d.", "Ray of Hope absorbed %s's heal, %s, for %d.",
aSrcName, tostring(aSrcName),
aSpellName, tostring(aSpellName),
aSpellAmountAbsorbed tostring(aSpellAmountAbsorbed)
) )
print(str) print(str)
end end
@@ -76,15 +79,14 @@ function(
-- aSrcName = Player -- aSrcName = Player
-- aSpellID = RoH spellID -- aSpellID = RoH spellID
if eventtype == "SPELL_ABSORBED" then if eventtype == "SPELL_ABSORBED" then
if aura_env.debug then aSpellID = 197268 end -- if aura_env.debug then aSpellID = 197268 end
if aSrcGUID == UnitGUID("player") and aSpellID == 197268 then if aSrcGUID == UnitGUID("player") and aSpellID == aura_env.spellID then
debuggerprinter()
if aura_env.debug then if aura_env.debug then
local str = string.format( local str = string.format(
"Ray of Hope absorbed %s's damage, %s, for %d.", "Ray of Hope absorbed %s's damage, %s, for %d.",
srcName, tostring(srcName),
spellName, tostring(spellName),
aSpellAmountAbsorbed tostring(aSpellAmountAbsorbed)
) )
print(str) print(str)
end end
@@ -98,11 +100,11 @@ function(
-- Ray expire -- Ray expire
if aura_env.rayActive and eventtype == "SPELL_AURA_REMOVED" then if aura_env.rayActive and eventtype == "SPELL_AURA_REMOVED" then
local spellID = ... local spellID = ...
if spellID == 197268 and srcGUID == UnitGUID("player") then if srcGUID == UnitGUID("player") and spellID == aura_env.spellID then
if aura_env.debug then if aura_env.debug then
print("Ray removed.") print("Ray removed.")
print("RoH heals taken: ", aura_env.totalHealAbsorb) print("RoH heals taken: ", tostring(aura_env.totalHealAbsorb))
print("RoH dmg taken: ", aura_env.totalDmgAbsorb) print("RoH dmg taken: ", tostring(aura_env.totalDmgAbsorb))
-- 1.5 represents the 50% modifier to heals into ray -- 1.5 represents the 50% modifier to heals into ray
local net = aura_env.totalHealAbsorb * 1.5 - aura_env.totalDmgAbsorb local net = aura_env.totalHealAbsorb * 1.5 - aura_env.totalDmgAbsorb
@@ -118,5 +120,7 @@ function(
aura_env.rayActive = false aura_env.rayActive = false
end end
-- else
-- print(string.format("Ray not active (%s) or event fucked %s", tostring(aura_env.rayActive), tostring(eventtype)))
end end
end end