Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub CheckBuffs
- /if (!${RDPause}) {
- /declare i int local
- /declare a int local
- /for i 1 to ${SelfBuffTotal}
- /call EvaluateCondition "${SelfBuffCondition${i}}"
- /if (${Macro.Return}) {
- /if ((${Me.CurrentMana}<${Spell[${SelfBuff${i}}].Mana} && !${Select[${SelfBuffGem${i}},alt,item,comb]}) || (${Select[${SelfBuffGem${i}},comb]} && ${Me.Endurance}<200)) /return
- /if (!${RestrictedList.Find[|${SelfBuffID[${i}]}|]} && ${Me.State.NotEqual[FEIGN]} && (${Spell[${SelfBuffID[${i}]}].Stacks[0]} && !${Me.Buff[${Spell[${SelfBuffID[${i}]}]}].ID} && !${Me.Song[${Spell[${SelfBuffID[${i}]}]}].ID}) && ((${SelfBuffAura${i}} && (!${Me.Aura[${SelfBuffIcon${i}}].Length})) || !${SelfBuffAura${i}}) && (${Me.CountBuffs}<${SelfBuffCount${i}} || ${SelfBuffAura${i}}) && (((!${SitTimer} || ${Me.Gem[${SelfBuff${i}}]} || ${Me.Mount.ID}) && ${Me.CurrentMana}>${Spell[${SelfBuff${i}}].Mana}) || (${SelfBuffGem${i}.Equal[item]} && !${FindItem[${SelfBuff${i}}].Timer}) || (${SelfBuffGem${i}.Equal[alt]} && ${Me.AltAbilityReady[${SelfBuff${i}}]}) || (${SelfBuffGem${i}.Equal[comb]} && ${Me.CombatAbilityReady[${SelfBuff${i}}]}))) {
- /if (!${CheckGroupTimer}) /call CheckGroup
- /if (${Select[${Spell[${SelfBuffID[${i}]}].TargetType},pc,Single]} || (${Me.Class.ShortName.Equal[ENC]} && ${Spell[${SelfBuffID[${i}]}].Name.Find[Illusion:]})) {
- /squelch /target targetable id ${Me.ID}
- /delay 1s ${Target.ID}==${Me.ID}
- }
- /if (${ReportSelfBuffs}) /${ChatChannel} Buffing myself with ${Spell[${SelfBuffID[${i}]}].Name}
- /varset SitTimer ${SitDelay}
- /if (${Me.Class.ShortName.Equal[BRD]} && !${Me.Invis} && !${Select[${SelfBuffGem${i}},item,alt,comb]} && ${Me.Gem[${SelfBuff${i}}]}) {
- /squelch /twist stop
- /call DoCastingEvents
- /squelch /twist once ${Me.Gem[${SelfBuff${i}}]}
- /varset castReturn CAST_SUCCESS
- /delay ${Spell[${SelfBuff${i}}].MyCastTime}s
- /delay 1s
- /call DoCastingEvents
- /squelch /twist stop
- /if (!${Me.Invis} && !${TwistTimer}) /call SingSongs
- } else {
- /if (${Select[${SelfBuffGem${i}},comb]}) /disc ${SelfBuff${i}}
- /if (!${Select[${SelfBuffGem${i}},comb]}) {
- /if (${Me.Casting.ID} && ${Me.Class.ShortName.NotEqual[BRD]} && ${Me.Casting.ID}!=${SelfBuffID[${i}]}) /call DoInterrupt
- /if (${Me.Class.ShortName.Equal[BRD]}) /squelch /twist stop
- /doevents flush Restricted
- /call ${CastFunction} "${SelfBuff${i}}" ${SelfBuffGem${i}} 30s Check4Pad
- /call DoRestrictedEvents ${SelfBuffID[${i}]}
- /if (${castReturn.Equal[CAST_SUCCESS]} && ${Select[${Spell[${SelfBuffID[${i}]}].TargetType},"Group v2","AE PC v2","Group v1","AE PC v1"]}) /call RemoveFromQueue 0 ${SelfBuffID[${i}]}
- /if (${Me.Class.ShortName.Equal[BRD]} && !${Me.Invis} && !${TwistTimer}) /call SingSongs
- }
- }
- /return
- }
- }
- /next i
- }
- /varset SelfBuffTimer ${SelfBuffRecheck}
- /call MoveStuff
- /return
Advertisement
Add Comment
Please, Sign In to add comment