Jump to content

Recommended Posts

Ok Im wondering if I could get this to work.

 

name, _, _, _, _, _, expires, _, _, _, _ = UnitDebuff("target", "Savage Roar")
if name = "Savage Roar" then

      retV = 1 end

      retV = 0 else,

secs = (expires - GetTime()) if secs < 3 then

      retV = 1 else

      retV = 0 end

 

accentualy Im wanting it to See Name on Target and recast if Name isnt present, then if Name is Present Look at the Seconds remaining and if its about to expire then recast then spell. If I can get this to work then it will become the default LUA Script used for most toons and their DoT's.

 

these are the scripts Im using as a reference.

 

name, _, _, _, _, _, _, _, _, _, _, = UnitBuff("Target", "Rip")
if name == "Rip" then

      retV = 1 end

      retV = 0 else

_, _, _, _, _, _, expires, _, _, _, _ = UnitDebuff("target", "Savage Roar")
secs = (expires - GetTime()) if secs < 3 then

      retV = 1 else

      retV = 0 end

Link to comment
https://wrobot.eu/forums/topic/906-lua-help-please/
Share on other sites

do you have a condition that tracks the experation of buffs on target or player? because some moves or actually most moves are best not let drop off most of them are best recast @ 3 sec remaining. i would add that to you condition. thats why i dont use it, its missing thst aspect.

Link to comment
https://wrobot.eu/forums/topic/906-lua-help-please/#findComment-4932
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...