Bear T.O.E. 63 Posted November 22, 2013 Share Posted November 22, 2013 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 More sharing options...
Droidz 2738 Posted November 22, 2013 Share Posted November 22, 2013 Hello, your script seem good, juste "secs 3< 1" remove "3". But why you don't use Target Buff condition? Bear T.O.E. 1 Link to comment https://wrobot.eu/forums/topic/906-lua-help-please/#findComment-4914 Share on other sites More sharing options...
Bear T.O.E. 63 Posted November 24, 2013 Author Share Posted November 24, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now