Jump to content

Recommended Posts

First off, I just started using WRotation and I wanted to say thanks. I really like a bot that allows me to write me own profiles.

 

I'm trying to write a profile for raiding on feral druid that uses the icyveins.com rotation for 6.0.2.

 

Is there a way I can check a buff or debuff for it's remaining time?

For instance, I would like to be able to refresh Rip at less than 7 seconds on my target's buff.

I'm using the Rotation Creator to design this and cannot seem to find an acceptable option.

If not, is there a way to find this "time remaining" using a lua script or something?

 

Also, how do profile creators deal with casting healthstones below a specified percentage?

19102.Feral.Druid.xml

Hello,
 
Look this code: 
 
In you case (for spell http://wod.wowhead.com/spell=1079 (id:1079)), to check in your target if remaining time has less than 7 secondes add this lua condition:
 
LuaScript:

local name = GetSpellInfo(1079);
_, _, _, _, _, _, expirationTime = UnitDebuff("target", name);
timeRemaining = expirationTime - GetTime();
if (timeRemaining <= 7) then retV = "1"; else retV = "0"; end

Research:


1

Var:


result

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...