Moderator: MacroQuest Developers




Code: Select all
/if (${Macro.Return}==0) /varset [color=red]${[/color]BuffListTimes[${counter},1][color=red]}[/color] ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds}
/if (${Macro.Return}==1) /varcalc BuffListTimes[${counter},2] ${BuffListTimes[${counter},2]}+1
/if (${BuffListTimes[${counter},2]}>5) {
/varset [color=red]${[/color]BuffListTimes[${counter},1][color=red]}[/color] 900
/varset [color=red]${[/color]BuffListTimes[${counter},2][color=red]}[/color] 0
}


Code: Select all
/declare SelfBuffList string [color=red]outer[/color]Code: Select all
/if (${SelfBuffPass}>40[color=red])[/color] {Code: Select all
/[color=red]call[/color] SpellSub "${SelfBuff[${counter}]}"Code: Select all
/if (${Macro.Return}==0) /varset ${BuffListTimes[${counter},1]} ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds}
/if (${Macro.Return}==1) /varcalc BuffListTimes[${counter},2] ${BuffListTimes[${counter},2]}+1
/if (${BuffListTimes[${counter},2]}>5) {
/varset ${BuffListTimes[${counter},1]} 900
/varset ${BuffListTimes[${counter},2]} 0
} 
Code: Select all
/if (${TargetName.Equal[yourself]} || ${TargetName.Equal[${Me.CleanName}]}


Code: Select all
/if (${SelfBuffInt[${counter},1][color=red]}[/color]>1) /varcalc SelfBuffInt[${counter},1] ${SelfBuffInt[${counter},1]}-5

Code: Select all
/varset CommandPar[color=red]a[/color]m ${SpellNameParam}
Code: Select all
/if (${Targeting}>15) [color=red] then [/color]/returnCode: Select all
/if (${Targeting}>15) /return