mackal

Untitled

Aug 16th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. Sub CheckBuffs
  2. /if (!${RDPause}) {
  3. /declare i int local
  4. /declare a int local
  5. /for i 1 to ${SelfBuffTotal}
  6. /call EvaluateCondition "${SelfBuffCondition${i}}"
  7. /if (${Macro.Return}) {
  8. /if ((${Me.CurrentMana}<${Spell[${SelfBuff${i}}].Mana} && !${Select[${SelfBuffGem${i}},alt,item,comb]}) || (${Select[${SelfBuffGem${i}},comb]} && ${Me.Endurance}<200)) /return
  9. /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}}]}))) {
  10. /if (!${CheckGroupTimer}) /call CheckGroup
  11. /if (${Select[${Spell[${SelfBuffID[${i}]}].TargetType},pc,Single]} || (${Me.Class.ShortName.Equal[ENC]} && ${Spell[${SelfBuffID[${i}]}].Name.Find[Illusion:]})) {
  12. /squelch /target targetable id ${Me.ID}
  13. /delay 1s ${Target.ID}==${Me.ID}
  14. }
  15. /if (${ReportSelfBuffs}) /${ChatChannel} Buffing myself with ${Spell[${SelfBuffID[${i}]}].Name}
  16. /varset SitTimer ${SitDelay}
  17. /if (${Me.Class.ShortName.Equal[BRD]} && !${Me.Invis} && !${Select[${SelfBuffGem${i}},item,alt,comb]} && ${Me.Gem[${SelfBuff${i}}]}) {
  18. /squelch /twist stop
  19. /call DoCastingEvents
  20. /squelch /twist once ${Me.Gem[${SelfBuff${i}}]}
  21. /varset castReturn CAST_SUCCESS
  22. /delay ${Spell[${SelfBuff${i}}].MyCastTime}s
  23. /delay 1s
  24. /call DoCastingEvents
  25. /squelch /twist stop
  26. /if (!${Me.Invis} && !${TwistTimer}) /call SingSongs
  27. } else {
  28. /if (${Select[${SelfBuffGem${i}},comb]}) /disc ${SelfBuff${i}}
  29. /if (!${Select[${SelfBuffGem${i}},comb]}) {
  30. /if (${Me.Casting.ID} && ${Me.Class.ShortName.NotEqual[BRD]} && ${Me.Casting.ID}!=${SelfBuffID[${i}]}) /call DoInterrupt
  31. /if (${Me.Class.ShortName.Equal[BRD]}) /squelch /twist stop
  32. /doevents flush Restricted
  33. /call ${CastFunction} "${SelfBuff${i}}" ${SelfBuffGem${i}} 30s Check4Pad
  34. /call DoRestrictedEvents ${SelfBuffID[${i}]}
  35. /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}]}
  36. /if (${Me.Class.ShortName.Equal[BRD]} && !${Me.Invis} && !${TwistTimer}) /call SingSongs
  37. }
  38. }
  39. /return
  40. }
  41. }
  42. /next i
  43. }
  44. /varset SelfBuffTimer ${SelfBuffRecheck}
  45. /call MoveStuff
  46. /return
Advertisement
Add Comment
Please, Sign In to add comment