Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. #author: darkcipher
  2. #author #2: Hazado
  3. #date: 8/26/16
  4. #version: 1.1
  5. #This script will search the sewers, bundle bloodscrip and stow items
  6. #pass it the container where you want stuff stowed, should be your default STOW container
  7. #
  8. #You need to have a booklet or jar in the stow container
  9. #
  10. #I would NOT run this unattended, but it's YOUR choice
  11. #Don't blame me if you get caught and all your bloodscrip confiscated
  12. #Will exit when the container is FULL
  13. #I don't feel like accounting for EVERY contingency, so, good luck
  14. #
  15. #fixed: should now properly stow bloodscrip at end of run
  16. #fixed: was only looking for gold booklets/jars, should work with any of the ones from the store
  17. #Need to fix, but probably won't: if the room shifts while you're about to move, will fail to move, do a manual move to get the script to go forward
  18. #
  19. ##I code because I enjoy it and I like to help people, if my work is not
  20. #appreciated, well, then, lots of luck writing your own scripts!
  21. #
  22. #Questions/issues? find me on PC as darkcipher or email me at lawandchaos@gmail.com
  23. #----------------------------------------------------------------------------------
  24. #Hazado added stuff below here
  25. #
  26. #It puts the bloodscrip in it's pouch, it does this whenever it's told. It puts the bloodscrip in it's pouch or else it gets the hose again.
  27. #
  28. #Streamlined a little bit more, so I has less looking in containers and messaging you dont really need to see.
  29. #DONT AFK SCRIPT, GMS DONT LIKE THAT!
  30.  
  31. scrippouch = nil
  32. tickets = nil
  33. container = variable[1]
  34. if(!container)
  35. echo ""
  36. echo ""
  37. echo ""
  38. echo "Usage: duskruin_sewer.lic <container>"
  39. echo ""
  40. echo "<container) should be your default stow container and must have an arena booklet or rat token jar"
  41. echo ""
  42. echo "Bloodscrip will be stored in your scrip pouch or <container> if no scrip pouch"
  43. echo ""
  44. echo "The script will exit when <container> is full!"
  45. echo ""
  46. echo ""
  47. exit
  48. end
  49.  
  50. loop {
  51. tickets = nil
  52. if GameObj["scrip pouch"]
  53. scrippouch = GameObj["scrip pouch"]
  54. end
  55. if GameObj[container].contents.nil?
  56. fput "look in my " + container
  57. end
  58. GameObj[container].contents.each{|s| if s.name =~ /booklet|rat token jar|voucher/; tickets = s.name;break;end;}
  59.  
  60. if(!tickets)
  61. echo "You have to have a booklet or jar for this to work, it needs to be in your " + container + "!"
  62. exit
  63. elsif(tickets =~ /booklet/)
  64. ticket_type = "booklet"
  65. elsif (tickets =~ /jar/)
  66. ticket_type = "jar"
  67. elsif (tickets =~ /voucher/)
  68. ticket_type = "voucher"
  69. else
  70. echo "No Booklets or Jars found in " + container + "!" + " Exiting!"
  71. exit
  72. end
  73.  
  74. if checkroom("Bloodriven Village, Sewer").nil?
  75. waitrt?
  76.  
  77. if checkroom "Cesspool"
  78. wait_while {checkstunned}
  79. waitrt?
  80. if(checkright "bloodscrip")
  81. if scrippouch.nil?
  82. fput "get my bloodscrip from my " + container
  83. fput "bundle"
  84. fput "put my bloodscrip in my " + container
  85. else
  86. fput "rummage my leather pouch"
  87. end
  88. else
  89. fput "stow all"
  90. end
  91.  
  92. until(checkstanding)
  93. waitrt?
  94. fput "stand"
  95. end
  96.  
  97. wait_until{checkstanding};
  98. waitrt?
  99. fput "stow all" if (!checkright.nil? and !checkleft.nil?)
  100. start_script "go2", ["23759"]
  101. else
  102. start_script "go2", ["23759"]
  103. end
  104. wait_until {checkroom "Bloodriven Village, Sewer Grate"}
  105.  
  106. fput "stow all" if (!checkright.nil? and !checkleft.nil?)
  107. fput "get my " + ticket_type + " from my " + container
  108. waitfor "You remove"
  109. fput "go grate"
  110. waitfor "accepts your"
  111. fput "put my " + ticket_type + " in my " + container
  112.  
  113. if !checkstanding
  114. waitrt?
  115. fput "stand"
  116. waitfor "You stand back up."
  117. end
  118. end
  119.  
  120. loop {
  121. if !checkstanding
  122. waitrt?
  123. fput "stand"
  124. waitfor "You stand back up."
  125. end
  126.  
  127. waitrt?
  128. walk
  129.  
  130. fput "search"
  131. found = waitfor "You search around and find", "You've recently searched", "As you begin to search the area, a wave of sewage", "You search around the area and find a small rat, but it scurries off before you can catch it!", "You pick them both up, claiming your new pet."
  132. waitrt?
  133. if(checkstunned)
  134. break
  135. end
  136. case found
  137. when /bloodscrip/
  138. if scrippouch.nil?
  139. fput "get my bloodscrip from my " + container
  140. fput "bundle"
  141. fput "put my bloodscrip in my " + container
  142. else
  143. fput "rummage my leather pouch"
  144. end
  145. next
  146. when /You search around and find|You pick them both up, claiming your new pet./
  147. fput "stow all"
  148. stowed = waitfor "won't fit in the", "You put"
  149. if stowed =~ /won't fit/
  150. echo ""
  151. echo "Container full! Exiting!"
  152. echo ""
  153. exit
  154. end
  155. next
  156. when /You've recently searched/
  157. next
  158. when /As you begin to search the area, a wave of sewage cascades into the area and carries you away!/
  159. waitrt?
  160. fput "stand"
  161. next
  162. when /You search around the area and find a small rat, but it scurries off before you can catch it!/
  163. waitrt?
  164. while !checkstanding
  165. waitrt?
  166. fput "stand"
  167. waitrt?
  168. end
  169. next
  170.  
  171. if(checkright "bloodscrip")
  172. if scrippouch.nil?
  173. fput "get my bloodscrip from my " + container
  174. fput "bundle"
  175. fput "put my bloodscrip in my " + container
  176. else
  177. fput "rummage my leather pouch"
  178. end
  179. else
  180. fput "stow all"
  181. end
  182.  
  183. if(checkstunned)
  184. break
  185. end
  186.  
  187. else
  188. echo ""
  189. echo "Something is wrong! Fix me!"
  190. echo ""
  191. exit
  192. end
  193. if checkstunned
  194. break
  195. end
  196. }
  197. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement