/varcalc didnt seem to be doing it, so
I put a ${Math.Calc[ ... in there and used /varset instead.
I dunno, it works
EDIT - changed to use Fez's code(below), its cleaner and works a bit differently. Although I'm not sure how.
in BotCore.inc
Code: Select all
Sub Event_timer(string TimerName,string OldValue)
/if (${TimerName.Equal[SitTimer]}) {
/if (${Me.Standing}) /sit
}
/if (${TimerName.Equal[ChainStunTime]}) {
/call NextStun
}
/if (${TimerName.Equal[BuffListAdvance]}) {
/declare counter int local
/for counter 1 to ${BuffListCount}
/varset BuffList[${counter},3] ${Math.Calc[${BuffList[${counter},3]}-5].Int}
/if (${Int[${BuffList[${counter},3]}]}<5) {
/call StandardTarget "${BuffList[${counter},1]}"
/if (${Target.CleanName.Equal[${BuffList[${counter},1]}]}) {
/call SpellSub "${BuffList[${counter},2]}"
/if (${Macro.Return}==0) /varset BuffList[${counter},3] ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds}
}
}
/next counter
/varset BuffListAdvance 50
}
/return
in Shortcuts.inc
This fixes [shortcuts noTargetAA] to work like steed=77 in your ini.
LN 294
Code: Select all
/if (${ShortCuts[4,${ShortcutNum}]}==3) /alt activate "${CastText}"
Code: Select all
/if (${ShortCuts[4,${ShortcutNum}]}==3) /alt activate ${CastText}
LN 270
Code: Select all
/varset ${Toggles[4,${ToggleNum}]}} ${newValue}
Code: Select all
/varset ${Toggles[4,${ToggleNum}]} ${newValue}
sorry if these are posted already, clarifying , fixing, making my post longer.
Seagreen





