Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Target HasBuff *And BuffDur?
#1
For Player BUffs we got:
HasBUff:
AND Buff Dur:
Missing BUffs:
OR Buff Dur:

Target Buffs: (we missing AndBuffDur)
Has BUff:
Missing Buff:
Or Buff Dur:

We dont have any way to check if a target has buff and its going to run out soon, like we do with player buffs. This would be Perfect for casting Iron Jaws when Windbite is < 5sec. So **=what i added in ffxiv_skillmgr.lua

SKM_TBuff = { default = "", cast = "string", profile = "tbuff", section = "fighting" },
**SKM_TBuffDura = { default = 0, cast = "number", profile = "tbuffdura", section = "fighting" },
SKM_TNBuff = { default = "", cast = "string", profile = "tnbuff", section = "fighting" },
SKM_TNBuffDura = { default = 0, cast = "number", profile = "tnbuffdura", section = "fighting" },

if (not IsNullString(skill.tbuff)) then
local owner = (skill.tbuffowner == "Player") and PID or nil
** local duration = tonumber(skill.tbuffdura) or 0
if not HasBuffs(target, skill.tbuff, tbuffdura, owner) then <<**nil>tbuffdura
return true
end
end
if (not IsNullString(skill.tnbuff)) then
local owner = (skill.tbuffowner == "Player") and PID or nil
local duration = tonumber(skill.tnbuffdura) or 0
if not MissingBuffs(target, skill.tnbuff, duration, owner) then
return true
end
end

Now does anyone know which other part I might have to edit to make Target AND Buff Dura possible?
Otherwise I end up refreshing DoTs way to early @ like 10 seconds.
Reply
 


Messages In This Thread
Target HasBuff *And BuffDur? - by Bricks - 06-25-2015, 06:16 AM
RE: Target HasBuff *And BuffDur? - by CuteDragon - 06-25-2015, 06:23 AM
RE: Target HasBuff *And BuffDur? - by Bricks - 06-25-2015, 06:34 AM
RE: Target HasBuff *And BuffDur? - by CuteDragon - 06-25-2015, 06:39 AM
RE: Target HasBuff *And BuffDur? - by Bricks - 06-25-2015, 06:52 AM
RE: Target HasBuff *And BuffDur? - by Ace - 06-25-2015, 08:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products