Code: Select all
#turbo
Sub buff
||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||THIS INCLUED WILL KEEP TRACK OF YOUR||||
||||||||||||||BUFFS AND ASK YOUR GENBOTS TO RENEW|||||
||||||||||||||THEM WHEN NEEDED. KEEPS TRACK OF UP||||
||||||||||||||TO TWELVE BUFFS. EACH BUFF ALLOWS 30|||
||||||||||||||SECONDS FOR THE GENBOT TO CAST. ADD A||
||||||||||||||/call buff TO YOUR MACRO WHEN SAFE.|||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||CHANGE THESE VARIABLES TO YOUR BUFFS||||
||||||CHANGE THE REST TO none|||||||||||||||||
/if (!${Defined[buff1]}) /declare buff1 string outer Celerity
/if (!${Defined[buff2]}) /declare buff2 string outer Regrowth of Dar Khura
/if (!${Defined[buff3]}) /declare buff3 string outer Protection of the Glades
/if (!${Defined[buff4]}) /declare buff4 string outer Legacy of Thorn
/if (!${Defined[buff5]}) /declare buff5 string outer Ancestral Guard
/if (!${Defined[buff6]}) /declare buff6 string outer Endurance of the Boar
/if (!${Defined[buff7]}) /declare buff7 string outer Talisman of the Wrulan
/if (!${Defined[buff8]}) /declare buff8 string outer Focus of the Seventh
/if (!${Defined[buff9]}) /declare buff9 string outer Ferine Avatar
/if (!${Defined[buff10]}) /declare buff10 string outer none
/if (!${Defined[buff11]}) /declare buff11 string outer none
/if (!${Defined[buff12]}) /declare buff12 string outer none
||||||CHANGE caster# TO THE CASTER OF buff#|||
/if (!${Defined[caster1]}) /declare caster1 string outer shaman
/if (!${Defined[caster2]}) /declare caster2 string outer shaman
/if (!${Defined[caster3]}) /declare caster3 string outer drood
/if (!${Defined[caster4]}) /declare caster4 string outer drood
/if (!${Defined[caster5]}) /declare caster5 string outer shaman
/if (!${Defined[caster6]}) /declare caster6 string outer shaman
/if (!${Defined[caster7]}) /declare caster7 string outer shaman
/if (!${Defined[caster8]}) /declare caster8 string outer shaman
/if (!${Defined[caster9]}) /declare caster9 string outer shaman
/if (!${Defined[caster10]}) /declare caster10 string outer
/if (!${Defined[caster11]}) /declare caster11 string outer
/if (!${Defined[caster12]}) /declare caster12 string outer
/if (!${Defined[waitbuff]}) /declare waitbuff timer local
/if (!${Defined[totalbuffs]}) /declare totalbuffs int local 12
/if (!${Defined[currentbuff]}) /declare currentbuff int local 1
||||||||||||||||||||||||||||||||||END DEFINES|||||||||||||||||||||||||||||
/for currentbuff 1 to ${totalbuffs}
/if (${NearestSpawn[1, pc ${caster${currentbuff}}].Distance}<40) {
/if (${String[${buff${currentbuff}}].NotEqual[none]} && ${String[${NearestSpawn[1, pc ${caster${currentbuff}}]}].NotEqual[NULL]}) {
/if (${String[${Me.Buff[1]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[2]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[3]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[4]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[5]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[6]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[7]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[8]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[9]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[10]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[11]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[12]}].NotEqual[${buff${currentbuff}}]}) {
/t ${caster${currentbuff}} buff ${buff${currentbuff}}
/varset waitbuff 300
:Loop1
/if (${NearestSpawn[1, pc ${caster${currentbuff}}].Distance}>40 || ${waitbuff}==0) /return
/if (${String[${Me.Buff[1]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[2]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[3]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[4]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[5]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[6]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[7]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[8]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[9]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[10]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[11]}].NotEqual[${buff${currentbuff}}]} && ${String[${Me.Buff[12]}].NotEqual[${buff${currentbuff}}]}) /goto :Loop1
}
}
}
/next currentbuff
/varset currentbuff 1
/return
