This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,26 +1,26 @@
--Display every frame for text
--Every frame
function()
print(aura_env.peopleList[aura_env.currentInterrupt])
if aura_env.peopleList[aura_env.currentInterrupt] == UnitName("player") then
if UnitCastingInfo("Belac") then
local sname = UnitCastingInfo("Belac")
if sname == "Phangs of Guilt" then
return "Interrupt it reeee"
end
end
if UnitDebuff("player", "Belac's Prisoner") or UnitIsDead("player") then --If is in cage
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
if GetTime() < aura_env.interruptTime then --If is on cooldown
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
return "You're next"
end
--Display every frame for text
--Every frame
function()
print(aura_env.peopleList[aura_env.currentInterrupt])
if aura_env.peopleList[aura_env.currentInterrupt] == UnitName("player") then
if UnitCastingInfo("Belac") then
local sname = UnitCastingInfo("Belac")
if sname == "Phangs of Guilt" then
return "Interrupt it reeee"
end
end
if UnitDebuff("player", "Belac's Prisoner") or UnitIsDead("player") then --If is in cage
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
if GetTime() < aura_env.interruptTime then --If is on cooldown
local msg = aura_env.messages["Cannot Interrupt"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
return "You're next"
end
end

View File

@@ -1,40 +1,40 @@
aura_env.interruptTime = 0
aura_env.interruptCD = 24
aura_env.peopleList = {}
aura_env.currentInterrupt = 1
local playerClass = UnitClass("player")
if playerClass == "Hunter" then
aura_env.classInterrupt = "Counter Shot" elseif
playerClass == "Mage" then
aura_env.classInterrupt = "Counterspell" elseif
playerClass == "Warlock" then
aura.classInterrupt = "Spell Lock"
end
aura_env.messages =
{
["Interrupted"] = 9461,
["Cannot Interrupt"] = 9462,
["Initialized"] = 9451,
["Added to interrupt list"], = 9452,
["Cycle Interrupt DEBUG"] = 9551
}
aura_env.encode = function(msg)
local date = date()
local localtime = date:match("%d%d%/%d%d%/%d%d%s(%d%d%p%d%d%p%d%d)") --15:37:43
local hr = localtime:match("(%d%d)")
local min = localtime:match("%d%d%p(%d%d)")
local retmsg = msg - (hr * min)
retmsg = tostring(retmsg)
return retmsg
end
aura_env.decode = function(msg)
local date = date()
local localtime = date:match("%d%d%/%d%d%/%d%d%s(%d%d%p%d%d%p%d%d)") --15:37:43
local hr = localtime:match("(%d%d)")
local min = localtime:match("%d%d%p(%d%d)")
tonumber(msg)
local retint = msg + (hr * min)
return retint
aura_env.interruptTime = 0
aura_env.interruptCD = 24
aura_env.peopleList = {}
aura_env.currentInterrupt = 1
local playerClass = UnitClass("player")
if playerClass == "Hunter" then
aura_env.classInterrupt = "Counter Shot" elseif
playerClass == "Mage" then
aura_env.classInterrupt = "Counterspell" elseif
playerClass == "Warlock" then
aura.classInterrupt = "Spell Lock"
end
aura_env.messages =
{
["Interrupted"] = 9461,
["Cannot Interrupt"] = 9462,
["Initialized"] = 9451,
["Added to interrupt list"], = 9452,
["Cycle Interrupt DEBUG"] = 9551
}
aura_env.encode = function(msg)
local date = date()
local localtime = date:match("%d%d%/%d%d%/%d%d%s(%d%d%p%d%d%p%d%d)") --15:37:43
local hr = localtime:match("(%d%d)")
local min = localtime:match("%d%d%p(%d%d)")
local retmsg = msg - (hr * min)
retmsg = tostring(retmsg)
return retmsg
end
aura_env.decode = function(msg)
local date = date()
local localtime = date:match("%d%d%/%d%d%/%d%d%s(%d%d%p%d%d%p%d%d)") --15:37:43
local hr = localtime:match("(%d%d)")
local min = localtime:match("%d%d%p(%d%d)")
tonumber(msg)
local retint = msg + (hr * min)
return retint
end

View File

@@ -1,28 +1,28 @@
[02:39 PM] [Virags DT]: 14:35:39 UNIT_SPELLCAST_INTERRUPTED - (6) table: 000000004830D3C0 --seems to only work on player
[02:39 PM] [Virags DT]: 1 - UNIT_SPELLCAST_INTERRUPTED
[02:39 PM] [Virags DT]: 2 - player
[02:39 PM] [Virags DT]: 3 - Flash of Light
[02:39 PM] [Virags DT]: 5 - 3-5-1-0-19750-00000056B2
[02:39 PM] [Virags DT]: 6 - 19750
[02:40 PM] [Virags DT]: 14:35:50 COMBAT_LOG_EVENT_UNFILTERED - (18) table: 00000000543D23B0 -- realistically the only important one since the only interrupts are outgoing
[02:40 PM] [Virags DT]: 1 - COMBAT_LOG_EVENT_UNFILTERED
[02:40 PM] [Virags DT]: 2 - 1549632949.728
[02:40 PM] [Virags DT]: 3 - SPELL_INTERRUPT
[02:40 PM] [Virags DT]: 4 - false
[02:40 PM] [Virags DT]: 5 - Player-5-000AD3B6
[02:40 PM] [Virags DT]: 6 - Pinkiepiie
[02:40 PM] [Virags DT]: 7 - 1297
[02:40 PM] [Virags DT]: 8 - 0
[02:40 PM] [Virags DT]: 9 - Player-5-000A70EF
[02:40 PM] [Virags DT]: 10 - Lilithiy
[02:40 PM] [Virags DT]: 11 - 66888
[02:40 PM] [Virags DT]: 12 - 0
[02:40 PM] [Virags DT]: 13 - 96231
[02:40 PM] [Virags DT]: 14 - Rebuke
[02:40 PM] [Virags DT]: 15 - 1
[02:40 PM] [Virags DT]: 16 - 116
[02:40 PM] [Virags DT]: 17 - Frostbolt
[02:39 PM] [Virags DT]: 14:35:39 UNIT_SPELLCAST_INTERRUPTED - (6) table: 000000004830D3C0 --seems to only work on player
[02:39 PM] [Virags DT]: 1 - UNIT_SPELLCAST_INTERRUPTED
[02:39 PM] [Virags DT]: 2 - player
[02:39 PM] [Virags DT]: 3 - Flash of Light
[02:39 PM] [Virags DT]: 5 - 3-5-1-0-19750-00000056B2
[02:39 PM] [Virags DT]: 6 - 19750
[02:40 PM] [Virags DT]: 14:35:50 COMBAT_LOG_EVENT_UNFILTERED - (18) table: 00000000543D23B0 -- realistically the only important one since the only interrupts are outgoing
[02:40 PM] [Virags DT]: 1 - COMBAT_LOG_EVENT_UNFILTERED
[02:40 PM] [Virags DT]: 2 - 1549632949.728
[02:40 PM] [Virags DT]: 3 - SPELL_INTERRUPT
[02:40 PM] [Virags DT]: 4 - false
[02:40 PM] [Virags DT]: 5 - Player-5-000AD3B6
[02:40 PM] [Virags DT]: 6 - Pinkiepiie
[02:40 PM] [Virags DT]: 7 - 1297
[02:40 PM] [Virags DT]: 8 - 0
[02:40 PM] [Virags DT]: 9 - Player-5-000A70EF
[02:40 PM] [Virags DT]: 10 - Lilithiy
[02:40 PM] [Virags DT]: 11 - 66888
[02:40 PM] [Virags DT]: 12 - 0
[02:40 PM] [Virags DT]: 13 - 96231
[02:40 PM] [Virags DT]: 14 - Rebuke
[02:40 PM] [Virags DT]: 15 - 1
[02:40 PM] [Virags DT]: 16 - 116
[02:40 PM] [Virags DT]: 17 - Frostbolt
[02:40 PM] [Virags DT]: 18 - 16

View File

@@ -1,18 +1,18 @@
--The interrupt detection trigger
--COMBAT_LOG_EVENT_UNFILTERED
function(...)
local subevent = select(3, ...)
if subevent == "SPELL_INTERRUPT" then
local playerName = select(6, ...)
local targetName = select(10, ...)
local spellName = select(14, ...)
local interruptedSpellName = select(17, ...)
if playerName == UnitName("player") and targetName == "Belac" and and interruptedSpellName == "Phangs of Guilt" then
local msg = aura_env.messages["Interrupted"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
aura_env.interruptTime = GetTime() + aura_env.interruptCD
end
end
--The interrupt detection trigger
--COMBAT_LOG_EVENT_UNFILTERED
function(...)
local subevent = select(3, ...)
if subevent == "SPELL_INTERRUPT" then
local playerName = select(6, ...)
local targetName = select(10, ...)
local spellName = select(14, ...)
local interruptedSpellName = select(17, ...)
if playerName == UnitName("player") and targetName == "Belac" and and interruptedSpellName == "Phangs of Guilt" then
local msg = aura_env.messages["Interrupted"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
aura_env.interruptTime = GetTime() + aura_env.interruptCD
end
end
end

View File

@@ -1,40 +1,40 @@
--The encoding trigger
--CHAT_MSG_RAID, CHAT_MSG_RAID_LEADER
function(_,msg,sender)
local sender = string.match(sender, "%a+")
local returnMessage = aura_env.decode(msg)
if returnMessage == aura_env.messages["Initialized"] then
local isfound = 0
for k,v in pairs(aura_env.peopleList) do
if v == UnitName("player") then
isfound = 1
break
end
end
if isfound == 0 then
aura_env.peopleList[#aura_env.peopleList + 1] = UnitName("player")
end
local msg = aura_env.messages["Added to interrupt list"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
if returnMessage == aura_env.messages["Added to interrupt list"] then
local isfound = 0
for k,v in pairs(aura_env.peopleList) do
if v == sender then
isfound = 1
break
end
end
if isfound == 0 then
aura_env.peopleList[#aura_env.peopleList + 1] = sender
end
end
if returnMessage == aura_env.messages["Interrupted"] then
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
if returnMessage == aura_env.messages["Cycle Interrupt DEBUG"] then
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
return true
--The encoding trigger
--CHAT_MSG_RAID, CHAT_MSG_RAID_LEADER
function(_,msg,sender)
local sender = string.match(sender, "%a+")
local returnMessage = aura_env.decode(msg)
if returnMessage == aura_env.messages["Initialized"] then
local isfound = 0
for k,v in pairs(aura_env.peopleList) do
if v == UnitName("player") then
isfound = 1
break
end
end
if isfound == 0 then
aura_env.peopleList[#aura_env.peopleList + 1] = UnitName("player")
end
local msg = aura_env.messages["Added to interrupt list"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
if returnMessage == aura_env.messages["Added to interrupt list"] then
local isfound = 0
for k,v in pairs(aura_env.peopleList) do
if v == sender then
isfound = 1
break
end
end
if isfound == 0 then
aura_env.peopleList[#aura_env.peopleList + 1] = sender
end
end
if returnMessage == aura_env.messages["Interrupted"] then
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
if returnMessage == aura_env.messages["Cycle Interrupt DEBUG"] then
aura_env.currentInterrupt = aura_env.currentInterrupt + 1
end
return true
end

View File

@@ -1,15 +1,15 @@
--Trigger for raid wide initialization
--CHAT_MSG_WHISPER
function(_,msg,sender)
local sender = string.match(sender, "%a+")
if sender == "Pinkiepiie" and msg == "init_the_thing_i_guess_101_?" then
local msg = aura_env.messages["Initialized"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
if sender == "Pinkiepiie" and msg == "cycle_interrupt_debug" then
local msg = aura_env.messages["Cycle Interrupt DEBUG"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
--Trigger for raid wide initialization
--CHAT_MSG_WHISPER
function(_,msg,sender)
local sender = string.match(sender, "%a+")
if sender == "Pinkiepiie" and msg == "init_the_thing_i_guess_101_?" then
local msg = aura_env.messages["Initialized"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
if sender == "Pinkiepiie" and msg == "cycle_interrupt_debug" then
local msg = aura_env.messages["Cycle Interrupt DEBUG"]
local msg = aura_env.encode(msg)
SendChatMessage(msg, "RAID")
end
end

View File

@@ -1,40 +1,40 @@
COMBAT_LOG_EVENT_UNFILTERED
function(...)
local subevent = select(3, ...)
local target = select(10, ...)
if subevent == "SWING_DAMAGE" and target == UnitName("player") then
local dmg = select(13, ...)
local block = select(17, ...) or 0
if block > 0 then
aura_env.overallBlock = aura_env.overallBlock + block
end
end
end
DISPLAY
function()
local function shorten(val)
local function round(var, n)
if (n) then
var = math.floor((var * 10^n) + 0.5) / (10^n)
else
var = math.floor(var+0.5)
end
return var
end
local n = 2
if val < 1e3 then
return round(val, n)
elseif val > 1e3 and val < 1e6 then
return round(val / 1e3, n) .. "k"
elseif val > 1e6 and val < 1e9 then
return round(val / 1e6, n) .. "M"
elseif val > 1e9 then
return round(val / 1e9, n) .. "G"
end
end
return shorten(aura_env.overallBlock)
end
INIT
COMBAT_LOG_EVENT_UNFILTERED
function(...)
local subevent = select(3, ...)
local target = select(10, ...)
if subevent == "SWING_DAMAGE" and target == UnitName("player") then
local dmg = select(13, ...)
local block = select(17, ...) or 0
if block > 0 then
aura_env.overallBlock = aura_env.overallBlock + block
end
end
end
DISPLAY
function()
local function shorten(val)
local function round(var, n)
if (n) then
var = math.floor((var * 10^n) + 0.5) / (10^n)
else
var = math.floor(var+0.5)
end
return var
end
local n = 2
if val < 1e3 then
return round(val, n)
elseif val > 1e3 and val < 1e6 then
return round(val / 1e3, n) .. "k"
elseif val > 1e6 and val < 1e9 then
return round(val / 1e6, n) .. "M"
elseif val > 1e9 then
return round(val / 1e9, n) .. "G"
end
end
return shorten(aura_env.overallBlock)
end
INIT
aura_env.overallBlock = 0

View File

@@ -1,13 +1,13 @@
function()
if UnitExists("target") and UnitName("target"):match("Dargul") then
local name,_,_,startTimeMS,endTimeMS,= UnitCastingInfo("target")
if name == "Molten Crash" then
local name,_,_,_,_,expirationTime = UnitBuff("player", "Shield of the Righteous")
expirationTime = expirationTime * 1000
local time = GetTime() * 1000
if endTimeMS > expirationTime then
return true
end
end
end
function()
if UnitExists("target") and UnitName("target"):match("Dargul") then
local name,_,_,startTimeMS,endTimeMS,= UnitCastingInfo("target")
if name == "Molten Crash" then
local name,_,_,_,_,expirationTime = UnitBuff("player", "Shield of the Righteous")
expirationTime = expirationTime * 1000
local time = GetTime() * 1000
if endTimeMS > expirationTime then
return true
end
end
end
end

View File

@@ -1,70 +1,70 @@
--UNIT_AURA
--Event that fires off whenever an aura is applied or removed -- probably overkill for this application but it should work relatively fine
--Can also use combatlog event for cast success of hydra shot but am unsure if that would work
--The basic idea of this setup is to minimize the time it's calculating stuff to make it as efficient, to do that we only enable the aura while hydra shot is active; To find when it is active we get the time when it was cast and add 8 seconds to that (Don't know why 8, previous aura said so)
--We find what auras are applied after the cast has begun and see for each if it's the one we're looking for (hydra shot)
--Theoretically SHOULD PROBABLY *LIKELY* work but practically probably isn't going to
function()
if (aura_env.startCast + 12) < GetTime() then
local spell = GetSpellInfo(230139) --hydra shot 230139
local spell2 = GetSpellInfo(239375) --fish 239375
local spell3 = GetSpellInfo(230214) -- tank debuff
local j = 0
for i = 1, GetNumGroupMembers() do
local name = GetRaidRosterInfo(i)
if not UnitDebuff(name, spell) and not UnitDebuff(name, spell2) and not UnitDebuff(name, spell3) then
if name == UnitName("player") and j < 2 then
aura_env.output = "|cffffd00cStar|r"
return 0
end
if name == UnitName("player") and j >= 2 and j < 5 then
aura_env.output = "cff4baf1cTriangle|r"
return 0
end
if name == UnitName("player") and j >= 5 and j < 8 then
aura_env.output = "cfff6802cCircle|r"
return 0
end
if name == UnitName("player") and j >= 8 and j < 11 then
aura_env.output = "cfff0098cDiamond|r"
return 0
end
j = j + 1
end
end
aura_env.output = "Whatever"
return 0
end
end
--DISPLAY
function() --It's more efficient to only return a value every frame instead of calculating for it as well as returning it
return aura_env.output
end
--EVERY FRAME TRIGGER
--The trigger that will be actually showing the aura
function() --Enables the weakaura for 8 seconds after the cast
if (aura_env.startCast + 12) < GetTime() then --If the time of cast + 8 seconds is < current time the aura will be shown (aka for the next 8 seconds after the cast)
return true
else
return false
end
end
--COMBAT_LOG_EVENT_UNFILTERED
function(...) --Enables the weakaura for 8 seconds after the cast
local subevent = select(3, ...)
if subevent == "SPELL_CAST_START" then --If there was a spell cast (in the combat log)
local caster = select(6, ...) --Found who cast it
local spell = select(14, ...) --And what was cast
if caster:match("Mistress") and spell == "Hydra Shot" then --If the spell is Hydra Shot and Mistress cast it then
aura_env.startCast = GetTime() --Get the time when it was cast
end
end
end
--INIT
--Defines protected variables which are the output and the cast time for the timer
aura_env.startCast = 0
--UNIT_AURA
--Event that fires off whenever an aura is applied or removed -- probably overkill for this application but it should work relatively fine
--Can also use combatlog event for cast success of hydra shot but am unsure if that would work
--The basic idea of this setup is to minimize the time it's calculating stuff to make it as efficient, to do that we only enable the aura while hydra shot is active; To find when it is active we get the time when it was cast and add 8 seconds to that (Don't know why 8, previous aura said so)
--We find what auras are applied after the cast has begun and see for each if it's the one we're looking for (hydra shot)
--Theoretically SHOULD PROBABLY *LIKELY* work but practically probably isn't going to
function()
if (aura_env.startCast + 12) < GetTime() then
local spell = GetSpellInfo(230139) --hydra shot 230139
local spell2 = GetSpellInfo(239375) --fish 239375
local spell3 = GetSpellInfo(230214) -- tank debuff
local j = 0
for i = 1, GetNumGroupMembers() do
local name = GetRaidRosterInfo(i)
if not UnitDebuff(name, spell) and not UnitDebuff(name, spell2) and not UnitDebuff(name, spell3) then
if name == UnitName("player") and j < 2 then
aura_env.output = "|cffffd00cStar|r"
return 0
end
if name == UnitName("player") and j >= 2 and j < 5 then
aura_env.output = "cff4baf1cTriangle|r"
return 0
end
if name == UnitName("player") and j >= 5 and j < 8 then
aura_env.output = "cfff6802cCircle|r"
return 0
end
if name == UnitName("player") and j >= 8 and j < 11 then
aura_env.output = "cfff0098cDiamond|r"
return 0
end
j = j + 1
end
end
aura_env.output = "Whatever"
return 0
end
end
--DISPLAY
function() --It's more efficient to only return a value every frame instead of calculating for it as well as returning it
return aura_env.output
end
--EVERY FRAME TRIGGER
--The trigger that will be actually showing the aura
function() --Enables the weakaura for 8 seconds after the cast
if (aura_env.startCast + 12) < GetTime() then --If the time of cast + 8 seconds is < current time the aura will be shown (aka for the next 8 seconds after the cast)
return true
else
return false
end
end
--COMBAT_LOG_EVENT_UNFILTERED
function(...) --Enables the weakaura for 8 seconds after the cast
local subevent = select(3, ...)
if subevent == "SPELL_CAST_START" then --If there was a spell cast (in the combat log)
local caster = select(6, ...) --Found who cast it
local spell = select(14, ...) --And what was cast
if caster:match("Mistress") and spell == "Hydra Shot" then --If the spell is Hydra Shot and Mistress cast it then
aura_env.startCast = GetTime() --Get the time when it was cast
end
end
end
--INIT
--Defines protected variables which are the output and the cast time for the timer
aura_env.startCast = 0
aura_env.output = ""

View File

@@ -1,50 +1,50 @@
function ()
local spell = GetSpellInfo(230139) --hydra shot 230139
local spell2 = GetSpellInfo(239375) --fish 239375
local spell3 = GetSpellInfo(230214) -- tank debuff
local star = "star" --Don't need this, isn't used anywhere
local triangle = "triangle" --Don't need this, isn't used anywhere
local circle = "circle" --Don't need this, isn't used anywhere
local diamond = "diamond" --Don't need this, isn't used anywhere
local playerName = UnitName("player")
--These empty lines are pissing me off only because I don't do it as such
local total = 0 --Don't need this, isn't used anywhere
local max = 18 --Don't need this, isn't used anywhere
local j = 0
for i=1, GetNumGroupMembers() do
local name = GetRaidRosterInfo(i)
if (not UnitDebuff(name, spell) and not UnitDebuff(name, spell2) and not UnitDebuff(name, spell3)) then
if (name == playerName and j<2) then
return string.format("%s", "|cffffd00cStar") --It is good habbit to close a |c with an |r (basically returns the color to it's default from |c)
end
if (name == playerName and j>=2 and j<5) then
return string.format("%s", "|cff4baf1cTriangle")
end
if (name == playerName and j>=5 and j<8) then
return string.format("%s", "|cfff6802cCircle")
end
if (name == playerName and j>=8 and j<11) then
return string.format("%s", "|cfff0098cDiamond")
end
j = j+1
end
end
return string.format("%s", "Whatever")
end
function ()
local spell = GetSpellInfo(230139) --hydra shot 230139
local spell2 = GetSpellInfo(239375) --fish 239375
local spell3 = GetSpellInfo(230214) -- tank debuff
local star = "star" --Don't need this, isn't used anywhere
local triangle = "triangle" --Don't need this, isn't used anywhere
local circle = "circle" --Don't need this, isn't used anywhere
local diamond = "diamond" --Don't need this, isn't used anywhere
local playerName = UnitName("player")
--These empty lines are pissing me off only because I don't do it as such
local total = 0 --Don't need this, isn't used anywhere
local max = 18 --Don't need this, isn't used anywhere
local j = 0
for i=1, GetNumGroupMembers() do
local name = GetRaidRosterInfo(i)
if (not UnitDebuff(name, spell) and not UnitDebuff(name, spell2) and not UnitDebuff(name, spell3)) then
if (name == playerName and j<2) then
return string.format("%s", "|cffffd00cStar") --It is good habbit to close a |c with an |r (basically returns the color to it's default from |c)
end
if (name == playerName and j>=2 and j<5) then
return string.format("%s", "|cff4baf1cTriangle")
end
if (name == playerName and j>=5 and j<8) then
return string.format("%s", "|cfff6802cCircle")
end
if (name == playerName and j>=8 and j<11) then
return string.format("%s", "|cfff0098cDiamond")
end
j = j+1
end
end
return string.format("%s", "Whatever")
end

View File

@@ -1,5 +1,5 @@
function()
local AP = UnitPower("player")
local maxAP = UnitPowerMax("player")
return maxAP - AP, maxAP, 1
function()
local AP = UnitPower("player")
local maxAP = UnitPowerMax("player")
return maxAP - AP, maxAP, 1
end

View File

@@ -1,27 +1,27 @@
function()
local AP = UnitPower("player") --Get astral power and max power
local maxAP = UnitPowerMax("player")
local APgains = --Define AP gained by spells
{
["New Moon"] = 10,
["Half Moon"] = 20,
["Full Moon"] = 40,
["Lunar Strike"] = 12,
["Solar Wrath"] = 8
}
local buff = UnitBuff("player", "Blessing of Elune") --Find 25% increase if present
local casting = UnitCastingInfo("player") --Get spell currently being cast if any
if casting then --If there's a spell being cast
local plusAP = AP + APgains[casting] --Add AP gained by spell currently cast to current AP to "predict" AP
if buff then
if casting == "Lunar Strike" or casting == "Solar Wrath" then --If either spell affected by buff is being cast add 25% to it's ap gained
local plusAP = AP + APgains[casting]
plusAP = math.floor(plusAP + APgains[casting] * 0.25) --Get the 25% of 8 or 12 and add it to 8 or 12
end
end
return maxAP - plusAP, maxAP, 1
end
if not casting then
return maxAP - AP, maxAP, 1
end
function()
local AP = UnitPower("player") --Get astral power and max power
local maxAP = UnitPowerMax("player")
local APgains = --Define AP gained by spells
{
["New Moon"] = 10,
["Half Moon"] = 20,
["Full Moon"] = 40,
["Lunar Strike"] = 12,
["Solar Wrath"] = 8
}
local buff = UnitBuff("player", "Blessing of Elune") --Find 25% increase if present
local casting = UnitCastingInfo("player") --Get spell currently being cast if any
if casting then --If there's a spell being cast
local plusAP = AP + APgains[casting] --Add AP gained by spell currently cast to current AP to "predict" AP
if buff then
if casting == "Lunar Strike" or casting == "Solar Wrath" then --If either spell affected by buff is being cast add 25% to it's ap gained
local plusAP = AP + APgains[casting]
plusAP = math.floor(plusAP + APgains[casting] * 0.25) --Get the 25% of 8 or 12 and add it to 8 or 12
end
end
return maxAP - plusAP, maxAP, 1
end
if not casting then
return maxAP - AP, maxAP, 1
end
end

View File

@@ -1,5 +1,5 @@
function()
local AP = UnitPower("player") --Get astral power and max power
local maxAP = UnitPowerMax("player")
return maxAP - AP, maxAP, 1
function()
local AP = UnitPower("player") --Get astral power and max power
local maxAP = UnitPowerMax("player")
return maxAP - AP, maxAP, 1
end

View File

@@ -1,30 +1,30 @@
COMBAT_LOG_EVENT_UNFILTERED
function(...)
DavesFuckerySpellsCast = {}
local subevent = select(3, ...)
local caster = --GET CASTER FROM INGAME EVENT
local function addSpell(spellname)
if #DavesFuckerySpellsCast == aura_env.maxspells then
table.remove(DavesFuckerySpellsCast, 1)
table.insert(DavesFuckerySpellsCast, spellname)
else
table.insert(DavesFuckerySpellsCast,spellname)
end
end
if aura_env.casterName ~= "" then
if subevent == "SPELL_CAST_SUCCESS" and caster == aura_env.casterName then
local spellname = --GET SPELL NAME FROM INGAME EVENT
addSpell(spellname)
end
else
if subevent == "SPELL_CAST_SUCCESS" and caster == UnitName(aura_env.casterID) then
local spellname = --GET SPELL NAME FROM INGAME EVENT
addSpell(spellname)
end
end
end
INIT
aura_env.maxspells = 5
aura_env.casterID = "player"
COMBAT_LOG_EVENT_UNFILTERED
function(...)
DavesFuckerySpellsCast = {}
local subevent = select(3, ...)
local caster = --GET CASTER FROM INGAME EVENT
local function addSpell(spellname)
if #DavesFuckerySpellsCast == aura_env.maxspells then
table.remove(DavesFuckerySpellsCast, 1)
table.insert(DavesFuckerySpellsCast, spellname)
else
table.insert(DavesFuckerySpellsCast,spellname)
end
end
if aura_env.casterName ~= "" then
if subevent == "SPELL_CAST_SUCCESS" and caster == aura_env.casterName then
local spellname = --GET SPELL NAME FROM INGAME EVENT
addSpell(spellname)
end
else
if subevent == "SPELL_CAST_SUCCESS" and caster == UnitName(aura_env.casterID) then
local spellname = --GET SPELL NAME FROM INGAME EVENT
addSpell(spellname)
end
end
end
INIT
aura_env.maxspells = 5
aura_env.casterID = "player"
aura_env.casterName = ""

View File

@@ -1,44 +1,44 @@
--Nameplate HP order
function()
local enemies = {}
local output = ""
for i = 1, 40 do
if UnitIsEnemy("nameplate" .. i, "player") and UnitAffectingCombat("nameplate" .. i) then
--print(UnitGUID("nameplate" .. i), UnitHealth("nameplate" .. i), UnitHealthMax("nameplate" .. i), (UnitHealth("nameplate" .. i) / UnitHealthMax("nameplate" .. i)) * 100)
--local ID = UnitGUID("nameplate" .. i):match("%a+%-%d+%-%d+%-%d+%-%d+%-%d+%-(.+)")
--ID = ID:gsub(0, "")
--print(ID)
enemies[UnitGUID("nameplate" .. i)] = (UnitHealth("nameplate" .. i) / UnitHealthMax("nameplate" .. i)) * 100
end
end
for k,v in pairs(enemies) do
--local ID = UnitGUID("target"):match("%a+%-%d+%-%d+%-%d+%-%d+%-%d+%-(.+)")
--ID = ID:gsub(0, "")
print("Target " .. UnitGUID("target") .. " key " .. k)
if k == UnitGUID("target") then
print("GREEN")
output = "|cFF00FF00" .. output .. k .. " " .. v .. "|r\n"
else
print("WHITE")
output = "|cFFFFFFFF" .. output .. k .. " " .. v .. "|r\n"
end
end
return output
end
local enemies =
{
["Creature-0-5-1220-0-109349-0000002871"] = 17,
["Creature-0-5-1220-0-109349-0000002870"] = 13
}
local target = "Creature-0-5-1220-0-109349-0000002871"
local output = ""
for k,v in pairs(enemies) do
if target == k then
output = output .. k .. " " .. v .. " GREEN\n"
else
output = output .. k .. " " .. v .. "\n"
end
end
--Nameplate HP order
function()
local enemies = {}
local output = ""
for i = 1, 40 do
if UnitIsEnemy("nameplate" .. i, "player") and UnitAffectingCombat("nameplate" .. i) then
--print(UnitGUID("nameplate" .. i), UnitHealth("nameplate" .. i), UnitHealthMax("nameplate" .. i), (UnitHealth("nameplate" .. i) / UnitHealthMax("nameplate" .. i)) * 100)
--local ID = UnitGUID("nameplate" .. i):match("%a+%-%d+%-%d+%-%d+%-%d+%-%d+%-(.+)")
--ID = ID:gsub(0, "")
--print(ID)
enemies[UnitGUID("nameplate" .. i)] = (UnitHealth("nameplate" .. i) / UnitHealthMax("nameplate" .. i)) * 100
end
end
for k,v in pairs(enemies) do
--local ID = UnitGUID("target"):match("%a+%-%d+%-%d+%-%d+%-%d+%-%d+%-(.+)")
--ID = ID:gsub(0, "")
print("Target " .. UnitGUID("target") .. " key " .. k)
if k == UnitGUID("target") then
print("GREEN")
output = "|cFF00FF00" .. output .. k .. " " .. v .. "|r\n"
else
print("WHITE")
output = "|cFFFFFFFF" .. output .. k .. " " .. v .. "|r\n"
end
end
return output
end
local enemies =
{
["Creature-0-5-1220-0-109349-0000002871"] = 17,
["Creature-0-5-1220-0-109349-0000002870"] = 13
}
local target = "Creature-0-5-1220-0-109349-0000002871"
local output = ""
for k,v in pairs(enemies) do
if target == k then
output = output .. k .. " " .. v .. " GREEN\n"
else
output = output .. k .. " " .. v .. "\n"
end
end
print(output)

View File

@@ -1,16 +1,16 @@
function()
C_LFGList.Search(2, "")
numResults, resultIDTable = C_LFGList.GetSearchResults();
print(numResults, resultIDTable)
for k,v in pairs(resultIDTable) do
--local _,_,name,comment,_,iLvl,_,_,_,_,_,leaderName,numMembers = C_LFGList.GetSearchResultInfo(v);
for i = 1, 40 do
local tempvar = ""
tempvar = select(i, C_LFGList.GetSearchResultInfo(v))
if tempvar ~= nil then
print(tempvar, i)
end
end
print("")
end
function()
C_LFGList.Search(2, "")
numResults, resultIDTable = C_LFGList.GetSearchResults();
print(numResults, resultIDTable)
for k,v in pairs(resultIDTable) do
--local _,_,name,comment,_,iLvl,_,_,_,_,_,leaderName,numMembers = C_LFGList.GetSearchResultInfo(v);
for i = 1, 40 do
local tempvar = ""
tempvar = select(i, C_LFGList.GetSearchResultInfo(v))
if tempvar ~= nil then
print(tempvar, i)
end
end
print("")
end
end

View File

@@ -1,14 +1,14 @@
CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER
function(_,msg,source)
local responses =
{
""
}
if source ~= UnitName("player") then
msg:lower()
if msg:match("move") then
local id = math.random(1, #responses)
SendChatMessage(responses[id], "PARTY")
end
end
CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER
function(_,msg,source)
local responses =
{
""
}
if source ~= UnitName("player") then
msg:lower()
if msg:match("move") then
local id = math.random(1, #responses)
SendChatMessage(responses[id], "PARTY")
end
end
end

File diff suppressed because it is too large Load Diff

View File

@@ -1,60 +1,60 @@
/run if not IsQuestFlaggedCompleted(39399) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Akrrilo"); end
/run if not IsQuestFlaggedCompleted(38430) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.0 40.6 Argosh the Destroyer"); end
/run if not IsQuestFlaggedCompleted(38609) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.9 47.1 Belgork"); end
/run if not IsQuestFlaggedCompleted(38262) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 23.8 51.9 Bilkor the Thrower"); end
/run if not IsQuestFlaggedCompleted(38696) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 50.0 74.0 Bleeding Hollow Horror"); end
/run if not IsQuestFlaggedCompleted(38266) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 21.2 42.2 Bloodhunter Zulk"); end
/run if not IsQuestFlaggedCompleted(38209) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 40.7 69.8 Bramblefell"); end
/run if not IsQuestFlaggedCompleted(38589) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 57.4 67.9 Broodlord Ixkor"); end
/run if not IsQuestFlaggedCompleted(38820) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.0 57.2 Captain Grok'mar"); end
/run if not IsQuestFlaggedCompleted(38756) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 35.6 79.9 Captain Ironbeard"); end
/run if not IsQuestFlaggedCompleted(38031) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 30.9 68.3 Ceraxas"); end
/run if not IsQuestFlaggedCompleted(37990) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 44.4 37.3 Cindral the Wildfire"); end
/run if not IsQuestFlaggedCompleted(38746) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 15.2 54.5 Commander Krag'goth"); end
/run if not IsQuestFlaggedCompleted(38749) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 51.0 46.0 Commander Org'mok"); end
/run if not IsQuestFlaggedCompleted(38265) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 23.5 46.8 Dorg the Bloody"); end
/run if not IsQuestFlaggedCompleted(38736) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 19.8 53.6 Driss Vile"); end
/run if not IsQuestFlaggedCompleted(38264) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 25.1 46.6 Drivnul"); end
/run if not IsQuestFlaggedCompleted(38411) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 49.5 36.5 Executor Riloth"); end
/run if not IsQuestFlaggedCompleted(39379) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Eyepiercer"); end
/run if not IsQuestFlaggedCompleted(38775) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 28.7 51.0 Felbore"); end
/run if not IsQuestFlaggedCompleted(38634) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 45.8 47.0 Felsmith Damorka"); end
/run if not IsQuestFlaggedCompleted(38211) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.0 26.4 Felspark"); end
/run if not IsQuestFlaggedCompleted(38604) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 63.2 80.0 Gloomtalon"); end
/run if not IsQuestFlaggedCompleted(38764) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.5 78.3 Glub'glok"); end
/run if not IsQuestFlaggedCompleted(38709) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 33.3 35.8 Gorabosh"); end
/run if not IsQuestFlaggedCompleted(38400) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 47.5 42.3 Grand Warlock Nethekurse"); end
/run if not IsQuestFlaggedCompleted(38750) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 15.9 59.7 Grannok"); end
/run if not IsQuestFlaggedCompleted(39046) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 39.6 32.6 Harbormaster Korak"); end
/run if not IsQuestFlaggedCompleted(38026) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 31.5 73.5 Imp-Master Valessa"); end
/run if not IsQuestFlaggedCompleted(38030) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 26 8 76.1 Jax'zor"); end
/run if not IsQuestFlaggedCompleted(38605) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.0 83.8 Krell the Serene"); end
/run if not IsQuestFlaggedCompleted(38825) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 39.6 68.4 Kris'kar the Unredeemed"); end
/run if not IsQuestFlaggedCompleted(38029) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 32.5 74.0 Lady Oran"); end
/run if not IsQuestFlaggedCompleted(38726) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.4 62.5 Magwia"); end
/run if not IsQuestFlaggedCompleted(38032) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 25.5 79.2 Mistress Thavra"); end
/run if not IsQuestFlaggedCompleted(38580) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.0 20.0 Overlord Ma'gruth"); end
/run if not IsQuestFlaggedCompleted(38557) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.6 21.6 Painmistress Selora"); end
/run if not IsQuestFlaggedCompleted(38282) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.8 48.8 Podlord Wakkawam"); end
/run if not IsQuestFlaggedCompleted(38457) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 56.7 24.7 Putre'thar"); end
/run if not IsQuestFlaggedCompleted(38034) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.8 44.7 Rasthe"); end
/run if not IsQuestFlaggedCompleted(38496) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 26.3 54.9 Relgor"); end
/run if not IsQuestFlaggedCompleted(39400) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Rendarr"); end
/run if not IsQuestFlaggedCompleted(38631) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 43.0 73.9 Rendrak"); end
/run if not IsQuestFlaggedCompleted(38263) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 20.5 49.8 Rogond the Tracker"); end
/run if not IsQuestFlaggedCompleted(37953) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 43.0 36.9 Sergeant Mor'grak"); end
/run if not IsQuestFlaggedCompleted(38812) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 49.7 61.2 Shadowthrash"); end
/run if not IsQuestFlaggedCompleted(38600) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 62.2 73.0 Soulslicer"); end
/run if not IsQuestFlaggedCompleted(38700) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 65.2 37.0 Steelsnout"); end
/run if not IsQuestFlaggedCompleted(38628) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 40.5 79.2 Sylissa"); end
/run if not IsQuestFlaggedCompleted(38752) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.1 57.4 Szirek the Twisted"); end
/run if not IsQuestFlaggedCompleted(38597) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.9 73.5 The Blackfang"); end
/run if not IsQuestFlaggedCompleted(38654) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.9 72.5 The Goreclaw"); end
/run if not IsQuestFlaggedCompleted(38751) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 13.0 57.0 The Iron Houndmaster"); end
/run if not IsQuestFlaggedCompleted(38632) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 37.0 72.0 The Night Haunter"); end
/run if not IsQuestFlaggedCompleted(38747) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 13.4 58.6 Tho'gar Gorefist"); end
/run if not IsQuestFlaggedCompleted(38620) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.1 44 3 Thromma the Gutslicer"); end
/run if not IsQuestFlaggedCompleted(37937) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 27.6 32.8 Varyx the Damned"); end
/run if not IsQuestFlaggedCompleted(38579) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 60.0 21.2 Xanzith the Everlasting"); end
/run if not IsQuestFlaggedCompleted(38207) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.4 28.6 Zeter'el"); end
/run if not IsQuestFlaggedCompleted(39399) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Akrrilo"); end
/run if not IsQuestFlaggedCompleted(38430) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.0 40.6 Argosh the Destroyer"); end
/run if not IsQuestFlaggedCompleted(38609) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.9 47.1 Belgork"); end
/run if not IsQuestFlaggedCompleted(38262) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 23.8 51.9 Bilkor the Thrower"); end
/run if not IsQuestFlaggedCompleted(38696) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 50.0 74.0 Bleeding Hollow Horror"); end
/run if not IsQuestFlaggedCompleted(38266) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 21.2 42.2 Bloodhunter Zulk"); end
/run if not IsQuestFlaggedCompleted(38209) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 40.7 69.8 Bramblefell"); end
/run if not IsQuestFlaggedCompleted(38589) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 57.4 67.9 Broodlord Ixkor"); end
/run if not IsQuestFlaggedCompleted(38820) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.0 57.2 Captain Grok'mar"); end
/run if not IsQuestFlaggedCompleted(38756) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 35.6 79.9 Captain Ironbeard"); end
/run if not IsQuestFlaggedCompleted(38031) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 30.9 68.3 Ceraxas"); end
/run if not IsQuestFlaggedCompleted(37990) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 44.4 37.3 Cindral the Wildfire"); end
/run if not IsQuestFlaggedCompleted(38746) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 15.2 54.5 Commander Krag'goth"); end
/run if not IsQuestFlaggedCompleted(38749) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 51.0 46.0 Commander Org'mok"); end
/run if not IsQuestFlaggedCompleted(38265) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 23.5 46.8 Dorg the Bloody"); end
/run if not IsQuestFlaggedCompleted(38736) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 19.8 53.6 Driss Vile"); end
/run if not IsQuestFlaggedCompleted(38264) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 25.1 46.6 Drivnul"); end
/run if not IsQuestFlaggedCompleted(38411) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 49.5 36.5 Executor Riloth"); end
/run if not IsQuestFlaggedCompleted(39379) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Eyepiercer"); end
/run if not IsQuestFlaggedCompleted(38775) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 28.7 51.0 Felbore"); end
/run if not IsQuestFlaggedCompleted(38634) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 45.8 47.0 Felsmith Damorka"); end
/run if not IsQuestFlaggedCompleted(38211) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.0 26.4 Felspark"); end
/run if not IsQuestFlaggedCompleted(38604) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 63.2 80.0 Gloomtalon"); end
/run if not IsQuestFlaggedCompleted(38764) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.5 78.3 Glub'glok"); end
/run if not IsQuestFlaggedCompleted(38709) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 33.3 35.8 Gorabosh"); end
/run if not IsQuestFlaggedCompleted(38400) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 47.5 42.3 Grand Warlock Nethekurse"); end
/run if not IsQuestFlaggedCompleted(38750) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 15.9 59.7 Grannok"); end
/run if not IsQuestFlaggedCompleted(39046) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 39.6 32.6 Harbormaster Korak"); end
/run if not IsQuestFlaggedCompleted(38026) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 31.5 73.5 Imp-Master Valessa"); end
/run if not IsQuestFlaggedCompleted(38030) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 26 8 76.1 Jax'zor"); end
/run if not IsQuestFlaggedCompleted(38605) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.0 83.8 Krell the Serene"); end
/run if not IsQuestFlaggedCompleted(38825) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 39.6 68.4 Kris'kar the Unredeemed"); end
/run if not IsQuestFlaggedCompleted(38029) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 32.5 74.0 Lady Oran"); end
/run if not IsQuestFlaggedCompleted(38726) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 52.4 62.5 Magwia"); end
/run if not IsQuestFlaggedCompleted(38032) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 25.5 79.2 Mistress Thavra"); end
/run if not IsQuestFlaggedCompleted(38580) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.0 20.0 Overlord Ma'gruth"); end
/run if not IsQuestFlaggedCompleted(38557) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 53.6 21.6 Painmistress Selora"); end
/run if not IsQuestFlaggedCompleted(38282) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.8 48.8 Podlord Wakkawam"); end
/run if not IsQuestFlaggedCompleted(38457) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 56.7 24.7 Putre'thar"); end
/run if not IsQuestFlaggedCompleted(38034) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.8 44.7 Rasthe"); end
/run if not IsQuestFlaggedCompleted(38496) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 26.3 54.9 Relgor"); end
/run if not IsQuestFlaggedCompleted(39400) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 54.3 81.0 Rendarr"); end
/run if not IsQuestFlaggedCompleted(38631) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 43.0 73.9 Rendrak"); end
/run if not IsQuestFlaggedCompleted(38263) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 20.5 49.8 Rogond the Tracker"); end
/run if not IsQuestFlaggedCompleted(37953) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 43.0 36.9 Sergeant Mor'grak"); end
/run if not IsQuestFlaggedCompleted(38812) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 49.7 61.2 Shadowthrash"); end
/run if not IsQuestFlaggedCompleted(38600) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 62.2 73.0 Soulslicer"); end
/run if not IsQuestFlaggedCompleted(38700) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 65.2 37.0 Steelsnout"); end
/run if not IsQuestFlaggedCompleted(38628) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 40.5 79.2 Sylissa"); end
/run if not IsQuestFlaggedCompleted(38752) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 16.1 57.4 Szirek the Twisted"); end
/run if not IsQuestFlaggedCompleted(38597) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.9 73.5 The Blackfang"); end
/run if not IsQuestFlaggedCompleted(38654) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.9 72.5 The Goreclaw"); end
/run if not IsQuestFlaggedCompleted(38751) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 13.0 57.0 The Iron Houndmaster"); end
/run if not IsQuestFlaggedCompleted(38632) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 37.0 72.0 The Night Haunter"); end
/run if not IsQuestFlaggedCompleted(38747) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 13.4 58.6 Tho'gar Gorefist"); end
/run if not IsQuestFlaggedCompleted(38620) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 34.1 44 3 Thromma the Gutslicer"); end
/run if not IsQuestFlaggedCompleted(37937) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 27.6 32.8 Varyx the Damned"); end
/run if not IsQuestFlaggedCompleted(38579) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 60.0 21.2 Xanzith the Everlasting"); end
/run if not IsQuestFlaggedCompleted(38207) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 48.4 28.6 Zeter'el"); end
/run if not IsQuestFlaggedCompleted(39045) then SlashCmdList.TOMTOM_WAY("Tanaan Jungle 37.0 32.8 Zoug the Heavy"); end

View File

@@ -1,30 +1,30 @@
COMBAT_LOG_EVENT_UNFILTERED
function(...)
local event = select(3, ...)
aura_env.spell = select(14, ...)
aura_env.target = select(10, ...)
if aura_env.target == UnitName("player") and aura_env.spell == "Swelter" and event == "SPELL_AURA_APPLIED" then
aura_env.startTime = GetTime()
end
end
DURATION
function()
print(GetTime() - aura_env.startTime)
if UnitBuff("player", "Swelter") then
print("STEP TWO")
return GetTime() - aura_env.startTime, 3, 1
elseif
GetTime() - aura_env.startTime <= 10 then
print("STEP THREE")
return GetTime() - aura_env.startTime, 10, 1
end
if GetTime() - aura_env.startTime > 10 then
print("STEP FOUR")
return 1, 1, 1
end
end
aura_env.spell = ""
aura_env.target = ""
COMBAT_LOG_EVENT_UNFILTERED
function(...)
local event = select(3, ...)
aura_env.spell = select(14, ...)
aura_env.target = select(10, ...)
if aura_env.target == UnitName("player") and aura_env.spell == "Swelter" and event == "SPELL_AURA_APPLIED" then
aura_env.startTime = GetTime()
end
end
DURATION
function()
print(GetTime() - aura_env.startTime)
if UnitBuff("player", "Swelter") then
print("STEP TWO")
return GetTime() - aura_env.startTime, 3, 1
elseif
GetTime() - aura_env.startTime <= 10 then
print("STEP THREE")
return GetTime() - aura_env.startTime, 10, 1
end
if GetTime() - aura_env.startTime > 10 then
print("STEP FOUR")
return 1, 1, 1
end
end
aura_env.spell = ""
aura_env.target = ""
aura_env.startTime = 0

View File

@@ -1,34 +1,34 @@
"TODO"
make raid loot work somehow; filo register with table.insert remove
string.byte() *H M M M M M M*
TSU for rep bars
"More difficult than expected"
sang for hp<2% or smth OR sort by HP %
"Done maybe?"
tank alerts like in 7.1.5 but without focus using GroupRoleAssigned with neat list for debuffs :> --Done maybe
dargul timer for shield
"Done"
judmgnet of light on focus
macro for cast and focus if no focus
aura for judgment code
use ilterendi
average melee hit during combat
last n melee color by average -- using tohex maybe and maybe color function
Arcway trinket auras for stacks and shield by using aura triggers for spell ids and 2 auras
prydaz for time and absorb (with absorb % and abs)
SPAWN TIMERS for herberino by using timer for herbs on cooldown (in seperate array) then insert into waypoint array
rework last n melee hits with proper filo register
"TODO"
make raid loot work somehow; filo register with table.insert remove
string.byte() *H M M M M M M*
TSU for rep bars
"More difficult than expected"
sang for hp<2% or smth OR sort by HP %
"Done maybe?"
tank alerts like in 7.1.5 but without focus using GroupRoleAssigned with neat list for debuffs :> --Done maybe
dargul timer for shield
"Done"
judmgnet of light on focus
macro for cast and focus if no focus
aura for judgment code
use ilterendi
average melee hit during combat
last n melee color by average -- using tohex maybe and maybe color function
Arcway trinket auras for stacks and shield by using aura triggers for spell ids and 2 auras
prydaz for time and absorb (with absorb % and abs)
SPAWN TIMERS for herberino by using timer for herbs on cooldown (in seperate array) then insert into waypoint array
rework last n melee hits with proper filo register
make a proper judgment/hotp bar thing with code

View File

@@ -1,76 +1,76 @@
--DISPLAY
function()
return aura_env.stacks
end
--EVERY FRAME TRIGGER
function()
if aura_env.tank ~= "" then
for k,v in pairs(aura_env.spells) do
if UnitDebuff("target", k) ~= nil then
local _,_,_,stacks,_,dur,exptime = UnitDebuff("target", k)
if v > 1 and stacks > v then
aura_env.stacks = stacks
aura_env.exptime = exptime
aura_env.dur = dur
return true
end
if v == 1 then
aura_env.exptime = exptime
aura_env.dur = dur
return true
end
if v == 0 then
local _,_,starttime,exptime = UnitCastingInfo("boss1")
aura_env.exptime = exptime
aura_env.dur = exptime - starttime
return true
end
end
end
end
end
--GROUP_ROSTER_UPDATE
function()
aura_env.tank = ""
for i = 1, GetNumGroupMembers() do --Find other tank
if UnitGroupRolesAssigned("raid" .. i) == "TANK" and UnitName("raid" .. i) ~= UnitName("player") then
aura_env.tank = UnitName("raid" .. i)
print(aura_env.tank, i)
end
end
end
--DURATION TRIGGER
function()
print(aura_env.dur, aura_env.exptime)
return aura_env.dur, aura_env.exptime, 1
end
--INIT
aura_env.tank = ""
aura_env.stacks = 0
aura_env.exptime = 0
aura_env.spells =
{
--NH
["Arcane Slash"] = 2,
["Annihilate"] = 2,
["Feast of Blood"] = 1,
["Recursive Strikes"] = 7,
["Gravitational Pull"] = 1,
["Ablating Explosion"] = 1,
["Bonds of Fel"] = 0,
["Empowered Bonds of Fel"] = 0,
--ToS
["Burning Armor"] = 1,
["Jagged Abrasion"] = 5,
["Judgment of Light"] = 1,
}
for i = 1, GetNumGroupMembers() do --Find other tank
if UnitGroupRolesAssigned("raid" .. i) == "TANK" and UnitName("raid" .. i) ~= UnitName("player") then
aura_env.tank = UnitName("raid" .. i)
print(aura_env.tank, i)
end
--DISPLAY
function()
return aura_env.stacks
end
--EVERY FRAME TRIGGER
function()
if aura_env.tank ~= "" then
for k,v in pairs(aura_env.spells) do
if UnitDebuff("target", k) ~= nil then
local _,_,_,stacks,_,dur,exptime = UnitDebuff("target", k)
if v > 1 and stacks > v then
aura_env.stacks = stacks
aura_env.exptime = exptime
aura_env.dur = dur
return true
end
if v == 1 then
aura_env.exptime = exptime
aura_env.dur = dur
return true
end
if v == 0 then
local _,_,starttime,exptime = UnitCastingInfo("boss1")
aura_env.exptime = exptime
aura_env.dur = exptime - starttime
return true
end
end
end
end
end
--GROUP_ROSTER_UPDATE
function()
aura_env.tank = ""
for i = 1, GetNumGroupMembers() do --Find other tank
if UnitGroupRolesAssigned("raid" .. i) == "TANK" and UnitName("raid" .. i) ~= UnitName("player") then
aura_env.tank = UnitName("raid" .. i)
print(aura_env.tank, i)
end
end
end
--DURATION TRIGGER
function()
print(aura_env.dur, aura_env.exptime)
return aura_env.dur, aura_env.exptime, 1
end
--INIT
aura_env.tank = ""
aura_env.stacks = 0
aura_env.exptime = 0
aura_env.spells =
{
--NH
["Arcane Slash"] = 2,
["Annihilate"] = 2,
["Feast of Blood"] = 1,
["Recursive Strikes"] = 7,
["Gravitational Pull"] = 1,
["Ablating Explosion"] = 1,
["Bonds of Fel"] = 0,
["Empowered Bonds of Fel"] = 0,
--ToS
["Burning Armor"] = 1,
["Jagged Abrasion"] = 5,
["Judgment of Light"] = 1,
}
for i = 1, GetNumGroupMembers() do --Find other tank
if UnitGroupRolesAssigned("raid" .. i) == "TANK" and UnitName("raid" .. i) ~= UnitName("player") then
aura_env.tank = UnitName("raid" .. i)
print(aura_env.tank, i)
end
end

File diff suppressed because it is too large Load Diff