Advertisement
DavidJSGardner

Pangaea Jewelry Meditation

Jul 20th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. set %Delay 0
  2. While #True
  3. {
  4. if %Delay < #SCNT
  5. {
  6. if #Mana = #MaxMana
  7. {
  8. GoSub UnEquipJewelry IJG HJG UJG SJG
  9. wait 3
  10. GoSub EquipJewelry IJG HJG UJG SJG
  11. wait 1
  12. }
  13. GoSub Meditate FMC
  14. }
  15. }
  16.  
  17. Sub EquipJewelry
  18. for %i 1 %0
  19. {
  20. FindItem % . %i C_ , #BackPackID
  21. if #FindID <> X
  22. {
  23. ExEvent Drag #FindID #FindStack
  24. wait 1
  25. ExEvent Droppd
  26. }
  27. }
  28. return
  29.  
  30. Sub UnEquipJewelry
  31. for %i 1 %0
  32. {
  33. FindItem % . %i C_ , #CharID
  34. if #FindID <> X
  35. {
  36. ExEvent Drag #FindID #FindStack
  37. wait 1
  38. ExEvent Dropc #BackPackID
  39. }
  40. }
  41. return
  42.  
  43. ;GoSub Meditate
  44. ;Optional param to send, FMC will return from sub only when you are full mana, useful for if you
  45. ;are using in a macro where you need to be done with meditation before proceeding onto another
  46. ;action, inscription comes to mind, casting spells also would be another reason.
  47. Sub Meditate
  48. set !lpc #lpc
  49. set #lpc 1000
  50. event Macro 13 46
  51. set %Delay #SCNT + 30
  52.  
  53. set %jrnl #jindex
  54. while #true
  55. {
  56. if #jindex > %jrnl
  57. {
  58. set %jrnl %jrnl + 1
  59. scanjournal %jrnl
  60. if I_am_already_performing in #journal
  61. {
  62. Set %MedCD #SCNT + 5
  63. While %MedCD < #SCNT
  64. {
  65. if #Mana = #MaxMana
  66. {
  67. set #lpc !lpc
  68. return
  69. }
  70. }
  71. set %Delay #SCNT + 30
  72. event Macro 13 46
  73. }
  74. if You_are_at_peace. in #journal
  75. {
  76. Event Sysmessage Silly Mana User! You are at full mana
  77. set #lpc !lpc
  78. return
  79. }
  80. if to_concentrate in #journal
  81. {
  82. Set %MedCD #SCNT + 30
  83. While %MedCD < #SCNT
  84. {
  85. if #Mana = #MaxMana
  86. {
  87. set #lpc !lpc
  88. return
  89. }
  90. }
  91. set %Delay #SCNT + 30
  92. event Macro 13 46
  93. }
  94. if Meditating in #journal
  95. {
  96. Set #lpc !lpc
  97. if %1 = FMC
  98. {
  99. While #MANA <> #MAXMANA
  100. {
  101. onhotkey ESC
  102. {
  103. Event Sysmessage Stopping Mana Monitoring.
  104. set #lpc !lpc
  105. return MMStop
  106. }
  107. }
  108. set #lpc !lpc
  109. return
  110. }
  111. set #lpc !lpc
  112. return
  113. }
  114. }
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement