Jack Sparrow
Side Project Monetizer
LEVEL 1
200 XP
Finally today I spent many hours until I achieved to make it work. You need a macro called "1h" which is written this:
/equipslot 16 Wrathful Gladiator's Handaxe
/equipslot 17 Wrathful Gladiator's Shield Wall This script auto equips you 1hand weapon+shield and casts spell reflection when target does important spells like Polymorph, Cyclone, Hex, Chaos Bolt, etc. Code of the script: SpellBase = {"33786", "12826", "12824", "12825", "118", "61305", "28272", "61721", "61780", "28271", "59172", "51514", "60043", "48160", "47843"}
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
RunMacro("1h")
RunMacroText("/cast Spell Reflection")
end
end
end
end
end
end)
You can modify the time depending of your latency, and put the spell to your client language and add more ids to spells you like.
/equipslot 16 Wrathful Gladiator's Handaxe
/equipslot 17 Wrathful Gladiator's Shield Wall This script auto equips you 1hand weapon+shield and casts spell reflection when target does important spells like Polymorph, Cyclone, Hex, Chaos Bolt, etc. Code of the script: SpellBase = {"33786", "12826", "12824", "12825", "118", "61305", "28272", "61721", "61780", "28271", "59172", "51514", "60043", "48160", "47843"}
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
RunMacro("1h")
RunMacroText("/cast Spell Reflection")
end
end
end
end
end
end)
You can modify the time depending of your latency, and put the spell to your client language and add more ids to spells you like.