Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.56 KB | None | 0 0
  1. pause $roundtime
  2.  
  3. #check for items
  4. debug 0
  5.  
  6. #season spring, summer, fall, winter, auto
  7. var season auto
  8.  
  9. var forceRoomAccuracy 0
  10.  
  11. # set to anything other than 0 to report error messages in logs when you blow up a sigil. Set to 0 to keep the log clean.
  12. var reporterrors 0
  13.  
  14. ## Remove sigils you don't want
  15. #var sigil.keep metamorphosis|integration|abolition|antipode|ascension|clarification|congruence|decay|evolution|induction|nurture|paradox|permutation|rarefaction|unity
  16. var sigil.keep KEEPNONE-MAPPING
  17.  
  18. var maxSigils 20
  19. counter set 0
  20. var sigilError 0
  21.  
  22. ####################################### DO NOT CHANGE BELOW THIS LINE ###############################
  23.  
  24. ## Usage ##
  25. if ("%1" = "help") then {
  26. put #echo blue Usage..............................................................................................................
  27. put #echo blue Use this command to harvest all sigils in the sigil.keep variable - up to a total sigil limit in maxSigils variable
  28. put #echo green .s sigilharvest
  29. put #echo blue Use this command to harvest number sigils of each type specified
  30. put #echo green .sigilharvest [sigils to keep] [number]
  31. put #echo blue Example............................................................................................................
  32. put #echo green put .sigilharvest "induction|rarefaction" 5
  33. put #echo green put .sigilharvest "rarefaction" 5
  34. put #echo blue ...................................................................................................................
  35. put #echo blue requires scrolls and a burin, sigil book optional
  36. put #echo blue parses SIGILHARVEST END when finished
  37. }
  38.  
  39. gosub setSeason
  40.  
  41. var searchForSpecificSigils 0
  42. if ("%1" <> "") then {
  43. var sigil.keep %1|any
  44. if ("%2" <> "") then {
  45. var maxSigils %2
  46. }
  47. var searchForSpecificSigils 1
  48. }
  49.  
  50.  
  51. Prep:
  52. counter set 0
  53. gosub get right burin
  54. gosub get left "blank scroll"
  55. gosub STATS.SETUP
  56. # gosub BuffUp
  57. #REMOVED: Collect more than a book allows -- # action goto END when sigil book looks completely full
  58. action send stow left when sigil book looks completely full
  59. action send stow left when You need a free hand to pick that up
  60. action var duplicateSigil 1 when Remnants of the sigil pattern linger, allowing for additional scribing
  61.  
  62.  
  63. if ("%searchForSpecificSigils" = "0") then goto SearchAllRooms
  64.  
  65. ############################# PARSE OUT ROOMS PER SIGIL #############
  66.  
  67. SpecificRoomSearch:
  68. #setup the variables for the outer while loop
  69. eval SpecificRoomSearch.sigilcount count("%sigil.keep","|")
  70. var SpecificRoomSearch.sigilPos 0
  71.  
  72. #search rooms for each sigil specified
  73. SpecificRoomSearch.Loop:
  74. # setup initial variables for inner while loop
  75. var SearchRooms 0
  76. var SpecificRoomSearch.roomPos 0
  77. eval SpecificRoomSearch.Loop.sigilName %sigil.keep(%SpecificRoomSearch.sigilPos)
  78.  
  79. # get the rooms to search for this zone - populates SearchRooms with return val - array of room IDs to search
  80. put #echo yellow SearchFor.%SpecificRoomSearch.Loop.sigilName
  81. gosub SearchFor.%SpecificRoomSearch.Loop.sigilName
  82. eval SpecificRoomSearch.roomCount count("%SearchRooms","|")
  83. put #echo count (%SpecificRoomSearch.roomCount) for rooms: %SearchRooms
  84.  
  85. if ((%SpecificRoomSearch.roomCount < 5) && ("%SearchRooms" <> "0")) then {
  86. put #echo yellow *** warning: low number of recorded rooms to search for sigil (%SpecificRoomSearch.Loop.sigilName) in this zone ($zoneid).
  87. put #echo yellow *** This may take a while. You may want to consider trying a different zone ***
  88. }
  89.  
  90. SpecificRoomSearch.search:
  91. if ("%SearchRooms" = "0") then {
  92. put #echo red ** NO ROOMS FOR ** %SpecificRoomSearch.Loop.sigilName in zone $zoneid
  93. goto SpecificRoomSearch.continue
  94. }
  95. if (%SpecificRoomSearch.roomPos <= %SpecificRoomSearch.roomCount) then {
  96. gosub gotoLocation %SearchRooms(%SpecificRoomSearch.roomPos)
  97. math SpecificRoomSearch.roomPos add 1
  98. goto SpecificRoomSearch.search
  99. } else {
  100. var SpecificRoomSearch.roomPos 0
  101. }
  102.  
  103. SpecificRoomSearch.continue:
  104. debug 0
  105. if ((%stats_%SpecificRoomSearch.Loop.sigilName_count < %maxSigils) && ("%SearchRooms" <> "0")) then {
  106. put #echo >Log red *********** RESTARTING SEARCH - Found %stats_%SpecificRoomSearch.Loop.sigilName_count of %maxSigils ********
  107. put app pou quick
  108. pause 1
  109. put per mana
  110. put per
  111. pause 1
  112. pause 1
  113. } else {
  114. math SpecificRoomSearch.sigilPos add 1
  115. }
  116. if (%SpecificRoomSearch.sigilPos < %SpecificRoomSearch.sigilcount) then goto SpecificRoomSearch.Loop
  117.  
  118.  
  119. goto END
  120.  
  121.  
  122.  
  123. ################################# ROOMS ##############################
  124.  
  125.  
  126. SearchAllRooms:
  127. put #echo >ScriptLog searching all rooms in sigilharvest - no specific sigils defined
  128. if ($zoneid = 1) then {
  129. ## Update to be the room IDs to search
  130. if ("$guild" = "Trader") then {
  131. gosub gotoLocationBetween 80 120
  132. }
  133. # gosub gotoLocationBetween 10 25
  134. gosub gotoLocationBetween 1 250
  135. }
  136.  
  137. if ($zoneid = 7) then {
  138. ## Update to be the room IDs to search
  139. # gosub gotoLocationBetween 312 385
  140. # gosub gotoLocationBetween 60 205
  141. gosub gotoLocationBetween 1 7
  142. gosub gotoLocationBetween 64 116
  143. gosub gotoLocationBetween 168 175
  144. gosub gotoLocationBetween 146 175
  145. gosub gotoLocationBetween 130 145
  146. gosub gotoLocationBetween 535 555
  147. gosub gotoLocationBetween 270 278
  148. gosub gotoLocationBetween 482 499
  149. gosub gotoLocationBetween 388 393
  150. gosub gotoLocationBetween 645 667
  151. gosub gotoLocationBetween 774 780
  152. gosub gotoLocationBetween 774 786
  153. gosub gotoLocationBetween 209 215
  154. }
  155.  
  156. if ($zoneid = 123) then {
  157. ## Update to be the room IDs to search
  158. gosub gotoLocationBetween 1 45
  159. gosub gotoLocationBetween 257 263
  160. gosub gotoLocationBetween 158 173
  161. gosub gotoLocationBetween 46 64
  162. gosub gotoLocationBetween 83 89
  163. gosub gotoLocationBetween 125 145
  164.  
  165. }
  166.  
  167. if ($zoneid = 116) then {
  168. ## Update to be the room IDs to search
  169. gosub gotoLocationBetween 1 2
  170. gosub gotoLocationBetween 4 216
  171. gosub gotoLocationBetween 218 283
  172. }
  173.  
  174. if ($zoneid = 6) then {
  175. ## Update to be the room IDs to search
  176. gosub gotoLocationBetween 93 97
  177. gosub gotoLocationBetween 108 113
  178. gosub gotoLocationBetween 99 105
  179. }
  180.  
  181. if ($zoneid = 4) then {
  182. ## Update to be the room IDs to search
  183. if ("$guild" = "Trader") then {
  184. gosub gotoLocationBetween 407 415
  185. } else {
  186. gosub gotoLocationBetween 405 441
  187. gosub gotoLocationBetween 88 95
  188. }
  189. }
  190.  
  191. if ($zoneid = 67) then {
  192. ## Update to be the room IDs to search
  193. gosub gotoLocationBetween 1 140
  194. }
  195.  
  196. if ($zoneid = 69) then {
  197. ## Update to be the room IDs to search
  198. gosub gotoLocationBetween 385 395
  199. gosub gotoLocationBetween 2 58
  200. gosub gotoLocationBetween 226 234
  201. gosub gotoLocationBetween 243 257
  202. gosub gotoLocationBetween 171 209
  203. }
  204.  
  205.  
  206. if ($zoneid = 66) then {
  207. ## Update to be the room IDs to search
  208. gosub gotoLocationBetween 37 151
  209. gosub gotoLocationBetween 236 254
  210. gosub gotoLocationBetween 637 641
  211. gosub gotoLocationBetween 256 279
  212.  
  213. }
  214.  
  215. if ($zoneid = 126) then {
  216. ## Update to be the room IDs to search
  217. gosub gotoLocationBetween 5 19
  218. put stow
  219. gosub gotoLocationBetween 82 102
  220.  
  221. }
  222.  
  223. if ("$zoneid" = "34a") then {
  224. ## Update to be the room IDs to search
  225. gosub gotoLocationBetween 1 46
  226. gosub gotoLocationBetween 63 133
  227. }
  228.  
  229. exit
  230. ################################# ROOMS - SPECIFIC SEARCH ##############################
  231.  
  232.  
  233. SearchFor.abolition:
  234. if ("%season" = "spring") then {
  235. if ($zoneid = 1) then var SearchRooms 46
  236. if ($zoneid = 4) then gosub SearchFor.noRoomsForSigil rarefaction "crossing or shard"
  237. if ($zoneid = 67) then var SearchRooms 105|111|112|113|117|152|153|161|197|202|203|21|231|24|27|302|32|33|39|46|49|57|60|61|62|69|71|72|82|84|87|8|92|93|9
  238. }
  239. if ("%season" = "summer") then {
  240. if ($zoneid = 116) then var SearchRooms 103|108|113|122|124|126|128|133|139|141|145|148|160|162|167|169|172|174|175|179|180|181|184|200|204|208|209|226|231|232|233|234|235|240|252|257|258|260|92|95
  241. if ($zoneid = 1) then var SearchRooms 1|2|3|4|5|7|19|20|25|26|29|30|31|37|40|41|42|44|45|47|50|52|54|58|59|60|61|62|65|69|78|79|80|81|82|83|84|86|87|89|90|91|92|93|98|99|100|102|103|107|108|109|110|111|117|118|119|121|126|127|128|129|131|132|134|135|136|137|138|139|142|144|146|150|153|155|156|157|159|162|164|166|168|169
  242. if ($zoneid = 4) then var SearchRooms 91|173
  243. if ($zoneid = 7) then var SearchRooms 4|6|64|66|67|75|78|79|81|92|93|95|97|100|104|105|106|112|146|337|341|344|345|346
  244. if ($zoneid = 13) then var SearchRooms 2|20|70
  245. }
  246. if ("%season" = "fall") then {
  247. if ($zoneid = 1) then var SearchRooms 27|35|46|56|57|72|75
  248. }
  249. return
  250.  
  251. SearchFor.antipode:
  252. if ("%season" = "spring") then {
  253. gosub SearchFor.noRoomsForSigil ascension "NO KNOWN SIGILS: ANTIPODE (Spring-before fix)"
  254. }
  255. if ("%season" = "summer") then {
  256. if ($zoneid = 116) then var SearchRooms 100|102|104|105|106|107|109|111|115|117|118|119|123|132|134|137|138|143|147|149|150|151|152|154|155|158|159|164|166|206|210|213|220|221|224|228|250|251|93|94|96|99
  257. if ($zoneid = 1) then var SearchRooms 27|35|46|51|56|57|72|75|77|95|112|114|123|124|147
  258. }
  259. if ("%season" = "fall") then {
  260. if ($zoneid = 1) then var SearchRooms 6|11|12|13|16|22|32|48|53|55|64|66|73
  261. }
  262.  
  263. return
  264.  
  265. SearchFor.ascension:
  266. if ("%season" = "spring") then {
  267. if ($zoneid = 1) then var SearchRooms 10|49|9
  268. if ($zoneid = 4) then gosub SearchFor.noRoomsForSigil rarefaction "crossing or shard"
  269. if ($zoneid = 67) then var SearchRooms 122|138|156|165|174|183|210|213|220|222|229|233|235|236|241|249
  270. }
  271. if ("%season" = "summer") then {
  272. if ($zoneid = 7) then var SearchRooms 65|68|69|70|72|73|74|76|80|82|83|84|85|88|94|99|108|110|170|175|336|338|339|340|343
  273. if ($zoneid = 4) then var SearchRooms 1|89|94|405|408|413|425|430
  274. }
  275. if ("%season" = "fall") then {
  276. if ($zoneid = 1) then var SearchRooms 9|10|49
  277. }
  278. return
  279.  
  280.  
  281. SearchFor.clarification:
  282. if ("%season" = "spring") then {
  283. if ($zoneid = 4) then var SearchRooms 91|93
  284. if ($zoneid = 67) then var SearchRooms 104|141|166|172|176|187|211|223|224|225|226|247|248
  285. }
  286. if ("%season" = "summer") then {
  287. if ($zoneid = 116) then var SearchRooms 112|113|121|122|141|146|157|162|163|165|185|201|208|209|225|226|236|238|240|249|252|256|259|92
  288. if ($zoneid = 1) then var SearchRooms 8|14|15|17|21|23|24|28|30|33|34|36|38|39|40|43|63|67|68|70|71|74|76|85|97|99|104|105|106|113|115|117|125|138|140|142|148|149|151|154|158|160|161|165|166
  289. if ($zoneid = 7) then var SearchRooms 116|337|341|346
  290. }
  291. if ("%season" = "fall") then {
  292. if ($zoneid = 4) then var SearchRooms 91|93
  293. }
  294. return
  295.  
  296. SearchFor.congruence:
  297. if ("%season" = "spring") then {
  298. if ($zoneid = 1) then var SearchRooms 10|18|49|9
  299. if ($zoneid = 4) then var SearchRooms 405|406|408|409|412|413|417|420|422|425|427|430|434|435|437|440|88|89|90|92|93|94|95
  300. if ($zoneid = 67) then var SearchRooms 104|122|141|151|156|165|166|167|172|174|176|183|187|210|211|220|221|223|224|225|226|232|233|235|236|247|248|304|34
  301. }
  302. if ("%season" = "summer") then {
  303. if ($zoneid = 116) then var SearchRooms 102|106|109|111|119|132|137|147|150|151|152|158|178|206|210|213|220|221|224|250|251|93|94|99
  304. if ($zoneid = 1) then var SearchRooms 27|35|46|56|57|72|75|95|112|114|123|124|147
  305. }
  306. if ("%season" = "fall") then {
  307. if ($zoneid = 1) then var SearchRooms 9|10|18|49
  308. if ($zoneid = 4) then var SearchRooms 88|89|90|92|93|94|95|405|406|408|409|412|413|417|420|422|425|427|430|434|435|437|440
  309.  
  310. }
  311. return
  312.  
  313. SearchFor.decay:
  314. if ("%season" = "spring") then {
  315. if ($zoneid = 1) then gosub SearchFor.noRoomsForSigil decay "shard"
  316. if ($zoneid = 4) then gosub SearchFor.noRoomsForSigil decay "shard"
  317. if ($zoneid = 67) then var SearchRooms 105|111|112|113|117|13|152|153|161|169|192|193|195|197|19|1|200|202|203|206|207|21|231|24|27|302|31|32|33|36|37|39|41|46|49|56|57|60|61|62|66|67|69|6|71|72|73|74|82|83|84|86|87|8|92|93|9
  318. }
  319. if ("%season" = "summer") then {
  320. if ($zoneid = 116) then var SearchRooms 110|114|116|120|125|127|129|130|135|136|140|142|144|153|156|178|182|202|207|211|214|215|218|222|223|227|229|230|239|253|254|255|97|98
  321. if ($zoneid = 1) then var SearchRooms 6|11|12|13|16|22|32|48|53|55|64|66|73|88|94|96|101|116|120|130|133|143|152|163|167
  322. }
  323. if ("%season" = "fall") then {
  324. if ($zoneid = 1) then var SearchRooms 27|35|46|51|56|57|72|75|77
  325. }
  326. return
  327.  
  328. SearchFor.evolution:
  329. if ("%season" = "spring") then {
  330. if ($zoneid = 1) then var SearchRooms 10|18|49|9
  331. if ($zoneid = 4) then var SearchRooms 406|409|412|417|420|422|427|434|435|437|440|88|90|92|95
  332. if ($zoneid = 67) then var SearchRooms 180|181|184
  333. }
  334. if ("%season" = "summer") then {
  335. if ($zoneid = 116) then gosub SearchFor.noRoomsForSigil evolution "NO KNOWN SIGILS: EVOLUTION (SUMMER)"
  336. if ($zoneid = 7) then var SearchRooms 77
  337. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|421|423|424|426|428|429|431|432|433|436|438|439|441
  338. }
  339.  
  340. if ("%season" = "fall") then {
  341. if ($zoneid = 4) then var SearchRooms 88|90|92|95|406|409|412|417|420|422|427|434|435|437|440
  342. }
  343. return
  344.  
  345. SearchFor.induction:
  346. if ("%season" = "spring") then {
  347. if ($zoneid = 1) then var SearchRooms 91
  348. if ($zoneid = 4) then var SearchRooms 19|1|20|25|26|29|2|30|31|37|3|40|41|42|44|45|47|4|50|5|7|80|81|82|83|84|86|87
  349. if ($zoneid = 67) then var SearchRooms 100|103|106|107|108|109|110|116|118|121|125|128|137|138|154|155|157|158|159|170|171|173|175|185|186|188|18|194|196|199|205|209|20|213|216|217|218|219|222|227|228|229|240|241|242|243|245|246|249|250|251|25|26|28|305|306|30
  350. }
  351. if ("%season" = "summer") then {
  352. if ($zoneid = 116) then var SearchRooms 168|173
  353. if ($zoneid = 7) then var SearchRooms 77|96|102|109|114|168|173|342
  354. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  355. }
  356. if ("%season" = "fall") then {
  357. if ($zoneid = 1) then var SearchRooms 1|2|3|4|5|7|19|20|25|26|29|30|31|37|40|41|42|44|45|47|50|52|54|58|59|60|61|62|65|69|78
  358. if ($zoneid = 4) then var SearchRooms 91
  359.  
  360. }
  361. return
  362.  
  363. SearchFor.integration:
  364. if ("%season" = "spring") then {
  365. if ($zoneid = 1) then gosub SearchFor.noRoomsForSigil integration "shard"
  366. if ($zoneid = 4) then var SearchRooms 18|19|29|3|45|47|50
  367. if ($zoneid = 67) then var SearchRooms 100|103|109|137|151|155|171|175|185|188|205|209|216|217|218|219|242|243|245|246|251|304|34|95|97|98
  368. }
  369. if ("%season" = "summer") then {
  370. if ($zoneid = 116) then var SearchRooms 103|108|124|126|128|133|139|160|171|180|181|184|200|203|232|233|234|257|258|262|95
  371. if ($zoneid = 1) then var SearchRooms 1|2|4|5|7|20|25|26|31|37|41|42|44|52|54|58|59|60|61|69|78|79|80|81|82|83|84|86|87|92|98|100|103|108|109|110|111|118|119|126|128|131|132|134|139|146|153|155|156|157|162
  372. if ($zoneid = 7) then var SearchRooms 81|172
  373. if ($zoneid = 13) then var SearchRooms 70
  374. }
  375. if ("%season" = "fall") then {
  376. if ($zoneid = 1) then var SearchRooms 3|18|19|29|45|47|50|62|65
  377. }
  378.  
  379. return
  380.  
  381.  
  382. SearchFor.metamorphosis:
  383. if ("%season" = "spring") then {
  384. if ($zoneid = 1) then var SearchRooms 1|20|25|26|2|31|37|41|42|44|4|5|7|80|81|82|83|84|86|87
  385. if ($zoneid = 4) then gosub SearchFor.noRoomsForSigil metamorphosis "crossing or shard"
  386. if ($zoneid = 67) then var SearchRooms 106|107|108|110|116|121|125|128|154|157|158|159|170|173|178|182|186|194|196|199|208|20|212|214|215|240|250|30|45|48|51|52|58|59|80|88|89|91
  387. }
  388. if ("%season" = "summer") then {
  389. if ($zoneid = 116) then var SearchRooms 131|145|148|161|167|174|175|179|197|204|212|231|235
  390. if ($zoneid = 1) then var SearchRooms 3|18|19|29|45|47|50|62|65|89|90|91|93|102|107|121|127|129|135|136|137|141|144|145|150|159|164|168|169
  391. if ($zoneid = 7) then var SearchRooms 4|95|97|100|112
  392. }
  393. if ("%season" = "fall") then {
  394. if ($zoneid = 1) then var SearchRooms 1|2|4|5|7|20|25|26|31|37|41|42|44|52|54|58|59|60|61|69
  395. }
  396.  
  397. return
  398.  
  399. SearchFor.nurture:
  400.  
  401. if ("%season" = "spring") then {
  402. if ($zoneid = 1) then gosub SearchFor.noRoomsForSigil nurture "west gate"
  403. if ($zoneid = 4) then var SearchRooms 405|408|413|425|430|89|94
  404. if ($zoneid = 67) then var SearchRooms 167|221|232|239|34
  405. }
  406. if ("%season" = "summer") then {
  407. if ($zoneid = 116) then var SearchRooms 119|169|172|199|205
  408. if ($zoneid = 1) then var SearchRooms 9|10|49|122
  409. if ($zoneid = 7) then var SearchRooms 6|64|66|67|75|78|79|92|93|104|105|106
  410. }
  411. if ("%season" = "fall") then {
  412. if ($zoneid = 4) then var SearchRooms 89|94|405|408|413|425|430
  413. }
  414.  
  415. return
  416.  
  417. SearchFor.paradox:
  418.  
  419. if ("%season" = "spring") then {
  420. if ($zoneid = 1) then var SearchRooms 11|12|13|14|15|16|17|21|22|23|24|33|32|34|36|38
  421. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  422. if ($zoneid = 67) then var SearchRooms 101|102|10|114|115|118|119|11|120|123|124|126|127|12|14|15|164|168|16|177|17|189|18|190|191|198|201|204|227|228|22|234|237|238|23|25|26|28|29|2|303|305|35|38|3|40|42|43|44|47|4|50|53|54|55|5|63
  423. }
  424. if ("%season" = "summer") then {
  425. if ($zoneid = 116) then var SearchRooms 176|177|183|198|237|263
  426. if ($zoneid = 7) then var SearchRooms 2|3|5|7|71|86|87|89|90|91|98|101|103|107|111|113|115|146|171|174
  427. if ($zoneid = 4) then var SearchRooms 91|93
  428. }
  429. if ("%season" = "fall") then {
  430. if ($zoneid = 4) then var SearchRooms 8|14|15|17|21|23|24|28|30|33|34|36|38|39|40|43|63|67|68|70|71|74|76
  431. }
  432.  
  433. return
  434.  
  435. SearchFor.permutation:
  436.  
  437. if ("%season" = "spring") then {
  438. if ($zoneid = 1) then var SearchRooms 11|12|13|14|15|16|17|21|22|23|24|28|32|33|34|36|38|39|43|48|6|85|88|8
  439. if ($zoneid = 4) then gosub SearchFor.noRoomsForSigil permutation "crossing"
  440. if ($zoneid = 67) then var SearchRooms 101|102|10|114|115|119|11|120|123|124|126|127|12|13|14|15|164|168|169|16|177|178|17|182|189|190|191|192|193|195|198|19|1|200|201|204|206|207|208|212|214|215|22|234|237|238|23|29|2|303|31|35|36|37|38|40|41|43|44|4
  441. }
  442. if ("%season" = "summer") then {
  443. if ($zoneid = 116) then var SearchRooms 101|131|161|176|177|183|198|199|205|212|237|263
  444. if ($zoneid = 1) then var SearchRooms 9|10|18|49|122|141|145
  445. if ($zoneid = 7) then var SearchRooms 2|3|5|7|65|68|69|70|71|72|73|74|76|80|82|83|84|85|86|87|88|89|90|91|94|98|99|101|103|107|108|110|111|113|115|170|171|174|175|336|338|339|340|343
  446. if ($zoneid = 13) then var SearchRooms 138|140|147
  447. if ($zoneid = 4) then var SearchRooms 1|88|89|90|92|93|94|95|405|406|408|409|412|413|417|420|422|425|427|430|434|435|437|440
  448. }
  449. if ("%season" = "fall") then {
  450. if ($zoneid = 1) then var SearchRooms 6|8|11|12|13|14|15|16|17|21|22|23|24|28|32|33|34|36|38|39|43|48|51|53|55|63|64|66|67|68|70|71|73|74|76|77
  451. }
  452. return
  453.  
  454.  
  455. SearchFor.rarefaction:
  456.  
  457. if ("%season" = "spring") then {
  458. if ($zoneid = 1) then gosub SearchFor.noRoomsForSigil rarefaction "west gate"
  459. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  460. if ($zoneid = 67) then var SearchRooms 180|181|184|239
  461. }
  462. if ("%season" = "summer") then {
  463. if ($zoneid = 1) then var SearchRooms 6|8|11|12|13|14|15|16|17|21|22|23|24|28|32|33|34|36|38|39|43|48|51|53|55|63|64|66|67|68|70|71|73|74|76|77|85|88|94|96|97|101|104|105|106|113|115|116|120|125|130|133|140|143|148|149|151|152|154|158|160|161|163|165|167
  464. if ($zoneid = 7) then var SearchRooms 116|172
  465. if ($zoneid = 116) then var SearchRooms 100|104|105|107|110|112|114|115|116|117|118|120|121|123|125|127|129|130|134|135|136|138|140|142|143|144|146|149|153|154|155|156|157|159|163|164|165|166|171|182|185|201|202|203|207|211|214|215|218|219|222|223|225|227|228|229|230|236|238|239|241|249|253|254|255|256|259|262|96|97|98
  466. }
  467. if ("%season" = "fall") then {
  468. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  469. }
  470. return
  471.  
  472. SearchFor.unity:
  473.  
  474. if ("%season" = "spring") then {
  475. if ($zoneid = 1) then gosub SearchFor.noRoomsForSigil unity "west gate"
  476. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  477. if ($zoneid = 67) then gosub SearchFor.noRoomsForSigil unity "west gate"
  478. if ($zoneid = 69) then var SearchRooms 130|131|134|364|364|364|364|392|392|3|3
  479. }
  480. if ("%season" = "summer") then {
  481. if ($zoneid = 116) then var SearchRooms 101|168|173
  482. if ($zoneid = 7) then var SearchRooms 96|102|109|114|168|173|342|344|345
  483. if ($zoneid = 13) then var SearchRooms 138|140|147
  484. if ($zoneid = 4) then var SearchRooms 88|90|92|95|406|409|412|417|420|422|427|434|435|437|440
  485. }
  486. if ("%season" = "fall") then {
  487. if ($zoneid = 4) then var SearchRooms 407|410|411|414|415|416|418|419|421|423|424|426|428|429|431|432|433|436|438|439|441
  488. }
  489.  
  490. return
  491.  
  492.  
  493.  
  494. SearchFor.noRoomsForSigil:
  495. put #echo red *** No rooms for $1 sigil. Try the $2
  496. return
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503. EXIT:
  504. END:
  505.  
  506. gosub stats.report
  507. put #parse SIGILHARVEST END
  508. exit
  509.  
  510. get:
  511. var get.hand $1
  512. var get.item $2
  513. pause .05
  514. if $%get.handhandnoun <> "" then {
  515. put stow $1
  516. waitforre You|What
  517. }
  518. matchre RETURN You get|You pick|You are alrea|Your
  519. put get my %get.item
  520. matchwait 5
  521. put #echo >Log ERROR: Missing Resource in sigil harvest ($2) - left :$lefthand Right:$righthand
  522. goto END
  523.  
  524.  
  525.  
  526.  
  527. gotoLocationBetween:
  528. Math location_start set $1
  529. Math location_end set $2
  530. location_loop:
  531. gosub gotoLocation %location_start
  532. math location_start ADD 1
  533.  
  534. if (%location_start > %location_end) then return
  535. goto location_loop
  536. return
  537.  
  538. gotoLocation:
  539. var room $1
  540. MATH STATS.ROOMS ADD 1
  541. gotoLocationSet:
  542. match gotoLocationVerify YOU HAVE ARRIVED
  543. put #goto %room
  544. matchwait 15
  545. gotoLocationVerify:
  546. if (%forceRoomAccuracy = 1 and $roomid <> %room) then goto gotoLocationSet
  547.  
  548. var distort 0
  549. gosub Sigil.Search
  550.  
  551. goto RETURN
  552.  
  553. Sigil.SearchFailSafe:
  554. math sigilError add 1
  555. if (%sigilError > 5) then {
  556. put #echo >log red *** ERROR 5 errors in search - unexpected responses
  557. goto exit
  558. }
  559. Sigil.Search:
  560. pause 0.5
  561. if ("$righthandnoun" <> "burin") then put get burin
  562. matchre Sigil.Search \.\.\.wait
  563. matchre Sigil.MOVEPAUSE You try, but in the cramped confines
  564. matchre Sigil.ERROR You wisely decide against that
  565. matchre Sigil.EMPTY this area contains no traces of sigils
  566. matchre Sigil.Final.Found You recall having already identified the (\w+)
  567. matchre Sigil.Found After much scrutiny you are certain an* (\w+)
  568. matchre Sigil.Found you make out the details of an* (\w+)
  569. matchre Sigil.Found s eye you see the definition of an* (\w+)
  570. matchre Sigil.Found lighting you focus intently on an* lurking (\w+)
  571. matchre Sigil.Found surroundings reveal themselves as the origins of an* (\w+) sigil
  572. matchre Sigil.Found you find the designs of an* almost imperceptible (\w+) sigil
  573. matchre Sigil.Found reveal themselves as the origins of an* (\w+) sigil
  574. matchre Sigil.ERROR Something about the magic in the area stops you from
  575. matchre Sigil.ERROR The inky blankness
  576. matchre Sigil.Search Roundtime
  577. put per sigil
  578. matchwait 15
  579. #ECHO blue >UNEXPECTED RESPONSE
  580. goto Sigil.SearchFailSafe
  581.  
  582. Sigil.MOVEPAUSE:
  583. pause 60
  584. goto Sigil.Search
  585.  
  586. Sigil.Found:
  587. var doNotKeepLooking 0
  588. var foundSigil $1
  589. Sigil.Found.Interim:
  590. if ( (%stats_%foundSigil_count >= %maxSigils) && (%searchForSpecificSigils = 1) ) then {
  591. put #echo >ScriptLog skipping %foundSigil because already found %stats_%foundSigil.item_count of %maxSigils
  592. } else {
  593. if (!matchre("%foundSigil","%allSigils")) then {
  594. put #echo >ScriptLog found a new sigil $1
  595. goto Sigil.Improve
  596. }
  597. if matchre("%foundSigil","(%sigil.keep)") then {
  598. put #echo Scribing %foundSigil
  599. goto Sigil.Improve
  600. } else {
  601. put #echo blue SKIPPING %foundSigil
  602. put #echo >sigillog $zoneid-$roomid-%foundSigil
  603. }
  604. }
  605. if (%doNotKeepLooking = 1) then return
  606. goto Sigil.Search
  607.  
  608. Sigil.Final.Found:
  609. var doNotKeepLooking 1
  610. var foundSigil $1
  611. goto Sigil.Found.Interim
  612.  
  613. Sigil.Improve:
  614. MATH STATS.IMPROVEATTEMPTS ADD 1
  615. put .s improvesigil %foundSigil
  616. waitfor IMPROVE SIGIL FINISHED
  617.  
  618. goto Sigil.Scribe
  619.  
  620. Sigil.Scribe:
  621. var duplicateSigil 0
  622. pause .05
  623. gosub get left "blank scroll"
  624. if ("$righthandnoun" <> "burin") then gosub get right burin
  625. matchre Sigil.Scribe.Finished You carefully scribe the sigil of (\w+) onto
  626. matchre Sigil.Scribe.Finished You should probably seek knowledge of a sigil before trying to scribe one
  627. put scribe sigil
  628. matchwait 15
  629. put #echo >tLog *** ERROR IN SCRIBE: Failed to scribe - valid response ***
  630. goto END
  631.  
  632. Sigil.Scribe.Finished:
  633. var Sigil.Scribe.Finished.caught $1
  634. if ("%Sigil.Scribe.Finished.caught" = "") then {
  635. var Sigil.Scribe.Finished.caught ERROR
  636. } else {
  637. COUNTER add 1
  638. }
  639.  
  640. if ("%reporterrors" <> "0" or "%Sigil.Scribe.Finished.caught" <> "ERROR") then {
  641. put #echo >Sigillog Found $zoneid - $roomid - %Sigil.Scribe.Finished.caught
  642. }
  643. math stats_%Sigil.Scribe.Finished.caught_count add 1
  644. #put #echo >Scriptlog After: %stats_%Sigil.Scribe.Finished.caught_count
  645. put put sigil in my sigil book
  646. waitforre You|What|Put
  647. put stow scroll
  648. waitforre You|Stow
  649. pause 1
  650. if %c >= %maxSigils then goto END
  651.  
  652.  
  653.  
  654. if %duplicateSigil = 1 then {
  655. #put #echo >Sigillog $zoneid - $roomid - duplicate found
  656. goto Sigil.Scribe
  657. }
  658.  
  659. return
  660.  
  661. Sigil.EMPTY:
  662. pause .05
  663. #put #echo >ScriptLog $roomid was searched too recently
  664. return
  665.  
  666. Sigil.ERROR:
  667. put #echo >ScriptLog $roomid invalid sigil room
  668. return
  669.  
  670. STATS.SETUP:
  671. pause .05
  672. var allSigils metamorphosis|integration|abolition|antipode|ascension|clarification|congruence|decay|evolution|induction|nurture|paradox|permutation|rarefaction|unity|
  673. eval STATS.count count("%allSigils","|")
  674. gosub STATS.ZERO
  675. var STATS.ROOMS 0
  676. var STATS.IMPROVEATTEMPTS 0
  677. var STATS.TIME.START $gametime
  678. return
  679.  
  680. STATS.ZERO:
  681. pause .05
  682. var i 0
  683. STATS.ZERO.NEXT:
  684. var STATS.ZERO.NEXT.item %allSigils(%i)
  685. eval stats_%STATS.ZERO.NEXT.item_count 0
  686. math i add 1
  687. if %i < %STATS.count then goto STATS.ZERO.NEXT
  688. return
  689.  
  690. BuffUp:
  691. if "$guild" = "Trader" then {
  692. put prep meg 25
  693. put prep meg 25
  694. pause 20
  695. put charge prism 20
  696. pause 5
  697. put charge prism 20
  698. pause 5
  699. put invoke prism 40 spell
  700. pause 4
  701. put cast
  702. pause 1
  703. }
  704. if "$guild" = "Ranger" then {
  705. put prep WS 49
  706. pause 20
  707. put per
  708. pause 5
  709. put hunt
  710. pause 10
  711. put cast
  712. pause 1
  713. }
  714. return
  715.  
  716. STATS.REPORT:
  717. pause .05
  718. var i 0
  719. put #echo >Log *** TOTAL SIGILS FOUND ***
  720. STATS.REPORT.NEXT:
  721. var STATS.REPORT.NEXT.item %allSigils(%i)
  722. eval STATS.REPORT.item stats_%STATS.REPORT.NEXT.item_count
  723. if (%%STATS.REPORT.item > 0) then {
  724. put #echo >Log %%STATS.REPORT.item %STATS.REPORT.NEXT.item
  725. }
  726. math i add 1
  727. if %i < %STATS.count then goto STATS.REPORT.NEXT
  728. put #echo >Log *** Rooms: %STATS.ROOMS
  729. put #echo >Log *** Improve Attempts: %STATS.IMPROVEATTEMPTS
  730.  
  731. var STATS.REPORT.ENDTIME $gametime
  732. math STATS.REPORT.ENDTIME SUBTRACT %STATS.TIME.START
  733. math STATS.REPORT.ENDTIME DIVIDE 60
  734. put #echo >Log *** TOTAL Time (m): %STATS.REPORT.ENDTIME
  735. put #echo >Log ****************************************
  736. return
  737.  
  738. RETURN:
  739. return
  740.  
  741.  
  742. ### Season Check ###
  743.  
  744. setSeason:
  745. pause .05
  746. if ("%season" <> "auto") then return
  747. put #echo green *** setting season. If this hangs, manually set the season variable or update the match table ***
  748.  
  749. matchre setSeason.Internal It is currently (\w+) and
  750. put time
  751. matchwait
  752.  
  753. setSeason.Internal:
  754. var season $1
  755. return
  756. #get sigil-scro
  757. #put sigil-scro in book You rearrange the book and
  758. # DON"T NEED - Match on roundtime check sigils# matchre Sigil.Search ^You clear your mind and begin|Back and forth you walk through|The sky holds your interest|Left and right you crane your|You scour the area looking for hints|You close your eyes|Whorls of dust
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement