3.3.5 btw
i want to achive this any way possible, lua script, pqr, bot, whatever:
example: someone is casting fear on me, i then use a defensive cd.
any info or tips are welcome, i just dont know how to code this stuff.
3.3.5 btw
i want to achive this any way possible, lua script, pqr, bot, whatever:
example: someone is casting fear on me, i then use a defensive cd.
any info or tips are welcome, i just dont know how to code this stuff.
SpellBase = {"35782", "8122"}
AutoKick = CreateFrame("Frame", "AutoKick", UIParent);
AutoKick:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
AutoKick:SetScript("OnEvent", function(self, event, arg1, arg2, ...)
if(event=="COMBAT_LOG_EVENT_UNFILTERED") then
local spell, _, _, _, _, endTime, _, _, interrupt = UnitCastingInfo("target")
for _, v in ipairs(SpellBase) do
if GetSpellInfo(v) == spell then
local finish = endTime/1000 - GetTime()
if finish <= 0.5 then
if interrupt == false then
RunMacroText("/cast Berserker Rage")
end
end
end
end
end
end)
something like this