Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #include Includes/bs2common.inc
  2. #include Includes/utility.inc
  3.  
  4. Sub Main
  5. /echo =================TESTS STARTED=================
  6. /makecamp off
  7. /declare LastTargetId int outer 0
  8. /declare LastTargetCounter int outer 0
  9.  
  10. :Loop
  11. /if ( ${Me.PctHPs} < 60 ) {
  12. /doability Mend
  13. }
  14. /if ( ${Me.PctHPs} < 25 ) {
  15. /attack off
  16. /delay 5
  17. /doability "Feign Death"
  18. /warp succor
  19. /delay 30s
  20. /stand
  21. }
  22.  
  23. /if ( ${LastTargetId} == ${Target.ID} ) {
  24. /varcalc LastTargetCounter ${LastTargetCounter}+1
  25. /varset LastTargetId ${Target.ID}
  26. } else {
  27. /varset LastTargetCounter 0
  28. /varset LastTargetId ${Target.ID}
  29. }
  30. /if ( ${LastTargetCounter} > 30) {
  31. /varset LastTargetCounter 0
  32. /alert add 1 id ${LastTargetId}
  33. /squelch /target clear
  34. /delay 5
  35. }
  36.  
  37. /if ( ${Me.AltAbilityReady[Fundament: Second Spire of the Sensei]} ) /casting "Fundament: Second Spire of the Sensei"
  38. /if ( ${Me.AltAbilityReady[Infusion of Thunder]} ) /casting "Infusion of Thunder"
  39. /if ( ${Me.AltAbilityReady[Zan Fi's Whistle]} ) /casting "Zan Fi's Whistle"
  40.  
  41.  
  42. /if ( !${Me.Buff[Twitching Speed].ID} && ${Me.XTarget} <= 0 ) {
  43. /casting "Lizardscale Plated Girdle"
  44. /delay 4s
  45. }
  46.  
  47. /if ( ${Target.ID} && !${Target.Type.Equal[NPC]}) /squelch /target clear
  48. /if ( ${Me.XTarget} > 0 && !${Target.ID} ) {
  49. /call ClosestXTargetId
  50. /squelch /target id ${Macro.Return}
  51. /delay 1s ${Target.ID}
  52. }
  53.  
  54. /if ( !${Target.ID} ) {
  55. /squelch /target npc range 10 90 noalert 1
  56. /delay 1s ${Target.ID}
  57. }
  58.  
  59. /if ( ${Target.ID} && ${Target.Distance} > 10 ) {
  60. /warp t
  61. /delay 2
  62. /keypress s hold
  63. /delay 5 ${Target.Distance} > 2
  64. /keypress s
  65. /face fast
  66. /attack on
  67. } else /if ( ${Target.ID} ) {
  68. /attack on
  69. }
  70.  
  71. |/if ( ${SpawnCount[pc]} > 1 ) {
  72. | /echo Stopping because a player is in zone
  73. | /endmac
  74. |}
  75.  
  76. /delay 5
  77. /goto :Loop
  78.  
  79. /echo =================TESTS ENDED=================
  80. /return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement