Ret update soon, should have better inq handling. I noticed it was falling off sometimes.
Updated es logic, bursted 260k on elegon this morning.
PHP Code:
--- Boss Check
local bossExists = false
for i=1,4 do
if UnitExists("boss"..tostring(i)) then
bossExists = true
end
end
--Execution Sentence
if IsPlayerSpell(114157) then
local awSTART, awDURATION = GetSpellCooldown(31884)
local goakSTART, goakDURATION = GetSpellCooldown(86698)
local haSTART, haDURATION = GetSpellCooldown(105809)
--Check if we have cds soon
if awSTART - GetTime() + awDURATION < 15 and awSTART - GetTime() + awDURATION > 0
or goakSTART - GetTime() + goakDURATION < 25 and goakSTART - GetTime() + goakDURATION > 0
or IsPlayerSpell(105809) and haSTART - GetTime() + haDURATION < 15 and haSTART - GetTime() + haDURATION > 0 then return false end
--Check if cds are up
if (UnitBuffID("player", 86698) and select(7, UnitBuffID( "player", 86698)) - GetTime() >= 18)
or (UnitBuffID("player", 31884) and select(7, UnitBuffID( "player", 31884)) - GetTime() >= 18)
or IsPlayerSpell(105809) and (UnitBuffID("player", 105809) and select(7, UnitBuffID( "player", 105809)) - GetTime() >= 18) then return false end
--Check if we are in pve content
if IsInInstance() and (select(2, GetInstanceInfo()) == "party" or select(2, GetInstanceInfo()) == "raid") then
if bossExists == false or (IsPlayerSpell(105809) and PQR_SpellAvailable(105809)) or PQR_SpellAvailable(86698) or PQR_SpellAvailable(31884) then return false end end
if RangeCheck(114157, "target") and UnitBuffID("player", 84963) and select(7, UnitBuffID( "player", 84963)) - GetTime() >= 11 then
CastSpellByName(GetSpellInfo(114157), "target")
end
end
--Light's Hammer
if messaged == nil then messaged = 0 end
if IsPlayerSpell(114158) and PQR_SpellAvailable(114158) and messaged ~= nil and messaged ~= 3 then
--GCD check so we don't overwrite something more important
if UnitBuffID("player", 84963) == nil or select(7, UnitBuffID( "player", 84963)) - GetTime() < 3 or UnitPower("player", 9) == 5
or (UnitBuffID("player", 90174) and select(7, UnitBuffID( "player", 90174)) - GetTime() <= 2) then return false end
PQR_WriteToChat("Light's Hammer: \124cFFE61515Ready")
messaged = messaged + 1
end
--Holy Prism
if IsPlayerSpell(114165) then
local csSTART, csDURATION = GetSpellCooldown(35395)
local jSTART, jDURATION = GetSpellCooldown(20271)
local exoSTART, exoDURATION = GetSpellCooldown(879)
local howSTART, howDURATION = GetSpellCooldown(24275)
--GCD check so we don't lose holy power
if csSTART - GetTime() + csDURATION < 1 and csSTART - GetTime() + csDURATION > 0
or jSTART - GetTime() + jDURATION < 1 and jSTART - GetTime() + jDURATION > 0
or exoSTART - GetTime() + exoDURATION < 1 and exoSTART - GetTime() + exoDURATION > 0
or howSTART - GetTime() + howDURATION < 1 and howSTART - GetTime() + howDURATION > 0
or UnitBuffID("player", 87138)
or UnitPower("player", 9) >= 3
or PQR_SpellAvailable(35395)
or PQR_SpellAvailable(20271)
or PQR_SpellAvailable(879)
or PQR_SpellAvailable(24275) then return false end
if singleMode == false then
CastSpellByName(GetSpellInfo(114165), "target")
elseif singleMode == true or aoeMode == false or aoeMode == true then
CastSpellByName(GetSpellInfo(114165), "player")
end
end
new hof for stone guard
PHP Code:
--Hand of Freedom, Right Alt Key Down
if PQR_SpellAvailable(1044) then
if IsRightAltKeyDown() and not GetCurrentKeyBoardFocus() or UnitDebuffID("player", 116281) then
CastSpellByName(GetSpellInfo(1044), "player")
end
end
changed seal of insight switching so it's less spammy.
PHP Code:
-- Seal Switching
--local PlayerHP = 100 * UnitHealth("player") / UnitHealthMax("player")
local PlayerHP = (100 * (UnitHealth("player") + UnitGetIncomingHeals("player")) / UnitHealthMax("player"))
if not UnitIsDeadOrGhost("player") then
if IsInInstance() and (select(2, GetInstanceInfo()) == "party" or select(2, GetInstanceInfo()) == "raid") then
if (singleMode == false or singleMode == true or aoeMode == true) and GetShapeshiftForm("player") ~= 1 then
CastShapeshiftForm(1)
elseif aoeMode == false and GetShapeshiftForm("player") ~= 2 then
CastShapeshiftForm(2)
end
elseif not IsInInstance() or IsInInstance() and (select(2, GetInstanceInfo()) == "pvp" or select(2, GetInstanceInfo()) == "arena") then
if PlayerHP <= 55 and GetShapeshiftForm("player") ~= 4 then
CastShapeshiftForm(4)
elseif (singleMode == false or singleMode == true or aoeMode == true) and GetShapeshiftForm("player") ~= 1 and PlayerHP > 60 then
CastShapeshiftForm(1)
elseif aoeMode == false and GetShapeshiftForm("player") ~= 2 and PlayerHP > 60 then
CastShapeshiftForm(2)
end
end
end