Moderator: MacroQuest Developers


LordGiddion wrote:Nightshift: what's the buff not working? More then 1 buff or is it 1 buff recasting, Duration may not be returning right.
Sorry just gonna make semi-random suggestions - No way I have time for real debugging or even loading EQ this weekend.


Code: Select all
/if (${Macro.Return}==1 ${SelfBuffInt[${counter},2]}<6) /varset SelfBuffInt[${counter},1] 5
/if (${Macro.Return}==1 ${SelfBuffInt[${counter},2]}>=6) /varset SelfBuffInt[${counter},1] 900
Code: Select all
/if (${Macro.Return}==1 [color=red]&&[/color] ${SelfBuffInt[${counter},2]}<6) /varset SelfBuffInt[${counter},1] 5
/if (${Macro.Return}==1 [color=red]&&[/color] ${SelfBuffInt[${counter},2]}>=6) /varset SelfBuffInt[${counter},1] 900
Code: Select all
:SelfBuffLoad
/if (${SelfBuffList.Arg[${ArgNum},|].Length}) {
/varset CommandParam ${SelfBuffList.Arg[${ArgNum},|][color=red]}[/color]
/call AddSelfBuff "${CommandParam}"
}
/varcalc ArgNum ${ArgNum}+1
/if (${SelfBuffList.Arg[${ArgNum},|].Length}) /goto :SelfBuffLoad
/return

Code: Select all
sub CheckSelfBuffs
/declare counter int local
/varset SelfBuffPass 0
/for counter 1 to ${SelfBuffCount}
/if (!${Buff[${SelfBuff[${counter}]}].ID} && ${SelfBuffInt[${counter},1]}<1) {
/target myself
/call SpellSub "${SelfBuff[${counter}]}"
/if (${Macro.Return}==1 && ${SelfBuffInt[${counter},2]}<6) {
/varset SelfBuffInt[${counter},1] 5
/varcalc SelfBuffInt[${counter},2] ${SelfBuffInt[${counter},2]}+1
}
/if (${Macro.Return}==1 && ${SelfBuffInt[${counter},2]}>=6) {
/varset SelfBuffInt[${counter},1] 900
/varset SelfBuffInt[${counter},2] 0
}
}
/next counter
/return
Code: Select all
/call AddCommand CORE afk Do-afk
Code: Select all
/if (${Macro.Return}==1 && ${SelfBuffInt[${counter},2]}<6) /varset SelfBuffInt[${counter},1] 5
/if (${Macro.Return}==1 && ${SelfBuffInt[${counter},2]}>=6) /varset SelfBuffInt[${counter},1] 900 
Code: Select all
sub CheckSelfBuffs
/declare counter int local
/varset SelfBuffPass 0
/for counter 1 to ${SelfBuffCount}
[color=red]/echo ${Buff[${SelfBuff[${counter}]}].ID}[/color]
/if (!${Buff[${SelfBuff[${counter}]}].ID} && ${SelfBuffInt[${counter},1]}<1) {

Code: Select all
sub CheckSelfBuffs
/declare counter int local
/varset SelfBuffPass 0
/for counter 1 to ${SelfBuffCount}
/echo ${[color=red]Me.[/color]Buff[${SelfBuff[${counter}]}].ID}
/if (!${[color=red]Me.[/color]Buff[${SelfBuff[${counter}]}].ID} && ${SelfBuffInt[${counter},1]}<1) {

