Dwarvenstarr

Untitled

Jan 12th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.44 KB | None | 0 0
  1.  
  2.  
  3.  
  4. rerun:
  5. put #window remove XFavors
  6. pause 0.1
  7. put #window add XFavors
  8. put #clear XFavors
  9. put #echo >XFavors ** Welcome to XFavors. **
  10. put #echo >XFavors
  11. put #echo >XFavors ** Please Click Your Selection. **
  12. put #echo >XFavors
  13. put #link >XFavors {Kertigen} {#parse set Kertigen God}
  14. put #link >XFavors {Hodierna} {#parse set Hodierna God}
  15. put #link >XFavors {Meraud} {#parse set Meraud God}
  16. put #link >XFavors {Damaris} {#parse set Damaris God}
  17. put #link >XFavors {Everild} {#parse set Everild God}
  18. put #link >XFavors {Truffenyi} {#parse set Truffenyi God}
  19. put #link >XFavors {Hav'roth} {#parse set Hav'roth God}
  20. put #link >XFavors {Eluned} {#parse set Eluned God}
  21. put #link >XFavors {Glythtide} {#parse set Glythtide God}
  22. put #link >XFavors {Tamsine} {#parse set Tamsine God}
  23. put #link >XFavors {Faenella} {#parse set Faenella God}
  24. put #link >XFavors {Chadatru} {#parse set Chadatru God}
  25. put #link >XFavors {Urrem'tier} {#parse set Urrem'tier God}
  26. waitforre set (Kertigen|Hodierna|Meraud|Damaris|Everild|Truffenyi|Hav'roth|Eluned|Glythtide|Tamsine|Faenella|Chadatru|Urrem'tier) God
  27. setvariable god $1
  28. put #clear XFavors
  29. put #echo >XFavors ** Please Click Your Selection. **
  30. put #echo >XFavors
  31. put #link >XFavors {Get One Favor From %god} {#parse set 1 favors}
  32. put #link >XFavors {Get Two Favors From %god} {#parse set 2 favors}
  33. put #link >XFavors {Get Three Favors From %god} {#parse set 3 favors}
  34. put #link >XFavors {Get Four Favors From %god} {#parse set 4 favors}
  35. put #link >XFavors {Get Five Favors From %god} {#parse set 5 favors}
  36. put #link >XFavors {Get Six Favors From %god} {#parse set 6 favors}
  37. put #link >XFavors {Get Seven Favors From %god} {#parse set 7 favors}
  38. put #link >XFavors {Get Eight Favors From %god} {#parse set 8 favors}
  39. put #link >XFavors {Get Nine Favors From %god} {#parse set 9 favors}
  40. put #link >XFavors {Get Ten Favors From %god} {#parse set 10 favors}
  41. waitforre set (\d+) favors
  42. setvariable quantity $1
  43. put #clear XFavors
  44. put #echo >XFavors ** You have chosen to get %quantity favors from %god. **
  45. put #echo >XFavors ** Is this correct? **
  46. put #echo >XFavors
  47. put #link >XFavors {Yes} {#parse set correctly}
  48. put #link >XFavors {No} {#parse set incorrectly)
  49. match rerun set incorrectly
  50. match gogetem set correctly
  51. matchwait
  52. gogetem:
  53. put #clear XFavors
  54. put #echo >XFavors ** Getting %quantity favors from %god. **
  55. put #echo >XFavors
  56. pause 1
  57. put #window remove XFavors
  58. setvariable favorsgot 0
  59. setvariable display 1
  60. if "$lefthand" != "Empty" then put stow left
  61. if "$righthand" != "Empty" then put stow right
  62.  
  63. favorloop:
  64. pause 0.5
  65. put get my %god orb
  66. matchre already-got (You get|already holding)
  67. matchre not-already (could not find|What were you)
  68. matchwait
  69. not-already:
  70. gosub display Traveling...
  71. gosub move w gate
  72. gosub move favors
  73. goto pray
  74.  
  75.  
  76. pray.p:
  77. pause 0.5
  78. pray:
  79. gosub display Praying...
  80. put pray
  81. match pray.p type ahead
  82. match pray.p ...wait
  83. matchre pray (You feel a sense of peace settle over you|You close your eyes and pray|As you continue to pray, another sound presents itself)
  84. match pray.d prepare to prove thy worthiness
  85. matchwait
  86. pray.d:
  87. put say %god
  88. waitfor rise and seek your favor
  89. put stand
  90. match puzzle-start you are enveloped in a bright flash of light
  91. match pray You stand back up
  92. matchwait
  93. puzzle-start:
  94. gosub display Getting Orb...
  95. put get %god orb on altar
  96. waitforre You get .* atop an altar made of gleaming alabaster trimmed with onyx
  97. setvariable next-action go arch
  98. goto puzzles
  99.  
  100. puzzles.p:
  101. pause 0.5
  102. puzzles:
  103. gosub display Solving Puzzles...
  104. put %next-action
  105. match puzzles.p type ahead
  106. match puzzles.p ...wait
  107. matchre figure-puzzle (some tinders|water jug|small sponge|ancient window|tiny bubbling pool under some mintberry bushes|hedges of oleander and nutflower)
  108. matchre check-puzzle (difficult to go through the door from the bottom|You cannot go through a closed window)
  109. matchwait
  110. check-puzzle:
  111. setvariable next-action look
  112. goto puzzles
  113. figure-puzzle:
  114. setvariable temp $0
  115. if "%temp" = "hedges of oleander and nutflower" then gosub verb get oleander
  116. if "%temp" = "some tinders" then gosub verb light candle
  117. if "%temp" = "water jug" then gosub verb pour jug
  118. if "%temp" = "small sponge" then gosub verb clean altar
  119. if "%temp" = "ancient window" then gosub verb open window
  120. if "%temp" = "some tinders" then setvariable next-action go stair;go door
  121. if "%temp" = "water jug" then setvariable next-action go stair;go door
  122. if "%temp" = "small sponge" then setvariable next-action go stair;go door
  123. if "%temp" = "ancient window" then setvariable next-action go window
  124. if "%temp" = "hedges of oleander and nutflower" then setvariable next-action go tree
  125. if "%temp" = "tiny bubbling pool under some mintberry bushes" then goto got-orb
  126. goto puzzles
  127.  
  128. verb:
  129. setvariable verb $0
  130. goto verb-enact
  131. verb.p:
  132. pause 0.5
  133. verb-enact:
  134. put %verb
  135. match verb.p type ahead
  136. match verb.p ...wait
  137. matchre verb.d (You gingerly take the earthen jug|You have already filled the font|You pick up the sponge and proceed|You have already cleaned the altar|You reach into the bucket and remove a tinder|swift breeze moves into the room|That is already open|You carefully pick some of the|You stand)
  138. matchre verb.p (Judging the thickness of the pain|Shaking the frame of the glass once more)
  139. matchwait
  140. verb.d:
  141. return
  142. got-orb:
  143. gosub display Traveling...
  144. gosub move w gate
  145. already-got:
  146. gosub move temple
  147. gosub display Selecting Room...
  148. random 1 5
  149. if %r = 1 then gosub move 9
  150. if %r = 2 then gosub move 8
  151. if %r = 3 then gosub move 20
  152. if %r = 4 then gosub move 19
  153. if %r = 5 then gosub move 22
  154. collect.reset:
  155. gosub display Randomizing Repitions...
  156. random 6 10
  157. setvariable limit %r
  158. setvariable tracker 1
  159. collect.p:
  160. pause 0.5
  161. collect:
  162. gosub display Collecting %tracker of %limit ...
  163. if $standing = 0 then gosub verb stand
  164. put collect rock
  165. match collect.p type ahead
  166. match collect.p ...wait
  167. match collect.d Roundtime
  168. matchwait
  169. collect.d:
  170. goto kick
  171. kick.p:
  172. pause 0.5
  173. kick:
  174. put kick pile
  175. match kick.p type ahead
  176. match kick.p ...wait
  177. match kick.d I could not find what
  178. match kick.d You take a step back and run
  179. matchwait
  180. kick.d:
  181. math tracker add 1
  182. if %tracker < %limit then goto collect
  183. gosub display Filling Orb...
  184. put hug %god orb
  185. matchre collect.reset (your sacrifice is not yet fully prepared|you are lacking in the type of sacrifice)
  186. match orb-altar You sense that your sacrifice is properly prepared
  187. matchwait
  188. orb-altar:
  189. gosub display Traveling...
  190. gosub move 2
  191. gosub display Placing Orb on Altar
  192. pause 0.5
  193. put go door;put my %god orb on altar
  194. waitfor you feel somehow changed
  195. move go door
  196. move south
  197. move go gate
  198. gosub display Thinking...
  199. math favorsgot add 1
  200. if %favorsgot < %quantity then goto favorloop
  201. gosub display All Done!
  202. move ne
  203. move go bank
  204. move go window
  205. echo . [ All Done! ]
  206. put #statusbar .
  207. exit
  208.  
  209. display:
  210. setvariable text $0
  211. if %display = 1 then put #statusbar Getting %quantity favors from %god. %favorsgot favors gained so far. --- [ %text ] --- If you like this script please send a tip to Gavinne@play.net via Paypal
  212. if %display = 2 then put #statusbar Getting %quantity favors from %god. %favorsgot favors gained so far. --- [ %text ] --- Or contact XLNOTHINGLX on AIM and ask about the awesome scripts we sell!
  213. math display add 1
  214. if %display > 2 then setvariable display 1
  215. return
  216.  
  217.  
  218.  
  219.  
  220. goto move.end
  221. move.retry:
  222. math move.retry add 1
  223. if %move.retry > 3 then goto move.fail
  224. echo ***
  225. echo *** Retrying move to $1 $2 in %move.retry second(s).
  226. echo ***
  227. pause %move.retry
  228. goto move.goto
  229. move:
  230. var move.skip 0
  231. var move.retry 0
  232. var move.fail 0
  233. var move.room $0
  234. move.goto:
  235. matchre move.return ^YOU HAVE ARRIVED
  236. matchre move.skip ^SHOP CLOSED
  237. matchre move.retry ^MOVE FAILED
  238. matchre move.fail ^DESTINATION NOT FOUND
  239. put #goto %move.room
  240. matchwait
  241. move.fail:
  242. var move.fail 1
  243. goto move.return
  244. move.skip:
  245. var move.skip 1
  246. move.return:
  247. return
  248. move.end:
Add Comment
Please, Sign In to add comment