Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.15 KB | None | 0 0
  1. pause $roundtime
  2.  
  3. #check for items
  4. debug 0
  5.  
  6. ## Usage ##
  7. if ("%1" = "help") then {
  8. put #echo blue .sigilharvest [sigils to keep] [number(default 20)]
  9. put #echo blue Example:
  10. put #echo green put .sigilharvest "induction|rarefaction" 5
  11. put #echo blue requires scrolls and a burin, sigil book optional
  12. put #echo blue parses SIGILHARVEST END when finished
  13. }
  14.  
  15. var forceRoomAccuracy 0
  16.  
  17. ## Remove sigils you don't want
  18. #var sigil.keep (metamorphosis|integration|metamorphis|abolition|antipode|ascension|clarification|congruence|decay|evolution|induction|nurture|paradox|permutation|rarefaction|unity)
  19. var sigil.keep (antipode)
  20.  
  21. var maxSigils 20
  22. counter set 0
  23.  
  24.  
  25. if ("%1" <> "") then var sigil.keep (%1)
  26. if ("%1" <> "") then var sigil.keep (%1)
  27.  
  28.  
  29. Prep:
  30. counter set 0
  31. gosub get right burin
  32. gosub get left "blank scroll"
  33. gosub STATS.SETUP
  34. gosub BuffUp
  35. # action goto END when sigil book looks completely full
  36. action send stow left when sigil book looks completely full
  37. action send stow left when You need a free hand to pick that up
  38. action var duplicateSigil 1 when Remnants of the sigil pattern linger, allowing for additional scribing
  39.  
  40. ################################# ROOMS ##############################
  41.  
  42. if ($zoneid = 1) then {
  43. ## Update to be the room IDs to search
  44. if ("$guild" = "Trader") then {
  45. gosub gotoLocationBetween 80 120
  46. }
  47. # gosub gotoLocationBetween 10 25
  48. gosub gotoLocationBetween 1 250
  49. }
  50. if ($zoneid = 7) then {
  51. ## Update to be the room IDs to search
  52. gosub gotoLocationBetween 312 385
  53. # gosub gotoLocationBetween 60 124
  54. }
  55.  
  56. if ($zoneid = 6) then {
  57. ## Update to be the room IDs to search
  58. gosub gotoLocationBetween 93 97
  59. gosub gotoLocationBetween 108 113
  60. gosub gotoLocationBetween 99 105
  61. }
  62. if ($zoneid = 4) then {
  63. ## Update to be the room IDs to search
  64. if ("$guild" = "Trader") then {
  65. gosub gotoLocationBetween 407 415
  66. } else {
  67. gosub gotoLocationBetween 405 441
  68. gosub gotoLocationBetween 88 95
  69. }
  70. }
  71. if ($zoneid = 67) then {
  72. ## Update to be the room IDs to search
  73. gosub gotoLocationBetween 241 600
  74. gosub gotoLocationBetween 1 40
  75. gosub gotoLocationBetween 193 208
  76. gosub gotoLocationBetween 60 124
  77. gosub gotoLocationBetween 313 357
  78. }
  79. if ($zoneid = 69) then {
  80. ## Update to be the room IDs to search
  81. gosub gotoLocationBetween 385 395
  82. gosub gotoLocationBetween 2 58
  83. gosub gotoLocationBetween 226 234
  84. gosub gotoLocationBetween 243 257
  85. gosub gotoLocationBetween 171 209
  86. }
  87.  
  88. if ($zoneid = 66) then {
  89. ## Update to be the room IDs to search
  90. gosub gotoLocationBetween 37 151
  91. gosub gotoLocationBetween 236 254
  92. gosub gotoLocationBetween 637 641
  93. gosub gotoLocationBetween 256 279
  94.  
  95. }
  96.  
  97.  
  98. if ($zoneid = 126) then {
  99. ## Update to be the room IDs to search
  100. gosub gotoLocationBetween 5 19
  101. put stow
  102. gosub gotoLocationBetween 82 102
  103.  
  104. }
  105.  
  106.  
  107.  
  108. EXIT:
  109. END:
  110.  
  111. gosub stats.report
  112. put #parse SIGILHARVEST END
  113. exit
  114.  
  115. get:
  116. var get.hand $1
  117. var get.item $2
  118. pause .05
  119. if $%get.handhandnoun <> "" then {
  120. put stow $1
  121. waitforre You|What
  122. }
  123. matchre RETURN You get|You pick
  124. put get my %get.item
  125. matchwait 5
  126. put #echo >ScriptLog ERROR: Missing Resource in sigil harvest ($2) r:$righthand l:$lefthand
  127. goto END
  128.  
  129.  
  130.  
  131. gotoLocationBetween:
  132. Math location_start set $1
  133. Math location_end set $2
  134. location_loop:
  135. gosub gotoLocation %location_start
  136. math location_start ADD 1
  137.  
  138. if (%location_start > %location_end) then return
  139. goto location_loop
  140. return
  141.  
  142. gotoLocation:
  143. var room $1
  144. gotoLocationSet:
  145. match gotoLocationVerify YOU HAVE ARRIVED
  146. put #goto $1
  147. matchwait 15
  148.  
  149. gotoLocationVerify:
  150. if (%forceRoomAccuracy = 1 and $roomid <> %room) then goto gotoLocationSet
  151.  
  152. gosub Sigil.Search
  153.  
  154. goto RETURN
  155.  
  156. Sigil.Search:
  157. if ("$righthandnoun" <> "burin") then put get burin
  158. matchre Sigil.MOVEPAUSE You try, but in the cramped confines
  159. matchre Sigil.ERROR You wisely decide against that
  160. matchre Sigil.EMPTY this area contains no traces of sigils
  161. matchre Sigil.Final.Found You recall having already identified the (\w+)
  162. matchre Sigil.Found After much scrutiny you are certain an* (\w+)
  163. matchre Sigil.Found you make out the details of an* (\w+)
  164. matchre Sigil.Found s eye you see the definition of an* (\w+)
  165. matchre Sigil.Found lighting you focus intently on an* lurking (\w+)
  166. matchre Sigil.Found surroundings reveal themselves as the origins of an* (\w+) sigil
  167. matchre Sigil.Found you find the designs of an* almost imperceptible (\w+) sigil
  168. matchre Sigil.Found reveal themselves as the origins of an* (\w+) sigil
  169. matchre Sigil.Search Roundtime
  170. put per sigil
  171. matchwait 15
  172. #ECHO blue >UNEXPECTED RESPONSE
  173. exit
  174.  
  175. Sigil.MOVEPAUSE:
  176. pause 60
  177. goto Sigil.Search
  178.  
  179. Sigil.Found:
  180. var doNotReturn 0
  181. var foundSigil $1
  182. Sigil.Found.Interim:
  183. if (!matchre("%foundSigil","%allSigils")) then {
  184. put #echo >ScriptLog found a new sigil $1
  185. goto Sigil.Improve
  186. }
  187. if matchre("%foundSigil","%sigil.keep") then {
  188. put #echo Scribing %foundSigil
  189. goto Sigil.Improve
  190. } else {
  191. put #echo blue SKIPPING %foundSigil
  192. put #echo >sigillog $zoneid-$roomid-%foundSigil
  193. }
  194. if (%doNotReturn = 1) then goto RETURN
  195. goto Sigil.Search
  196.  
  197. Sigil.Final.Found:
  198. var doNotReturn 1
  199. var foundSigil $1
  200. goto Sigil.Found.Interim
  201.  
  202. Sigil.Improve:
  203. put .s improvesigil
  204. waitfor IMPROVE SIGIL FINISHED
  205.  
  206. goto Sigil.Scribe
  207.  
  208. Sigil.Scribe:
  209. var duplicateSigil 0
  210. pause .05
  211. gosub get left "blank scroll"
  212. if ("$righthandnoun" <> "burin") then gosub get right burin
  213. matchre Sigil.Scribe.Finished You carefully scribe the sigil of (\w+) onto
  214. matchre Sigil.Scribe.Finished You should probably seek knowledge of a sigil before trying to scribe one
  215. put scribe sigil
  216. matchwait 15
  217. put #echo >ScriptLog *** ERROR IN SCRIBE: Failed to mine ***
  218. goto END
  219.  
  220. Sigil.Scribe.Finished:
  221. var Sigil.Scribe.Finished.caught $1
  222. if ("%Sigil.Scribe.Finished.caught" = "") then {
  223. var Sigil.Scribe.Finished.caught ERROR
  224. }
  225. put #echo >Sigillog Found $zoneid - $roomid - %Sigil.Scribe.Finished.caught
  226. math stats_%Sigil.Scribe.Finished.caught_count add 1
  227. #put #echo >Scriptlog After: %stats_%Sigil.Scribe.Finished.caught_count
  228. COUNTER add 1
  229. put put sigil in my sigil book
  230. waitforre You|What|Put
  231. put stow scrolls
  232. waitforre You|Stow
  233. pause 1
  234. if %c >= %maxSigils then goto END
  235.  
  236. if %duplicateSigil = 1 then {
  237. # put #echo >Sigillog $zoneid - $roomid - duplicate found
  238. goto Sigil.Scribe
  239. }
  240.  
  241. return
  242.  
  243. Sigil.EMPTY:
  244. pause .05
  245. #put #echo >ScriptLog $roomid was searched too recently
  246. return
  247.  
  248. Sigil.ERROR:
  249. put #echo >ScriptLog $roomid invalid sigil room
  250. return
  251.  
  252. STATS.SETUP:
  253. pause .05
  254. var allSigils metamorphosis|integration|metamorphis|abolition|antipode|ascension|clarification|congruence|decay|evolution|induction|nurture|paradox|permutation|rarefaction|unity|
  255. eval STATS.count count("%allSigils","|")
  256. gosub STATS.ZERO
  257. return
  258.  
  259. STATS.ZERO:
  260. pause .05
  261. var i 0
  262. STATS.ZERO.NEXT:
  263. var STATS.ZERO.NEXT.item %allSigils(%i)
  264. eval stats_%STATS.ZERO.NEXT.item_count 0
  265. math i add 1
  266. if %i < %STATS.count then goto STATS.ZERO.NEXT
  267. return
  268.  
  269. BuffUp:
  270. if "$guild" = "Trader" then {
  271. put prep meg 25
  272. put prep meg 25
  273. pause 20
  274. put charge prism 20
  275. pause 5
  276. put charge prism 20
  277. pause 5
  278. put invoke prism 40 spell
  279. pause 4
  280. put cast
  281. pause 1
  282. }
  283. if "$guild" = "Ranger" then {
  284. put prep WS 49
  285. pause 20
  286. put per
  287. pause 5
  288. put hunt
  289. pause 10
  290. put cast
  291. pause 1
  292. }
  293. return
  294.  
  295. STATS.REPORT:
  296. pause .05
  297. var i 0
  298. put #echo >Log *** TOTAL SIGILS FOUND ***
  299. STATS.REPORT.NEXT:
  300. var STATS.REPORT.NEXT.item %allSigils(%i)
  301. eval STATS.REPORT.item stats_%STATS.REPORT.NEXT.item_count
  302. if (%%STATS.REPORT.item > 0) then {
  303. put #echo >Log %%STATS.REPORT.item %STATS.REPORT.NEXT.item
  304. }
  305. math i add 1
  306. if %i < %STATS.count then goto STATS.REPORT.NEXT
  307. return
  308.  
  309. RETURN:
  310. return
  311.  
  312.  
  313. #get sigil-scro
  314. #put sigil-scro in book You rearrange the book and
  315. # 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