Copied botcore and botspell, added the fixes since the last time those two were updated.
command:
/tell botname buff <spellname> on pcname or yourself or me all result in the following error.
Calculate Encountered unpasable text '${SelfBuffInt[1,1]>1'
botcore.inc@545 (Event_timer(string TimerName,string OldValue)):/if (${SelfBuffInt[${counter},1]>1) /varcalc SelfBuffInt[${counter},1]}-5
genbot.mac@57 (Main): /varset Breakout 0
Damn, hate it when I am not looking at it hard enough..
botcore line 545:
Code: Select all
/if (${SelfBuffInt[${counter},1][color=red]}[/color]>1) /varcalc SelfBuffInt[${counter},1] ${SelfBuffInt[${counter},1]}-5
Missing bracket..
Now that is isn't doing that anymore, no errors actually. It recasts the buff
over and over :)
What I found so far is that the casting over and over is happening in SpellSub in botspell.inc starting at line 137
Looking at that now to see if I can see anything that would make it loop continually as well as testing other commands that call spellsub.
Tested SelfBuffing, SN , SNT, BUFF. BUFF is the only one that continues to loop.after having cast the spell.
NightShift