Balduvia posted:
I also seem to be having issue with my continuous buffing. When I buff with or w/o my shield the intervals for buff remain the same regardless of the fact that there is an additional 7 buffs to cast. This causes my buffs to drop while in combat with mobs. My buff timer is set to 54 mins, with 8 continuous buffs being cast.
Here is the code:
Source posted:
cnt = m_colBuffs.Count
iBuffsInLastPack = cnt Mod m_iNumBuffs
iNumPacks = (cnt + (m_iNumBuffs - iBuffsInLastPack)) / m_iNumBuffs
dRet = m_dBuffCycleLen / CDbl(iNumPacks)
So let's say you have 60 buffs (a normal amount with a weapon and shield) with 8 buffs/cycle and 54 min Cycle length
iBuffsInLastPack = 60 mod 8 = 4
iNum packs = (60 + (8 - 4)) / 8 = 7.5
dRet = 54 / 7.5 = 432 seconds
So let's say you take out 7 of those buffs:
iBuffsInLastPack = 53 mod 8 = 5
iNum packs = (60 + (8 - 5)) / 8 = 7.875
dRet = 54*60 / 7.875 = 411 seconds
I doubt that 22 seconds difference between buff cycles is causing you any problems.
If you post what version of LTx you are using, perhaps I could shed some light on what might be happening....
-----signature-----
fun, Fun, FUN!
LifeTankX Developer --
http://www.reality.net/ac/xx