#Custom Text Code - Madness of the Azj'aqir

1 messages · Page 1 of 1 (latest)

lusty estuary
#

Hi! I play fire mage and used a text weak aura to show SKB & Pryo remaining time before you can start recasting, using gethaste and some other text. I was wondering if someone could do something similar for Madness of the Azj'aqir? The issue I have is the cast time gets reduced by 0.5 sec if you have the buff active, and if blasphemy is active then the cast time is reduced by 50% so dont know how to write this / amend the code. The mage code is:
function(expirationTime, duration, progress, formatedDuration, name, icon, stacks)
local now = GetTime()
local getHaste = GetHaste()*0.01+1
local pyroCast = 4.5/getHaste
local procDur = expirationTime-now--progress
local remainDur = procDur - pyroCast

if stacks == 2 then pyroCast = (9/getHaste)
    remainDur = procDur - pyroCast
end

if (stacks == 1 and (remainDur < 0)) then remainDur = "LATE"
    return remainDur
end


if (((procDur > (4.5/getHaste)) and (procDur < (9/getHaste)) and stacks == 2)) then remainDur = "ONE"
    return remainDur
end

if ((remainDur < 0) and stacks == 2) then remainDur = "LATE"
    return remainDur
end

return ("%.1f"):format(remainDur)

end

#

There are a few other conditions which affect the cast time ... someone familiar with warlock would be able to help. Thanks in advanced

quartz echo
lusty estuary
#

Legend! Thanks

lusty estuary
#

Is there anyway to convert that linked weak aura into text or or icon (i would like to see text showing how many seconds I have left to clip chaos bolt)

#

'start casting'

quartz echo
#

I don't think I'm calculating the time between the current cast and the timeleft anywhere in the aura

#

This aura is just getting the casttime data from the spellinfo using wow API and using that to overlay the buff timer

quartz echo
#

@lusty estuary I updated the aura to have a countdown timer for time left to cast chaos bolt

lusty estuary
#

thank you! thats amazing

lusty estuary
#

Hey mate. Sorry to be a pain. Is there a way to make the progress bar horizontal. I’ve tried doing it myself to mo avail 😦