Ivaar / Windower-addons

FFXI Windower addons
70 stars 108 forks source link

Spam haste/refresh #15

Closed mrlooolz closed 5 years ago

mrlooolz commented 5 years ago

Hello. I set haste/refresh to 5 mins and i switch it on. It keeps spamming Haste/refresh.

Ivaar commented 5 years ago

The setting is for how many seconds to recast before the spell is due to wear off. So //geo recast buff 5 10, would recast haste between 5 to 10 seconds before it is due to wear off. The idea around this was so it would not seem like a bot by casting every X seconds or reapplying buffs the moment they wear. Base duration for haste is 3 mins and 2.5mins for refresh, do you have some kind of duration enhancements?

mrlooolz commented 5 years ago

i do 5/5 telchnie + shield.

it starts to spam haste. so like haste, when cd is back haste etc. its like it doesnt ready that i got the buff. I read the lua and so the recast command. but not sure why?

Ivaar commented 5 years ago

I think it may have to do with case sensitivity, I'll look into it this evening. Can you try changing line 220 from (not timers[spell.enl] or not timers[spell.enl][targ] or os.time() - timers[spell.enl][targ]+recast > 0) then to (not timers[spell.enl] or not timers[spell.enl][targ:lower()] or os.time() - timers[spell.enl][targ:lower()]+recast > 0) then

mrlooolz commented 5 years ago

I tried and still the same thing :(

Ivaar commented 5 years ago

Typo on line 384 change to timers[spell.enl:lower()][target.name:lower()] = os.time()+spell.dur

mrlooolz commented 5 years ago

ill have to check tomorrow. do i keep like 220 the orginal or one posted above?

Ivaar commented 5 years ago

Updated