Advertisement
Gavinne

ThiefPop (thief box popping script)

Jan 27th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.66 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. 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
  7. set-triggers:
  8. action instant setvariable traptype Sleeper;setvariable AOE 0 when Two sets of six pinholes on either side of the
  9. action instant setvariable traptype Bouncer;setvariable AOE 0 when Connected to the pin is a small shaft that runs downward into a shadow.
  10. action instant setvariable traptype Curse;setvariable AOE 0 when you notice a small glowing rune hidden
  11. action instant setvariable traptype Frog;setvariable AOE 0 when with a careful eye, you notice a lumpy green rune hidden inside the
  12. 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
  13. 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.
  14. action instant setvariable traptype Mime;setvariable AOE 0 when A tiny bronze face, Fae in appearance, grins ridiculously from its place on the
  15. 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
  16. 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
  17. action instant setvariable traptype Focused Explosion;setvariable AOE 0 when glistening black square, surrounded by a tight ring
  18. action instant setvariable traptype Reaper;setvariable AOE 0 when crust-covered black scarab of some unidentifiable substance
  19. action instant setvariable traptype Crossbow Bolt;setvariable AOE 0 when concealing the points of several wickedly barbed crossbow
  20. action instant setvariable traptype Poisoned Crossbow Bolt;setvariable AOE 0 when concealing the points of several crossbow bolts glistening
  21. 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.
  22. action instant setvariable traptype Cyanide Dart;setvariable AOE 0 when The glint of silver from the tip of a dart
  23. action instant setvariable traptype Disease;setvariable AOE 0 when you see what appears to be a small, swollen animal bladder recessed inside
  24. 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
  25. action instant setvariable traptype Fleas;setvariable AOE 0 when black dots bounce inside, though the lack of transparency makes it impossible
  26. action instant setvariable traptype Poison Gas;setvariable AOE 1 when notice a vial of lime green liquid just under the
  27. action instant setvariable traptype Ball Lightning;setvariable AOE 0 when spy what appears to be a pulsating ball with some sort of metal lacing
  28. action instant setvariable traptype Naphtha Soaker;setvariable AOE 0 when also appears to be a liquid-filled bladder inside
  29. action instant setvariable traptype Naphtha Fireball;setvariable AOE 1 when to ignite a frighteningly large vial of
  30. action instant setvariable traptype Body Poison;setvariable AOE 0 when tiny needle with a greenish discoloration on its tip hidden next
  31. action instant setvariable traptype Nerve Poison;setvariable AOE 0 when tiny needle with a rust colored discoloration on its tip
  32. action instant setvariable traptype Hand Chopper;setvariable AOE 0 when you notice a glint of razor sharp steel hidden within a suspicious looking seam
  33. action instant setvariable traptype Shocker;setvariable AOE 0 when two silver studs right below the keyhole which look dangerously out of place
  34. action instant setvariable traptype Shrapnel;setvariable AOE 1 when packed tightly with a powder around the insides of the
  35. action instant setvariable traptype Katamba Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* deep ebony
  36. action instant setvariable traptype Xibar Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* bluish azure
  37. action instant setvariable traptype Yavash Teleporter;setvariable AOE 0 when thin metal circle that has been lacquered with a shade .* bright crimson
  38. action instant setvariable danger 1 when manipulation caused something to shift
  39. action instant setvariable moretraps 1 when not yet fully disarmed
  40. var glancetrap 0
  41. action instant setvariable coins 1 when In the .* you see.*(copper|bronze|silver|platinum|gold) coin
  42. var box-array chest|box|strongbox|caddy|crate|trunk|skippet|casket|coffer
  43. eval BoxCount count("%box-array","|")
  44. math BoxCount add 1
  45. var boxtrack 0
  46. goto get-box
  47.  
  48. difficulty-triggers:
  49. action instant setvariable difficulty 1 when aged grandmother could defeat this trap
  50. action instant setvariable difficulty 2 when you could do it blindfolded
  51. action instant setvariable difficulty 3 when trivially constructed gadget which you can take down
  52. action instant setvariable difficulty 4 when will be a simple matter for you to
  53. action instant setvariable difficulty 5 when should not take long with your skills
  54. action instant setvariable difficulty 6 when with only minor troubles
  55. action instant setvariable difficulty 7 when think this .* is precisely at your skill level
  56. action instant setvariable difficulty 8 when you've got a good shot at
  57. action instant setvariable difficulty 9 when odds are against you
  58. action instant setvariable difficulty 10 when have some chance of being able to
  59. action instant setvariable difficulty 11 when would be a longshot
  60. action instant setvariable difficulty 12 when Prayer would be a good start for any attempt of yours at
  61. action instant setvariable difficulty 13 when have an amazingly minimal chance at
  62. action instant setvariable difficulty 14 when really don't have any chance at
  63. action instant setvariable difficulty 15 when probably have the same shot as a snowball does crossing
  64. action instant setvariable difficulty 16 when just jump off a cliff and save yourself the frustration
  65. action instant setvariable difficulty 17 when pitiful snowball
  66. return
  67. remove-difficulty:
  68. action remove aged grandmother could defeat this trap
  69. action remove you could do it blindfolded
  70. action remove trivially constructed gadget which you can take down
  71. action remove will be a simple matter for you to
  72. action remove should not take long with your skills
  73. action remove with only minor troubles
  74. action remove think this trap is precisely at your skill level
  75. action remove you've got a good shot at
  76. action remove odds are against you
  77. action remove have some chance of being able to
  78. action remove would be a longshot
  79. action remove Prayer would be a good start for any attempt of yours at
  80. action remove have an amazingly minimal chance at
  81. action remove really don't have any chance at
  82. action remove probably have the same shot as a snowball does crossing
  83. action remove just jump off a cliff and save yourself the frustration
  84. action remove pitiful snowball
  85. return
  86.  
  87. get-box:
  88. eval NextBox element("%box-array", %boxtrack)
  89. getem.p:
  90. pause 0.5
  91. getem:
  92. put get %NextBox in my %0
  93. match getem.p type ahead
  94. match getem.p ...wait
  95. match next-box could not find
  96. match next-box What were you
  97. match Didentify You get
  98. matchwait
  99. next-box:
  100. math boxtrack add 1
  101. if %boxtrack = %BoxCount then goto done
  102. goto get-box
  103.  
  104. Didentify.p:
  105. pause 0.5
  106. Didentify:
  107. var AOE 0
  108. var moon 0
  109. var difficulty 0
  110. var traptype Unknown
  111. gosub glance-box
  112. if %glancetrap = 0 then goto Pidentify
  113. put #statusbar Box Type : $righthandnoun - Trap Type : %traptype
  114. gosub difficulty-triggers
  115. put disarm my $righthandnoun id
  116. matchre Didentify.p (type ahead|\.\.\.wait)
  117. match disarm Somebody has already located and identified the current trap
  118. match disarm Roundtime
  119. matchwait
  120.  
  121. disarm.p:
  122. pause 0.5
  123. disarm:
  124. gosub remove-difficulty
  125. if %AOE = 1 then put #statusbar Box Type : $righthandnoun - Trap Type : %traptype [ AOE TRAP! ] - Difficulty : %difficulty
  126. if %AOE = 0 then put #statusbar Box Type : $righthandnoun - Trap Type : %traptype - Difficulty : %difficulty
  127. if %AOE = 1 then setvariable difficulty 11
  128. if "%traptype" = "Yavash Teleporter" then setvariable difficulty 11
  129. if "%traptype" = "Xibar Teleporter" then setvariable difficulty 11
  130. if "%traptype" = "Katamba Teleporter" then setvariable difficulty 11
  131. if %danger = 1 then var difficulty 17
  132. var danger 0
  133. if %difficulty < 4 then put disarm my $righthandnoun blind
  134. if %difficulty < 7 then if %difficulty > 3 then put disarm my $righthandnoun quick
  135. if %difficulty > 6 then if %difficulty < 11 then put disarm my $righthandnoun
  136. if %difficulty > 10 then put disarm my $righthandnoun careful
  137. var moretraps 0
  138. matchre disarm.p (type ahead|\.\.\.wait)
  139. match disarm-fail work with the trap for a while but are unable to make any progress
  140. match analyze Roundtime
  141. matchwait
  142.  
  143. disarm-fail:
  144. math difficulty add 1
  145. goto disarm
  146.  
  147.  
  148. analyze.p:
  149. pause 0.5
  150. analyze:
  151. put disarm my $righthandnoun analyze
  152. matchre analyze.p (type ahead|\.\.\.wait)
  153. match analyze.p unable to determine a proper method of extracting
  154. match pick-check previous trap have already been completely harvested
  155. match pick-check possibly analyze
  156. matchre harvest (already analyzed this trap in preparation for harvesting|Roundtime)
  157. matchwait
  158.  
  159. harvest.p:
  160. pause 0.5
  161. harvest:
  162. put disarm my $righthandnoun harvest
  163. matchre harvest.p (type ahead|\.\.\.wait)
  164. match harvest.p You fumble
  165. 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)
  166. match pick-check Roundtime
  167. matchwait
  168.  
  169.  
  170. pick-check:
  171. gosub verb stow left
  172. if %moretraps = 1 then goto Didentify
  173. goto Pidentify
  174. glance-box.p:
  175. pause 0.5
  176. glance-box:
  177. put glance my $righthandnoun
  178. matchre glance-box.p (type ahead|\.\.\.wait)
  179. matchre glance-trap looks like there are (\d+) trap
  180. matchre glance-trap looks like there is (\d+) trap
  181. match glance-notrap there are no traps left
  182. matchwait
  183. glance-trap:
  184. var glancetrap 1
  185. return
  186. glance-notrap:
  187. var glancetrap 0
  188. return
  189.  
  190. Pidentify.p:
  191. pause 0.5
  192. Pidentify:
  193. var difficulty 0
  194. if "%guild" = "Thief" then gosub glance-box
  195. gosub difficulty-triggers
  196. put pick my $righthandnoun id
  197. matchre Pidentify.p (type ahead|\.\.\.wait)
  198. match pick Roundtime
  199. match pick Somebody has already inspected the current
  200. matchwait
  201.  
  202. pick.p:
  203. pause 0.5
  204. pick:
  205. gosub remove-difficulty
  206. if %difficulty < 4 then put pick my $righthandnoun blind
  207. if %difficulty < 7 then if %difficulty > 3 then put pick my $righthandnoun quick
  208. if %difficulty > 6 then if %difficulty < 11 then put pick my $righthandnoun
  209. if %difficulty > 10 then put pick my $righthandnoun careful
  210. var moretraps 0
  211. matchre disarm.p (type ahead|\.\.\.wait)
  212. match pick-fail unable to make any progress
  213. match Pidentify discover another lock protecting
  214. match check-open Roundtime
  215. matchwait
  216. pick-fail:
  217. math difficulty add 1
  218. goto pick
  219. check-open:
  220. var coins 0
  221. gosub verb open my $righthandnoun
  222. gosub verb fill my gem pouch with my $righthandnoun
  223. if %coins = 1 then gosub coins
  224. gosub verb dismantle my $righthandnoun thump
  225. pause 0.1
  226. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  227. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  228. if matchre("$roomobjs","%otherloot") then gosub verb stow $1
  229. gosub verb fix my lockpick ring
  230. goto get-box
  231.  
  232. coins.p:
  233. pause 0.5
  234. coins:
  235. put get coin in my $righthandnoun
  236. match coins.p type ahead
  237. match coins.p ...wait
  238. match coins You pick up
  239. match coins.d could not find
  240. match coins.d What were you
  241. matchwait
  242. coins.d:
  243. return
  244.  
  245. verb:
  246. setvariable verb $0
  247. goto verb.a
  248. verb.p:
  249. pause 0.5
  250. verb.a:
  251. pause 0.1
  252. put %verb
  253. match verb.p type ahead
  254. match verb.p ...wait
  255. match verb.p can't do that while entangled in a web
  256. match verb.p perhaps try doing that again
  257. matchre verb.p You can not dismantle .* while there is something inside it
  258. matchre verb.d (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)
  259. matchwait
  260. verb.d:
  261. return
  262.  
  263. done:
  264. echo All Popped!
  265. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement