Advertisement
Maespark

Composite Bow - Armor Ignore (No Alias)

Aug 20th, 2019
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.19 KB | None | 0 0
  1. ////////////////////////////
  2. //Title: Composite Bow Armor Ignore
  3. //Author: Maelune
  4. //Version: 1.0
  5. //Purpose: Auto select nearest enemy and focus that one enemy until it is
  6. // either dead, or has moved too far away to hit.
  7. //
  8. //Requirements: A composite bow
  9. // Combat skills maxed
  10. //
  11. //Instructions: Copy this entire text into a UOSteam Macro! Replace the serial
  12. // ID of the bow where prompted (first nested if statement)
  13. // with that of your own bow.
  14. //
  15. //Notes: This macro will focus one enemy down at a time. It will not attempt
  16. //to change targets until your target is dead, or has gotten further than
  17. //10 tiles away (the maximum range of a composite bow)
  18. ////////////////////////////
  19. while @findobject 0x41e8b69f 'any' 'backpack' //replace serial with that of your bow
  20. clearhands right
  21. pause 300
  22. equipitem 0x41e8b69f 1 //replace serial with that of your bow (Leave the 1 at the end)
  23. endwhile
  24. clearignorelist
  25. while @getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  26. //while @getenemy 'enemy' 'gray' 'criminal' 'closest'
  27. //***Prevents you from attacking gray pets directly***///
  28. if @property 'Loyalty' 'enemy' == "Wonderfully Happy" or @property 'Loyalty' 'enemy' == "Extremely Happy"
  29. ignoreobject 'enemy'
  30. pause 150
  31. //@getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  32. @getenemy 'enemy' 'gray' 'criminal' 'closest'
  33. endif
  34. if @property 'Loyalty' 'enemy' == "Very Happy" or @property 'Loyalty' 'enemy' == "Happy"
  35. ignoreobject 'enemy'
  36. pause 150
  37. //@getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  38. @getenemy 'enemy' 'gray' 'criminal' 'closest'
  39. endif
  40. /////********************************************//////
  41. if not @findobject 'enemy'
  42. stop
  43. elseif @findobject 'enemy' and @inrange 'enemy' 10
  44. //if hits 'enemy' == maxhits 'enemy'
  45. //virtue 'honor'
  46. // waitfortarget 5000
  47. // target! 'enemy'
  48. //pause 300
  49. //endif
  50. endif
  51. @setability 'primary' 'on'
  52. attack! 'enemy'
  53. settimer 'discord' 15000
  54. while @findtype 0xeed '0' 'backpack' or @findtype 0xeed '0' 'ground'
  55. useobject 'found'
  56. ignoreobject 'found'
  57. endwhile
  58. while @findobject 'enemy' 'any' 'ground' 'any' 10
  59. if @injournal 'Vortex Strike' 'system'
  60. // pause 300
  61. replygump 0x7ec42f38 1005
  62. waitforgump 0x7ec42f38 1000
  63. sysmsg 'vortex Rearmed' '1950'
  64. @clearjournal
  65. endif
  66. if @injournal 'failed the augment skill check' 'system'
  67. // pause 300
  68. replygump 0x7ec42f38 1005
  69. waitforgump 0x7ec42f38 1000
  70. sysmsg 'Vortex Rearmed' '1950'
  71. @clearjournal
  72. endif
  73. if dead 'self'
  74. stop
  75. endif
  76. if @findobject 0x41e8b69f 'any' 'backpack' //replace serial with that of your bow
  77. clearhands right
  78. equipitem 0x41e8b69f 1 //replace serial with that of your bow (Leave the 1 at the end)
  79. endif
  80. //Change this serial ID to whatever your bow is!
  81. if @findobject 'enemy' and @inrange 'enemy' 10
  82. if hits 'enemy' == maxhits 'enemy'
  83. virtue 'honor'
  84. waitfortarget 5000
  85. target! 'enemy'
  86. pause 300
  87. endif
  88. endif
  89. //@setability 'secondary' 'on'
  90. //clearability
  91. @setability 'primary' 'on'
  92. attack! 'enemy'
  93. if not timerexists 'castconcentrate'
  94. createtimer 'castconcentrate'
  95. settimer 'castconcentrate' 100000
  96. endif
  97. //if not timerexists 'castcursew'
  98. // createtimer 'castcursew'
  99. // settimer 'castcursew' 30000
  100. //endif
  101. //if timer 'castcursew' > 30000 and timer 'casttime' > 1490
  102. // cast "Curse Weapon"
  103. // settimer 'casttime' 0
  104. // settimer 'castcursew' 0
  105. //endif
  106. if not buffexists "Consecrate Weapon"
  107. if timer 'castconcentrate' > 9000
  108. cast 'Consecrate Weapon'
  109. settimer 'castconcentrate' 0
  110. endif
  111. endif
  112. if stam < 20
  113. cast "Divine Fury"
  114. pause 500
  115. endif
  116. if not buffexists "Bless"
  117. cast "Bless"
  118. waitfortarget 3000
  119. target! 'self'
  120. pause 150
  121. endif
  122. if @findtype 0xfc7 1126 'backpack'
  123. if counttype 0xf8c 0 'backpack' > 3
  124. if not timerexists 'Fire Horn Timer'
  125. createtimer 'Fire Horn Timer'
  126. settimer 'Fire Horn Timer' 5000
  127. elseif timer 'Fire Horn Timer' > 5000 and @inrange 'enemy' 2
  128. useobject 'found'
  129. waitfortarget 3000
  130. target! 'enemy'
  131. settimer 'Fire Horn Timer' 0
  132. endif
  133. endif
  134. endif
  135. //if not buffexists 'enemy of one'
  136. // cast 'enemy of one'
  137. // pause 1500
  138. //endif
  139. //if @injournal 'Shield of Spikes!' 'system'
  140. // replygump 0x4239a64f 1004
  141. //waitforgump 0x4239a64f 15000
  142. //sysmsg 'SOS Rearmed' '1950'
  143. //endif
  144. //if @injournal 'You failed the augment skill check' 'system'
  145. //replygump 0x4239a64f 1004
  146. //waitforgump 0x4239a64f 15000
  147. //sysmsg 'SOS Rearmed' '1950'
  148. //endif
  149. //@clearjournal
  150. //if weight >= 400 or contents 'backpack' > 160
  151. // waitforcontext 0x507b956d 2 15000
  152. // while @findtype 0xeed '0' 'backpack'
  153. // useobject! 'found'
  154. // ignoreobject 'found'
  155. // endwhile
  156. //endif
  157. endwhile
  158. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement