Jump to content

interrupt casting at 80 - 90%


Steiner

Recommended Posts

Hello folks,

I'm currently working on a simple pvp rotation, but I still struggle with interrupt spells.

If you choose Target in Cast in profile creator it will interrupt the target immediately and it will look really fishy,

if you choose Target Casting Time Left it feels like it doesn't really matter which value you choose, it will interrupt very early as well.

thanks in advance

Link to comment
Share on other sites

Hello, you can try to use lua codition https://wow.gamepedia.com/API_UnitCastingInfo:

local name, text, texture, startTimeMS, endTimeMS, isTradeSkill, castID, notInterruptible, spellId = UnitCastingInfo("player")
if name then 
 local finish = GetTime() - startTimeMS/1000
 local casttime = (endTimeMS - startTimeMS) /1000
 local p = finish * 100 / casttime
 print(name .. ' casting ' .. p .. ' %.')
end

 

Link to comment
Share on other sites

  • 4 months later...

@Droidz do we have to replace the first line ?

lets say I want to use (shadow priest's) silence to interrupt any cast. 15487

silence, silence, path?(what path?), 1500(where it can attempt interrupt), 500(where the attempt ends?), tradeskill(what is this?), 15487(silence id), notInterruptible(then what), spellId = UnitCastingInfo("focus")

Silence, Silence, _, _, endTime = UnitCastingInfo"focus") if spell then local finish = endTimeMS/1000 - GetTime()  print(spell .. ' will be finished casting in ' .. finish .. ' seconds.') end

if I add this as lua script is it going to work?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...