Advertisement
Maespark

Composite Bow - Armor Ignore

Jun 18th, 2019
756
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 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. if not @findobject 'bow'
  20. @setalias 'bow' 0x41e8b69f //Replace me with your bow's serial!
  21. endif
  22. while @findobject 'bow' 'any' 'backpack'
  23. clearhands right
  24. pause 300
  25. equipitem bow 1
  26. endwhile
  27. clearignorelist
  28. while @getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  29. //***Prevents you from attacking gray pets directly***///
  30. if @property 'Loyalty' 'enemy' == "Wonderfully Happy" or @property 'Loyalty' 'enemy' == "Extremely Happy"
  31. ignoreobject 'enemy'
  32. pause 150
  33. @getenemy 'murderer' 'enemy' 'gray' 'criminal' 'closest'
  34. endif
  35. if @property 'Loyalty' 'enemy' == "Very Happy" or @property 'Loyalty' 'enemy' == "Happy"
  36. ignoreobject 'enemy'
  37. pause 150
  38. @getenemy 'murderer' '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. while @findtype 0xeed '0' 'backpack' or @findtype 0xeed '0' 'ground'
  54. useobject 'found'
  55. ignoreobject 'found'
  56. endwhile
  57. while @findobject 'enemy' 'any' 'ground' 'any' 10
  58. if dead 'self'
  59. stop
  60. endif
  61. if @findobject bow 'any' 'backpack'
  62. clearhands right
  63. equipitem bow 1
  64. endif
  65. //Change this serial ID to whatever your bow is!
  66. if @findobject 'enemy' and @inrange 'enemy' 10
  67. if hits 'enemy' == maxhits 'enemy'
  68. virtue 'honor'
  69. waitfortarget 5000
  70. target! 'enemy'
  71. pause 300
  72. endif
  73. endif
  74. //@setability 'secondary' 'on'
  75. //clearability
  76. @setability 'primary' 'on'
  77. attack! 'enemy'
  78. if not timerexists 'castconcentrate'
  79. createtimer 'castconcentrate'
  80. settimer 'castconcentrate' 100000
  81. endif
  82. //if not timerexists 'castcursew'
  83. // createtimer 'castcursew'
  84. // settimer 'castcursew' 30000
  85. //endif
  86. //if timer 'castcursew' > 30000 and timer 'casttime' > 1490
  87. // cast "Curse Weapon"
  88. // settimer 'casttime' 0
  89. // settimer 'castcursew' 0
  90. //endif
  91. if not buffexists "Consecrate Weapon"
  92. if timer 'castconcentrate' > 9000
  93. cast 'Consecrate Weapon'
  94. settimer 'castconcentrate' 0
  95. endif
  96. endif
  97. if not buffexists "Divine Fury"
  98. cast "Divine Fury"
  99. pause 500
  100. endif
  101. if not buffexists "Bless"
  102. cast "Bless"
  103. waitfortarget 3000
  104. target! 'self'
  105. pause 150
  106. endif
  107. if @findtype 0xfc7 1126 'backpack'
  108. if counttype 0xf8c 0 'backpack' > 3
  109. if not timerexists 'Fire Horn Timer'
  110. createtimer 'Fire Horn Timer'
  111. settimer 'Fire Horn Timer' 5000
  112. elseif timer 'Fire Horn Timer' > 5000 and @inrange 'enemy' 2
  113. useobject 'found'
  114. waitfortarget 3000
  115. target! 'enemy'
  116. settimer 'Fire Horn Timer' 0
  117. endif
  118. endif
  119. endif
  120. //if not buffexists 'enemy of one'
  121. // cast 'enemy of one'
  122. // pause 1500
  123. //endif
  124. if @injournal 'you defend with Shield of Spikes!'
  125. replygump 0x4239a64f 1004
  126. clearjournal
  127. endif
  128. //if weight >= 400 or contents 'backpack' > 160
  129. // waitforcontext 0x507b956d 2 15000
  130. // while @findtype 0xeed '0' 'backpack'
  131. // useobject! 'found'
  132. // ignoreobject 'found'
  133. // endwhile
  134. //endif
  135. endwhile
  136. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement