Advertisement
kakel_anders

UOS - Kegmaker

Jan 21st, 2022
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. ////-Kegmaker-////
  2. //-By kakel_anders (Player - UOG:Demise)-//
  3. // Requires tinkering and Carpentry
  4. // Have atleast 1 tinkerkit in backpack at start
  5. // Have resourcecontainer with Boards, Ingots and Bottles
  6. // Win
  7. if not findalias 'kegresources'
  8. msg 'Where are resources?'
  9. promptalias 'kegresources'
  10. endif
  11. if not findalias 'kegdestination'
  12. msg 'Where should kegs go?'
  13. promptalias 'kegdestination'
  14. endif
  15. // Restock Ingots
  16. if @counttype 0x1bf2 '0' 'backpack' < 50
  17. movetype 0x1bf2 'kegresources' 'backpack' (0 0 0) 0 100
  18. pause 500
  19. endif
  20. if @counttype 0x1bf2 '0' 'kegresources' < 200
  21. headmsg 'Out of ingots in restock!' 34 'self'
  22. pause 1000
  23. headmsg 'Halting script!' 34 'self'
  24. stop
  25. endif
  26. // Restock planks
  27. if counttype 0x1bd7 '0' 'backpack' < 50
  28. movetype 0x1bd7 'kegresources' 'backpack' (0 0 0) 0 100
  29. pause 500
  30. endif
  31. if @counttype 0x1bd7 '0' 'kegresources' < 200
  32. headmsg 'Out of boards in restock!' 34 'self'
  33. pause 1000
  34. headmsg 'Halting script!' 34 'self'
  35. stop
  36. endif
  37. // Restock bottles
  38. if counttype 0xf0e '0' 'backpack' < 50
  39. movetype 0xf0e 'kegresources' 'backpack' (0 0 0) 0 10
  40. pause 500
  41. endif
  42. if @counttype 0xf0e '0' 'kegresources' < 200
  43. headmsg 'Out of boards in restock!' 34 'self'
  44. pause 1000
  45. headmsg 'Halting script!' 34 'self'
  46. stop
  47. endif
  48. // Keep the hammers comming!
  49. if @counttype 0x102a 'any' 'backpack' < 3 and skill 'tinkering' > 50
  50. for 5
  51. usetype '0x1eb8'
  52. pause 1000
  53. replygump 0x38920abd 8
  54. pause 500
  55. replygump 0x38920abd 79
  56. endfor
  57. // Keep tinkerkits comming!
  58. if @counttype 0x1eb8 'any' 'backpack' < 3 and skill 'tinkering' > 50
  59. for 5
  60. usetype '0x1eb8'
  61. pause 1000
  62. replygump 0x38920abd 8
  63. pause 500
  64. replygump 0x38920abd 23
  65. endfor
  66. // Make 3 barrelstaves
  67. for 3
  68. usetype 0x1034 'backpack'
  69. waitforgump 0x38920abd 15000
  70. replygump 0x38920abd 1
  71. waitforgump 0x38920abd 15000
  72. replygump 0x38920abd 2
  73. waitforgump 0x38920abd 15000
  74. pause 1000
  75. endfor
  76. // Make 2 barrel lids
  77. for 2
  78. usetype 0x1034 'backpack'
  79. waitforgump 0x38920abd 15000
  80. replygump 0x38920abd 1
  81. waitforgump 0x38920abd 15000
  82. replygump 0x38920abd 9
  83. waitforgump 0x38920abd 15000
  84. pause 1000
  85. endfor
  86. // Make 1 kegtap
  87. usetype 0x1eb8 'backpack'
  88. waitforgump 0x38920abd 15000
  89. replygump 0x38920abd 15
  90. waitforgump 0x38920abd 15000
  91. replygump 0x38920abd 16
  92. waitforgump 0x38920abd 15000
  93. pause 1000
  94. // Make 1 barrelhoop
  95. usetype 0x1eb8 'backpack'
  96. waitforgump 0x38920abd 15000
  97. replygump 0x38920abd 15
  98. waitforgump 0x38920abd 15000
  99. replygump 0x38920abd 37
  100. waitforgump 0x38920abd 15000
  101. pause 1000
  102. // Assemble keg
  103. usetype 0x1034 'backpack'
  104. waitforgump 0x38920abd 15000
  105. replygump 0x38920abd 15
  106. waitforgump 0x38920abd 15000
  107. replygump 0x38920abd 135
  108. waitforgump 0x38920abd 15000
  109. pause 1000
  110. // Assemble potionkeg
  111. usetype 0x1eb8 'backpack'
  112. waitforgump 0x38920abd 15000
  113. replygump 0x38920abd 43
  114. waitforgump 0x38920abd 15000
  115. replygump 0x38920abd 51
  116. waitforgump 0x38920abd 15000
  117. pause 1000
  118. // Move keg to container
  119. if findtype 0x1940 '0' 'backpack'
  120. movetype 0x1940 'backpack' 'kegdestination'
  121. endif
  122.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement