Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. #debug 5
  2. #######################################
  3. # #
  4. # Edit these Variables before starting#
  5. # #
  6. #######################################
  7.  
  8. if "$charactername" = "Nebby" then {
  9. var container1 backpack
  10. var container2 carrying bag
  11. var container3 peddler's kit
  12. var dismantle thump
  13. var mode %1
  14. }
  15.  
  16.  
  17. #######################################
  18.  
  19. ###########
  20. action var multi_trap ON when is not yet fully disarmed
  21. action var multi_lock ON when discover another lock protecting
  22.  
  23. var multi_trap ON
  24. var multi_lock ON
  25. var container_check Container_check1
  26. #####################
  27. #main body of script#
  28. #####################
  29. Main:
  30.  
  31. gosub %container_check
  32.  
  33. Disarm_sub:
  34. gosub disarm_ID
  35. gosub disarm
  36. if "%multi_trap" = "ON" then goto disarm_sub
  37.  
  38. Lock_sub:
  39. gosub pick_ID
  40. gosub pick_anal
  41. if "%multi_lock" = "ON" then goto lock_sub
  42.  
  43. Loot_sub:
  44. gosub loot
  45. gosub dismantle
  46. goto main
  47.  
  48. ####################
  49. #Container checking#
  50. ####################
  51.  
  52. Container_check1:
  53. var container_check Container_check1
  54. var current_container %container1
  55. matchre get_For_Disarm (coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box)
  56. match container_Check2 Encumbrance
  57. put rummage my %container1;enc
  58. matchwait
  59.  
  60. container_Check2:
  61. var container_check Container_check2
  62. var current_container %container2
  63. matchre get_For_Disarm (coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box)
  64. match container_Check3 Encumbrance
  65. put look in my %container2;enc
  66. matchwait
  67.  
  68. container_Check3:
  69. var container_check Container_check3
  70. var current_container %container3
  71. matchre get_For_Disarm (coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box)
  72. match done Encumbrance
  73. put look in my %container3;enc
  74. matchwait
  75.  
  76. get_For_Disarm:
  77. var disarmit $1
  78. get_Box:
  79. var LAST get_Box
  80. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  81. matchre return You get|You are already
  82. put get %disarmit from my %current_container
  83. matchwait
  84.  
  85.  
  86. #############################
  87. #Disarming section of Script#
  88. #############################
  89.  
  90. Disarmmain:
  91.  
  92. disarm_ID:
  93. var LAST disarm_ID
  94. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  95. match disarm_ID fails to reveal to you
  96. matchre return You guess it is already disarmed|Surely any fool|Even your memory can not be that short|Roundtime|Somebody has already located
  97. #matchre return coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box
  98. put disarm ID
  99. matchwait
  100.  
  101. disarm:
  102. var multi_trap OFF
  103.  
  104. disarmIt_Cont:
  105. var LAST disarmIt_Cont
  106. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  107. matchre return You are certain the %disarmit is not trapped|Roundtime|You guess it is already disarmed|DISARM HELP for syntax help
  108. matchre disarmIt_Cont fumbling fails to disarm|This is not likely to be a good thing|unable to make any progress
  109. put disarm %mode
  110. matchwait
  111.  
  112.  
  113.  
  114. ###########################
  115. #Picking section of script#
  116. ###########################
  117.  
  118. Pickmain:
  119.  
  120. pick_ID:
  121. var LAST pick_ID
  122. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  123. matchre disarm_ID However,
  124. matchre pick_ID fails to teach you anything about the lock guarding it|just broke
  125. matchre return Somebody has already|not even locked|Roundtime
  126. put pick ID
  127. matchwait
  128.  
  129. pick_anal:
  130. var multi_lock OFF
  131. var LAST pick_anal
  132. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  133. matchre pick_Cont Roundtime|has already helpfully been analyzed|not even locked
  134. put pick anal
  135. matchwait
  136.  
  137. pick_Cont:
  138. var LAST pick_Cont
  139. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  140. match pick_cont You are unable to make
  141. matchre return With a soft click|not even locked|Roundtime
  142. put pick quick
  143. matchwait
  144.  
  145.  
  146. ####################################
  147. #Loot & Dismantle section of script#
  148. ####################################
  149.  
  150. Lootmain:
  151.  
  152. Loot:
  153. open_Box:
  154. var LAST open_Box
  155. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  156. match fill_gem_pouch open
  157. put open my %disarmit
  158. matchwait
  159.  
  160. fill_Gem_Pouch:
  161. var LAST fill_Gem_Pouch
  162. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  163. matchre get_coin You take|any gems|anything else|You open your|You fill
  164. put fill my gem pouch with my %disarmit
  165. matchwait
  166.  
  167. get_Coin:
  168. var LAST get_Coin
  169. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  170. matchre get_Coin You pick up
  171. match return What were you
  172. put get coin from my %disarmit
  173. matchwait
  174.  
  175. Dismantle:
  176. var LAST dismantle
  177. matchre PAUSE ^\.\.\.wait|^Sorry, you may only type
  178. match return Roundtime
  179. match dismantle next 15 seconds.
  180. put disman my %disarmit %dismantle
  181. matchwait
  182.  
  183. ######################
  184.  
  185. return:
  186. return
  187.  
  188. pause:
  189. pause
  190. goto %LAST
  191. done:
  192. pause 1
  193. put glance
  194. exit
  195.  
  196. #######################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement