Hello, Everyone
I have a question about buff/debuffs durations in a WP let say i would use MAGE_ELECTROSTATIC_CHARGE and has a duration of 1 minute and i want it to cast again... but i have a few seconds to go is their a check and a wait command that i need to add in my WP. thx for the help
Question about Buff durations
Re: Question about Buff durations
I'm not sure what you are talking about with waypoints but you can set the buff to be reapplied early by adding to the skill in your profile. That example would cast it even if there are still 10s left.
Code: Select all
rebuffcut="10"
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 133
- Joined: Fri May 06, 2011 10:39 am
Re: Question about Buff durations
thx... for the input... here is what i'm trying to do...
once i'm near the boss i wanted to recast MAGE_ELECTROSTATIC_CHARGE but if it already cast it will fail so i was wondering if that was a check if it still active or in a cooldown.
Code: Select all
<!-- WAYPOINT USE PREMIDITATION BEFORE BOSS -->
<!-- # 8 --> <waypoint x="-192" z="-1041" y="1254"> player:cast("MAGE_ELECTROSTATIC_CHARGE") RoMScript("SetTitleRequest(530724)"); Countround() Acountround() yrest(300) </waypoint>
<!-- WAYPOINT AFTER BOSS -->
Re: Question about Buff durations
Ah, so you want to wait for the cooldown?
To see if it's active you can just check the buffIf you want to know how much time is left on the buff you would need to do a "player:getBuff(buffname)" instead.
There is a function for returning the remaining cooldown but you have to find the skill first.
I don't know exactly how you want it to run but hopefully that will give you enough information to work it out.
To see if it's active you can just check the buff
Code: Select all
if player:hasBuff("Electrostatic Charge") then
Code: Select all
local buff = player:getBuff("Electrostatic Charge")
if buff and 15 > buff.TimeLeft then
Code: Select all
for k,v in pairs(settings.profile.skills) do
if v.Name=="MAGE_ELECTROSTATIC_CHARGE" then
local timeleft = v:getRemainingCooldown()
if timeleft > 0 then yrest(timeleft*1000) -- wait for the cooldown to end
break
end
end
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 133
- Joined: Fri May 06, 2011 10:39 am
Re: Question about Buff durations
great thank you... will try to figured out. thx again for the help
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest