Advertisement
Dwarvenstarr

Untitled

Jan 12th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.92 KB | None | 0 0
  1. if_1 goto start
  2. echo Run as .thiefpop CONTAINER WITH BOXES
  3. echo Example : .thiefpop backpack
  4. exit
  5. start:
  6. put info
  7. waitforre Guild: *(\w+)
  8. setvariable guild $1
  9. var otherloot scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|map|kertig ingot|kertig bar|kertig tear|kertig fist|glaes fragment|glaes shard|glaes ingot|damite lump|damite ingot|damite bar|glaes bar|haralun lump|haralum ingot|haralun bar|animite bar|animite nugget|animite bar|tyrium bar|tyrium nugget|tyrium fragment|tyrium shard|tyrium ingot|silversteel bar|silversteel ingot|silversteel nugget|icesteel bar|icesteel nugget|icesteel ingot
  10. set-triggers:
  11. action instant setvariable traptype Sleeper;setvariable AOE 0 when Two sets of six pinholes on either side of the
  12. action instant setvariable traptype Bouncer;setvariable AOE 0 when Connected to the pin is a small shaft that runs downward into a shadow.
  13. action instant setvariable traptype Curse;setvariable AOE 0 when you notice a small glowing rune hidden
  14. action instant setvariable traptype Frog;setvariable AOE 0 when with a careful eye, you notice a lumpy green rune hidden inside the
  15. action instant setvariable traptype Laughing Gass;setvariable AOE 0 when tiny glass tube filled with a black gaseous substance of some sort and a tiny hammer|^That tiny vial filled with a black liquid
  16. action instant setvariable traptype Mana Drain;setvariable AOE 0 when The seal is covered in strange runes and a glass sphere is embedded within it.
  17. action instant setvariable traptype Mime;setvariable AOE 0 when A tiny bronze face, Fae in appearance, grins ridiculously from its place on the
  18. action instant setvariable traptype Shadowling;setvariable AOE 0 when with a careful eye, you notice a small black crystal deep in the shadows of the
  19. action instant setvariable traptype Acid;setvariable AOE 0 when you notice a tiny hole right next to the lock which looks to be a trap
  20. action instant setvariable traptype Focused Explosion;setvariable AOE 0 when glistening black square, surrounded by a tight ring
  21. action instant setvariable traptype Reaper;setvariable AOE 0 when crust-covered black scarab of some unidentifiable substance
  22. action instant setvariable traptype Crossbow Bolt;setvariable AOE 0 when concealing the points of several wickedly barbed crossbow
  23. action instant setvariable traptype Poisoned Crossbow Bolt;setvariable AOE 0 when concealing the points of several crossbow bolts glistening
  24. action instant setvariable traptype Room Explosion;setvariable AOE 1 when Right above the lock inside the keyhole, you see a tiny metal tube just poking out of a small wad of brown clay.
  25. action instant setvariable traptype Cyanide Dart;setvariable AOE 0 when The glint of silver from the tip of a dart
  26. action instant setvariable traptype Disease;setvariable AOE 0 when you see what appears to be a small, swollen animal bladder recessed inside
  27. action instant setvariable traptype Fire Ants;setvariable AOE 0 when bag twitches on occasion, leading you to believe the blade's presence likely to be a very bad
  28. action instant setvariable traptype Fleas;setvariable AOE 0 when black dots bounce inside, though the lack of transparency makes it impossible
  29. action instant setvariable traptype Poison Gas;setvariable AOE 1 when notice a vial of lime green liquid just under the
  30. action instant setvariable traptype Ball Lightning;setvariable AOE 0 when spy what appears to be a pulsating ball with some sort of metal lacing
  31. action instant setvariable traptype Naphtha Soaker;setvariable AOE 0 when also appears to be a liquid-filled bladder inside
  32. action instant setvariable traptype Naphtha Fireball;setvariable AOE 1 when to ignite a frighteningly large vial of
  33. action instant setvariable traptype Body Poison;setvariable AOE 0 when tiny needle with a greenish discoloration on its tip hidden next
  34. action instant setvariable traptype Nerve Poison;setvariable AOE 0 when tiny needle with a rust colored discoloration on its tip
  35. action instant setvariable traptype Hand Chopper;setvariable AOE 0 when you notice a glint of razor sharp steel hidden within a suspicious looking seam
  36. action instant setvariable traptype Shocker;setvariable AOE 0 when two silver studs right below the keyhole which look dangerously out of place
  37. action instant setvariable traptype Shrapnel;setvariable AOE 1 when packed tightly with a powder around the insides of the
  38. action instant setvariable traptype Katamba Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* deep ebony
  39. action instant setvariable traptype Xibar Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* bluish azure
  40. action instant setvariable traptype Yavash Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* bright crimson
  41. action instant setvariable danger 1 when manipulation caused something to shift
  42. action instant setvariable moretraps 1 when (not yet fully disarmed|not fully disarmed)
  43. var glancetrap 0
  44. action instant setvariable coins 1 when In the .* you see.*(copper|bronze|silver|platinum|gold) coin
  45. var box-array chest|box|strongbox|caddy|crate|trunk|skippet|casket|coffer
  46. eval BoxCount count("%box-array","|")
  47. math BoxCount add 1
  48. var boxtrack 0
  49. goto get-box
  50.  
  51. difficulty-triggers:
  52. action instant setvariable difficulty 1 when aged grandmother could defeat this trap
  53. action instant setvariable difficulty 2 when you could do it blindfolded
  54. action instant setvariable difficulty 3 when trivially constructed gadget which you can take down
  55. action instant setvariable difficulty 4 when will be a simple matter for you to
  56. action instant setvariable difficulty 5 when should not take long with your skills
  57. action instant setvariable difficulty 6 when with only minor troubles
  58. action instant setvariable difficulty 7 when think this .* is precisely at your skill level
  59. action instant setvariable difficulty 8 when you've got a good shot at
  60. action instant setvariable difficulty 9 when odds are against you
  61. action instant setvariable difficulty 10 when have some chance of being able to
  62. action instant setvariable difficulty 11 when would be a longshot
  63. action instant setvariable difficulty 12 when Prayer would be a good start for any attempt of yours at
  64. action instant setvariable difficulty 13 when have an amazingly minimal chance at
  65. action instant setvariable difficulty 14 when really don't have any chance at
  66. action instant setvariable difficulty 15 when probably have the same shot as a snowball does crossing
  67. action instant setvariable difficulty 16 when just jump off a cliff and save yourself the frustration
  68. action instant setvariable difficulty 17 when pitiful snowball
  69. return
  70. remove-difficulty:
  71. action remove aged grandmother could defeat this trap
  72. action remove you could do it blindfolded
  73. action remove trivially constructed gadget which you can take down
  74. action remove will be a simple matter for you to
  75. action remove should not take long with your skills
  76. action remove with only minor troubles
  77. action remove think this trap is precisely at your skill level
  78. action remove you've got a good shot at
  79. action remove odds are against you
  80. action remove have some chance of being able to
  81. action remove would be a longshot
  82. action remove Prayer would be a good start for any attempt of yours at
  83. action remove have an amazingly minimal chance at
  84. action remove really don't have any chance at
  85. action remove probably have the same shot as a snowball does crossing
  86. action remove just jump off a cliff and save yourself the frustration
  87. action remove pitiful snowball
  88. return
  89.  
  90. get-box:
  91. eval NextBox element("%box-array", %boxtrack)
  92. getem.p:
  93. pause 0.5
  94. getem:
  95. put get %NextBox in my %0
  96. match getem.p type ahead
  97. match getem.p ...wait
  98. match next-box could not find
  99. match next-box What were you
  100. match Didentify You get
  101. matchwait
  102. next-box:
  103. math boxtrack add 1
  104. if %boxtrack = %BoxCount then goto done
  105. goto get-box
  106.  
  107. Didentify.p:
  108. pause 0.5
  109. Didentify:
  110. var AOE 0
  111. var moon 0
  112. var difficulty 0
  113. var traptype Unknown
  114. if "%guild" = "Thief" then gosub glance-box
  115. if "%guild" = "Thief" then if %glancetrap = 0 then goto Pidentify
  116. put #statusbar Box Type : $righthandnoun - Trap Type : %traptype
  117. gosub difficulty-triggers
  118. put disarm my $righthandnoun id
  119. matchre Didentify.p (type ahead|\.\.\.wait)
  120. match disarm Somebody has already located and identified the current trap
  121. match disarm Roundtime
  122. matchwait
  123.  
  124. disarm.p:
  125. pause 0.5
  126. disarm:
  127. gosub remove-difficulty
  128. if %AOE = 1 then put #statusbar Box Type : $righthandnoun - Trap Type : %traptype [ AOE TRAP! ] - Difficulty : %difficulty
  129. if %AOE = 0 then put #statusbar Box Type : $righthandnoun - Trap Type : %traptype - Difficulty : %difficulty
  130. if %AOE = 1 then setvariable difficulty 11
  131. if "%traptype" = "Yavash Teleporter" then setvariable difficulty 11
  132. if "%traptype" = "Xibar Teleporter" then setvariable difficulty 11
  133. if "%traptype" = "Katamba Teleporter" then setvariable difficulty 11
  134. if %danger = 1 then var difficulty 17
  135. var danger 0
  136. if %difficulty < 4 then put disarm my $righthandnoun blind
  137. if %difficulty < 7 then if %difficulty > 3 then put disarm my $righthandnoun quick
  138. if %difficulty > 6 then if %difficulty < 11 then put disarm my $righthandnoun
  139. if %difficulty > 10 then put disarm my $righthandnoun careful
  140. var moretraps 0
  141. matchre disarm.p (type ahead|\.\.\.wait)
  142. match disarm-fail work with the trap for a while but are unable to make any progress
  143. match analyze Roundtime
  144. matchwait
  145.  
  146. disarm-fail:
  147. math difficulty add 1
  148. goto disarm
  149.  
  150.  
  151. analyze.p:
  152. pause 0.5
  153. analyze:
  154. if "%guild" != "Thief" then goto pick-check
  155. put disarm my $righthandnoun analyze
  156. matchre analyze.p (type ahead|\.\.\.wait)
  157. match analyze.p unable to determine a proper method of extracting
  158. match pick-check previous trap have already been completely harvested
  159. match pick-check possibly analyze
  160. matchre harvest (already analyzed this trap in preparation for harvesting|Roundtime)
  161. matchwait
  162.  
  163. harvest.p:
  164. pause 0.5
  165. harvest:
  166. put disarm my $righthandnoun harvest
  167. matchre harvest.p (type ahead|\.\.\.wait)
  168. match harvest.p You fumble
  169. matchre pick-check (Your inept fumbling|It appears that|mangled remnants|remnants of this|previous trap have already been completely harvested|will need to analyze)
  170. match pick-check Roundtime
  171. matchwait
  172.  
  173.  
  174. pick-check:
  175. gosub verb stow left
  176. if %moretraps = 1 then goto Didentify
  177. goto Pidentify
  178. glance-box.p:
  179. pause 0.5
  180. glance-box:
  181. put glance $righthandnoun
  182. matchre glance-box.p (type ahead|\.\.\.wait)
  183. matchre glance-trap looks like there are (\d+) trap
  184. matchre glance-trap looks like there is (\d+) trap
  185. match glance-notrap there are no traps left
  186. match glance-trap Roundtime
  187. matchwait
  188. glance-trap:
  189. var glancetrap 1
  190. return
  191. glance-notrap:
  192. var glancetrap 0
  193. return
  194.  
  195. Pidentify.p:
  196. pause 0.5
  197. Pidentify:
  198. var difficulty 0
  199. if "%guild" = "Thief" then gosub glance-box
  200. gosub difficulty-triggers
  201. put pick my $righthandnoun id
  202. matchre Pidentify.p (type ahead|\.\.\.wait)
  203. match pick Roundtime
  204. match pick Somebody has already inspected the current
  205. matchwait
  206.  
  207. pick.p:
  208. pause 0.5
  209. pick:
  210. gosub remove-difficulty
  211. if %difficulty < 4 then put pick my $righthandnoun blind
  212. if %difficulty < 7 then if %difficulty > 3 then put pick my $righthandnoun quick
  213. if %difficulty > 6 then if %difficulty < 11 then put pick my $righthandnoun
  214. if %difficulty > 10 then put pick my $righthandnoun careful
  215. var moretraps 0
  216. matchre disarm.p (type ahead|\.\.\.wait)
  217. match pick-fail unable to make any progress
  218. match Pidentify discover another lock protecting
  219. match check-open Roundtime
  220. matchwait
  221. pick-fail:
  222. math difficulty add 1
  223. goto pick
  224. check-open:
  225. var coins 0
  226. gosub verb open my $righthandnoun
  227. gosub verb fill my pouch with my $righthandnoun
  228. if %coins = 1 then gosub coins
  229. gosub verb dismantle my $righthandnoun
  230. pause 0.1
  231. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  232. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  233. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  234. if "%guild" = "Thief" then gosub verb fix my lockpick ring
  235. goto get-box
  236.  
  237. coins.p:
  238. pause 0.5
  239. coins:
  240. put get coin in my $righthandnoun
  241. match coins.p type ahead
  242. match coins.p ...wait
  243. match coins You pick up
  244. match coins.d could not find
  245. match coins.d What were you
  246. matchwait
  247. coins.d:
  248. return
  249.  
  250. verb:
  251. setvariable verb $0
  252. goto verb.a
  253. verb.p:
  254. pause 0.5
  255. verb.a:
  256. pause 0.1
  257. put %verb
  258. match verb.p type ahead
  259. match verb.p ...wait
  260. match verb.p can't do that while entangled in a web
  261. match verb.p perhaps try doing that again
  262. matchre verb.p You can not dismantle .* while there is something inside it
  263. matchre verb.d (look like it needs any|There aren't any|You open|You sit|You already have|You coil|You uncoil|You're already using|inherently stealthy endeavor|transaction that small isn't worth|You don't have that many|You hand your|You burst from hiding|DANCE|You untie and pull|You carefully thread|You see no thread|You are already|You drop|Swan|Human boy|You find a hole|You slide|You work|You loosen|You strap|You slip|You pull|That area is not bleeding|You take|could not find what|You strain, but cannot focus your mind|You attempt to relax your mind|You get|You put|STOW HELP|You push|think pushing that would have any effect|You move|You're already using the Sight|You have not recovered from your previous use|careful focus, you adjust your eyes to see in shadow as they|You close your eyes, drawing all your thoughts inward|You're not ready to do that again|was just recently mined by someone else|Roundtime|area has already been tended to|work carefully at tending your wound|The spell pattern collapses|You are unable to control|not damaged enough to warrant repair|cannot figure out how to do that|You're not ready to do that|Drink what|What were you referring|You eat|You drink|You stand|Your analysis has revealed no additional resources|You look around, but can't see any place to hide yourself|already hidden|You pick up|You cannot do that while|You turn|already stalking|You attach|You remove)
  264. matchwait
  265. verb.d:
  266. return
  267.  
  268. done:
  269. echo All Popped!
  270. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement