Jump to content

maznev

Members
  • Posts

    2
  • Joined

  • Last visited

maznev's Achievements

  1. I need an interrupt script for my resto shaman. Something simple like interrupting a set target focus with Earth Shock. I tried some things but couldn't get anything to work. If anyone can help or give some guidance I would be grateful. Also, what profile should I then load into Wrobot itself? I also ask ChatGTP for lua but dont think this is correct if some u guys can check it for me rly quick ! local interruptSpells = { ["Healing Touch"] = true, ["Tranquility"] = true, ["Regrowth"] = true, ["Cyclone"] = true, ["Frostbolt"] = true, ["Polymorph"] = true, ["Howl of Terror"] = true, ["Fear"] = true, ["Drain Life"] = true, ["Holy Light"] = true, ["Flash of Light"] = true, ["Greater Heal"] = true, ["Flash Heal"] = true, ["Mind Blast"] = true, ["Smite"] = true, ["Lesser Healing Wave"] = true } local frame = CreateFrame("Frame") frame:SetScript("OnUpdate", function() local name, _, _, startTimeMS, endTimeMS, _, _, notInterruptible = UnitCastingInfo("focus") if name and interruptSpells[name] and not notInterruptible then local currentTime = GetTime() * 1000 local castProgress = (currentTime - startTimeMS) / (endTimeMS - startTimeMS) * 100 if castProgress >= 5 and castProgress <= 10 then CastSpellByName("Earth Shock", "focus") print("Interrupted " .. name .. " with Earth Shock at " .. math.floor(castProgress) .. "% cast progress.") end end end)
  2. I need an interrupt script for my resto shaman. Something simple like interrupting a set target focus with Earth Shock. I tried some things but couldn't get anything to work. If anyone can help or give some guidance I would be grateful. Also, what profile should I then load into Wrobot itself? I also ask ChatGTP for lua but dont think this is correct if some u guys can check it for me rly quick ! local interruptSpells = { ["Healing Touch"] = true, ["Tranquility"] = true, ["Regrowth"] = true, ["Cyclone"] = true, ["Frostbolt"] = true, ["Polymorph"] = true, ["Howl of Terror"] = true, ["Fear"] = true, ["Drain Life"] = true, ["Holy Light"] = true, ["Flash of Light"] = true, ["Greater Heal"] = true, ["Flash Heal"] = true, ["Mind Blast"] = true, ["Smite"] = true, ["Lesser Healing Wave"] = true } local frame = CreateFrame("Frame") frame:SetScript("OnUpdate", function() local name, _, _, startTimeMS, endTimeMS, _, _, notInterruptible = UnitCastingInfo("focus") if name and interruptSpells[name] and not notInterruptible then local currentTime = GetTime() * 1000 local castProgress = (currentTime - startTimeMS) / (endTimeMS - startTimeMS) * 100 if castProgress >= 5 and castProgress <= 10 then CastSpellByName("Earth Shock", "focus") print("Interrupted " .. name .. " with Earth Shock at " .. math.floor(castProgress) .. "% cast progress.") end end end)
×
×
  • Create New...