Advertisement
Guest User

Untitled

a guest
May 25th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. /////////////////////////////////////////////
  2. // UO Steam Poisoning Trainer
  3. // for Outlands
  4. // by Jewele
  5. //
  6. // How to use?
  7. // -----------
  8. // 1) Start at bank
  9. // 2) Modify script for potion you want to use
  10. // 3) Have 1 kryss in your pack
  11. // 4) Have 1 bag in back with your poison kegs.
  12. // Use kegs appropriate to your skill!
  13. // 5) Have 1 Greater Cure keg in bank
  14. // 5) Have some bottles in your pack (5+)
  15. // 6) Run script
  16. //
  17. // Version 1.0
  18. // -----------
  19. // First release! yay!
  20. //
  21. // UOSTEAM COPY-PASTE BELOW THIS LINE
  22. /////////////////////////////////////////////
  23. sysmsg "Poisoning Script" 88
  24. sysmsg "Version 1.0" 88
  25. //
  26. // Open backpack
  27. //
  28. @useobject 'backpack'
  29. pause 1000
  30. //
  31. // Set alias'
  32. //
  33. if not findalias 'kegbag'
  34. sysmsg "Select bank bag with poison kegs, empty kegs will be placed here"
  35. promptalias 'kegbag'
  36. endif
  37. if not findalias 'cures'
  38. sysmsg "Select Cure keg in bank"
  39. promptalias 'cures'
  40. endif
  41. //
  42. // Open bank
  43. //
  44. msg "bank"
  45. pause 1000
  46. msg "bank"
  47. pause 1000
  48. //
  49. // Check for empty bottle if no poisons
  50. //
  51. if not @findtype 0xf0a 'any' 'backpack'
  52. if not @findtype 0xf0e 0 'backpack'
  53. headmsg "I need an empty bottle" 91
  54. stop
  55. endif
  56. endif
  57. @clearjournal
  58. //
  59. // Main loop
  60. //
  61. while not dead
  62. //
  63. // Check for a poison keg or transfer one
  64. //
  65. if not @findtype 0x1940 363 'backpack'
  66. movetype 0x1940 'kegbag' 'backpack' 0 0 0 363 1
  67. pause 2000
  68. endif
  69. //
  70. // Verify keg. Server save on restock may occur
  71. // so throw message, wait, and start again
  72. //
  73. if not @findtype 0x1940 363 'backpack'
  74. headmsg "I need a poison keg to continue!" 91
  75. pause 5000
  76. continue
  77. endif
  78. //
  79. // Move empty kegs back to bank
  80. //
  81. if @findtype 0x1940 0 'backpack'
  82. movetype 0x1940 'backpack' 'kegbag' 0 0 0 0 1
  83. pause 2000
  84. endif
  85. //
  86. // Use keg to fill poison bottle
  87. //
  88. usetype 0x1940 363 'backpack'
  89. pause 1000
  90. //
  91. // Check poison
  92. //
  93. if not @findtype 0xf0a 'any' 'backpack'
  94. headmsg "I need a poison potion!" 91
  95. pause 5000
  96. continue
  97. endif
  98. //
  99. // Check cures
  100. //
  101. settimer 'restock' 0
  102. while @counttype 0xf07 'any' 'backpack' < 3 and timer 'restock' < 10000
  103. @useobject 'cures'
  104. pause 2000
  105. endwhile
  106. //
  107. // Verify cures
  108. //
  109. if @counttype 0xf07 'any' 'backpack' < 3
  110. headmsg "I need more Cure potions!" 91
  111. pause 5000
  112. continue
  113. endif
  114. @clearjournal
  115. //
  116. // Poison
  117. //
  118. @findtype 0xf0a 'any' 'backpack'
  119. useskill 'Poisoning'
  120. waitfortarget 5000
  121. target! 'found'
  122. //
  123. // kryss
  124. //
  125. @findtype 0x1401 'any' 'backpack'
  126. waitfortarget 5000
  127. target! 'found'
  128. pause 2000
  129. //
  130. // Poisoned?
  131. //
  132. while poisoned
  133. headmsg 'Darnit!' 55
  134. usetype 0xf07 'any' 'backpack'
  135. pause 1000
  136. if not findtype 0xf07 'any' 'backpack'
  137. break
  138. endif
  139. endwhile
  140. //
  141. // Heal self
  142. //
  143. while diffhits > 20
  144. bandageself!
  145. pause 20000
  146. endwhile
  147. //
  148. // Skill cooldown
  149. //
  150. pause 2000
  151. msg 'guards'
  152. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement