Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.62 KB | None | 0 0
  1. action put stand when eval $prone = 1
  2. #action put stand when eval $kneeling = 1
  3. action put $lastcommand when are still stunned
  4. action put $lastcommand when that while entangled in a web
  5. action var command $lastcommand; put stand;send %command when ^Stand up first
  6. action var command $lastcommand; send retr; send retr; send %command when ^You'll need to disengage first
  7. action put #queue clear; send 1 $lastcommand when ^\.\.\.wait|^Sorry, you may only type
  8. #action var command $lastcommand;send retr;send retr;send %command when ^You are engaged to|^You cannot collect anything while in combat
  9.  
  10. action var gotonc $1 when goto (.+)
  11. action echo %gotonc;pause 3;put #goto %goto when MOVE FAILED
  12. action put #var powerwalk 0 when eval $Attunement.LearningRate > 33
  13.  
  14. action put attack when ^You move to hunt down your prey
  15.  
  16. action var foraging 0 when ^You survey the area and realize that any collecting efforts would be futile
  17. action var foraging 0 when ^You forage around but are unable to find anything
  18. action var foraging 0 when quite seem to remember what it was you were looking for
  19. action var foraging 0 when ^You are certain you could find what you were looking for
  20. action var foraging 0 when ^The room is too clut
  21. action var full.cam 1 when only absorbing part of the energy while the rest dissipates harmlessly|holding as much power as you could possibly charge it with
  22. action var teaching 1 when begins to listen to you teach|^You begin to listen to|is already listening to you|^You are already listening to someone|^You cannot listen to a teacher
  23. action var teaching 0 when ^Your students can no longer see you|^All your students have left|^You stop teaching|stops listening to you|^You cannot concentrate to teach|^You stop listening to
  24. action put teach fa to Shankey when ^Shankey just arrived
  25. action put teach fa to Stardustt when ^Stardustt just arrived
  26. action var deadmonster 1 when balance]
  27. action var deadmonster 1 when balanced]
  28. action put #echo >Log red You can't skin with both hands full!! when ^You must have one hand free to skin.
  29. #action send stow right when ^Wouldn't it be better if you used a melee weapon?
  30. action var fullbundle 1 when ^You try to stuff your
  31. action var no.hunt 1 when ^You were unable to locate any followable tracks
  32. action put face next;-2 cast when ^You can't cast (.+) on yourself
  33. action pause 2 when ^You are already advancing
  34. action var hunt.number $1 when (.+)\) a
  35. action put unload;put stow arrow when ^You should unload the
  36. action put stow left when ^You really need to have at least one hand|suitable for brawling
  37. action put attack when ^You must be closer to use tactical abilities on your opponent
  38. action var attack1 0;var attack2 0;var attack3 0;var attack4 0;var attack5 0 when ^You can no longer see
  39.  
  40. action var attack1 $2 when by landing (a|an) (\w+)
  41. action var attack1 $2;var attack2 $4 when by landing (a|an) (\w+) and (a|an) (\w+)
  42. action var attack1 $2;var attack2 $4;var attack3 $6 when by landing (a|an) (\w+)\, (a|an) (\w+) and (a|an) (\w+)
  43. action var attack1 $2;var attack2 $4;var attack3 $6;var attack4 $8 when by landing (a|an) (\w+)\, (a|an) (\w+)\, (a|an) (\w+) and (a|an) (\w+)
  44. action var attack1 $2;var attack2 $4;var attack3 $6;var attack4 $8;var attack5 $10 when by landing (a|an) (\w+)\, (a|an) (\w+)\, (a|an) (\w+)\, (a|an) (\w+) and (a|an) (\w+)
  45. action put face next when ^Analyze what
  46. action var attack1 0;var attack2 0;var attack3 0;var attack4 0;var attack5 0 when ^You can no longer see
  47.  
  48.  
  49. action put predict anal Stardustt; pause 8 when ^After a few moments, the mists of time begin to part
  50. action put predict future Stardustt when ^The future, however, remains a dark mystery to you
  51. action put predict future Stardustt when ^You become distracted and forget what you were thinking about
  52. action var inside 1 when from here you can't tell what time it is
  53. action var inside 1 when since you cannot see the sky
  54.  
  55. action var redbeam 0 when ^Yavash slowly rises above
  56. action var bluebeam 0 when ^Xibar slowly rises above
  57. action var blackbeam 0 when ^Katamba slowly rises above
  58. action var have.moon 0 when ^That was the last of your orbiting slivers
  59. action var emergency.spell pd when ^With no moons visible
  60. action INSTANT var CONTENTS $1 when ^In the .+ gem pouch you see (.*)\.
  61. action INSTANT var GEMVALUE $1 when ^You are certain that the .+ worth exactly (\d+) \w+\.$
  62.  
  63. action goto stopall when col> stop all
  64. action var looping 1;goto loop when col> train all
  65. action goto origami when col> train mech
  66. action var fora $1;goto forage when col> train coll (.+)
  67. action var quickbuff 1;goto quickbuff when col> train quick
  68. action var huntchase 1;var trainhunt 1;goto quickforage when col> train perc
  69. action var familiar $1;goto summon when col> train summon (.+)
  70. action var familiar $1;var famcommand $2;goto familiarcommand when fam tell (.+) to (.+)
  71.  
  72. action var cam 1 when Your ankle cuff thrums softly as it discharges all its power to maintain your
  73.  
  74. var cam 1
  75.  
  76. action var trainforage 1 when col> train fora
  77. action var trainforage 0 when col> stop fora
  78. action var trainpower 1 when col> train pow
  79. action var trainpower 0 when col> stop pow
  80. action var trainmagic 1 when col> train mag
  81. action var trainmagic 0 when col> stop mag
  82. action var trainarcana 1 when col> train arc
  83. action var trainarcana 0 when col> stop arc
  84.  
  85. action var trainbattle 1;var weaponloop 1;goto battle when col> backtrain
  86. action var trainbattle 1;goto battle when col> train battle
  87. action var trainbattle 0;goto stopall when col> stop battle
  88. #action pause 1;send swap;send throw %hand when ^You are already holding that
  89. action goto longbow when col> train bow
  90.  
  91. action var critter.count $1 when col> train ccount (.+)
  92. action var spell $1 when setspell (.+)
  93. action var secondspell $1 when set2spell (.+)
  94. action var trainappraise 1;var critter $1 when col> train app (.+)
  95. action var trainappraise 0 when col> stop app
  96. action var trainhide 1 when col> train hid
  97. action var trainhide 0 when col> stop hid
  98. action var traintarget 1 when col> train tar
  99. action var traintarget 0 when col> stop tar
  100. action var trainhunt 1 when col> train hunt
  101. action var trainhunt 0 when col> stop hunt
  102. action var trainskin 1 when col> train ski
  103. action var trainskin 0 when col> stop ski
  104. action var buff 1 when col> train buf
  105. action var buff 0 when col> stop buf
  106. action var huntchase 1;var trainhunt 1 when col> train huntcha
  107. action var huntchase 0 when col> stop huntcha
  108. action var boxes 1 when col> train box
  109. action var boxes 0 when col> stop box
  110. action var refreat 1 when col> train retr
  111. action var retreat 0 when col> stop retr
  112. action var trainoffhand 1 when col> train off
  113. action var trainoffhand 0 when col> stop off
  114. action var trainlt 1 when col> train lt
  115. action var trainlt 0 when col> stop lt
  116. action var weapon $1;var trainweapon 1;send stow right;send get %weapon;goto battle when col> train weapon (.+)
  117. action var var trainweapon 0;stow right when col> stop weapon
  118. action var getfang 1 when col> get fang
  119.  
  120. action goto herb when col> train healme
  121. action goto herbcount when col> train herbco
  122. action var weapon $1;var trainbattle 1;goto collectboxes when col> train getbox (.+)
  123. action put #script vars hober when col> train help
  124. action put infuse halo 20 when eval $health < 98
  125. action var retreat 1 when eval $health < 90
  126. action var retreat 0 when eval $health = 100
  127. action goto damage when eval $health < 70
  128. action put quit when eval $dead = 1
  129. action put look when eval $useridle = 1
  130. action put quit when $health < 50
  131. action var subject $1;goto commune when ^(.*) offers you some grass
  132.  
  133. action put #var powerwalk 0 when eval $Power_Perceive.LearningRate > 33
  134. action put power when ^Carabeara pats you on the back
  135. action goto travel;put #var traveldestination $1 when col> travel (.+)
  136. action put cast ward when ^Valid Options
  137.  
  138. #action put stop hum;send $lastcommand when ^You are a bit too busy performing to do that|^You should stop playing before you do that
  139. action var critter $1 when The (.+) begins to advance on you
  140. #put #var last.ts.time 0
  141. #put #var last.parrydodge.time 0
  142.  
  143. action var trash $1 when a (bucket) of viscous gloop
  144. action var trash $1 when waste (bin)
  145. action var trash $1 when trash (receptacle)
  146. action var trash $1 when stone (turtle)
  147. action var trash $1 when disposal (bin)
  148. action var trash $1 when tree (hollow)
  149. action var trash $1 when oak (crate)
  150. action var trash $1 when firewood (bin)
  151. action var trash $1 when ivory (urn)
  152.  
  153. action var traintactics 1 when eval $Tactics.LearningRate < 10
  154. action var traintactics 0 when eval $Tactics.LearningRate > 33
  155.  
  156. var moon Katamba|Yavash|Xibar|Psychic|Moonlight|Transduction|Perception|Stellar|Planets
  157. var moonNum 0
  158.  
  159. var trash 0
  160. var buff 0
  161. var teaching 0
  162. var humming 0
  163. var fullbundle 0
  164. var origami 0
  165. var foraging 1
  166. var trainskin 0
  167. var trainhunt 0
  168. var traintarget 0
  169. var trainappraise 0
  170. var trainhide 0
  171. var retreat 0
  172. var huntchase 0
  173. var trainarcana 0
  174. var no.hunt 0
  175. var trainmagic 0
  176. var trainpower 0
  177. var trainarcana 0
  178. var boxes 0
  179. var trainoffhand 0
  180. var trainlt 0
  181. var trainweapon 0
  182. var skipoffhand 0
  183. var skiplt 0
  184. var skipshortbow 0
  185. var skiple 0
  186. var skipbrawl 0
  187. var skipme 0
  188. var learnrate 5
  189. var trainastro 1
  190. var buffing 0
  191. var traincyclic 0
  192. var cyclicblock 0
  193. var trainclimb 0
  194. var trainbattle 0
  195. var trainom 0
  196. var traintactics 1
  197. var weapon scim
  198.  
  199. var appraise.item baldric|gem.po|haub|cowl|glove|skirt|circlet|bodice|boots|cloak
  200. var appraiseNum 0
  201. var om om|om|om|om|om|om|om|om|om|om|om|om|om|om|om|om|om|om|om
  202. #var om om|mpp|om|mapp|om|sol|om|auspice|om
  203. var omnum 0
  204.  
  205. var tactics bob|bob|circle|weave
  206. var tacticsNum 0
  207. var nopaper 0
  208. if $charactername = Tabetha then var cam.spell auspice
  209. var cam.spellNum 0
  210. if $charactername = Sava then var cam.spell shadows
  211. if $charactername = Sava then var hum ditty
  212. if $charactername = Shankey then var hum ditty
  213. if $charactername = Shankey then var inst raven
  214. if $charactername = Tabetha then var hum march
  215. if $charactername = Tabetha then var inst star
  216. if $charactername = Sava then var inst star
  217. var fora rock
  218. var spell devit
  219. if $charactername = Tabetha then var spell ff
  220. if $charactername = Shankey then var spell cac
  221. if $charactername = Sava then var spell
  222. var secondspell bb
  223. if $charactername = Tabetha then var secondspell hh
  224. if $charactername = Shankey then var secondspell bb
  225. if $charactername = Sava then var second spell mb
  226. if $charactername = Tabetha then var camharness 20
  227. if $charactername = Shankey then var camharness 10
  228. if $charactername = Sava then var camharness 8
  229. if $charactername = Sava then var harnessamount 5
  230. if $charactername = Sava then var spellamount 8
  231. if $charactername = Sava then var secondspellamount 8
  232. if $charactername = Sava then var prepamount 8
  233. var prepamount 30
  234. var secondspellamount 30
  235. var spellamount 30
  236. var harnessamount 10
  237.  
  238. var weapontimer 300
  239. var camb.count 0
  240. var enemymage 0
  241. var full.cam 0
  242. var thrownweapon rock
  243. if $charactername = Shankey then var cam cuff
  244. if $charactername = Tabetha then var cam 1
  245.  
  246.  
  247. var roomreturn $roomid
  248.  
  249.  
  250. #put #var last.ts.time 0
  251. #put #var last.parrydodge.time 0
  252. action var parry $1 when setstance (.+)
  253. var parry parry
  254.  
  255. var timer.pom 2400
  256. var timer.herb 300
  257. var timer.parrydodge 300
  258. var timer.ts 60
  259. var timer.appraise 65
  260. var timer.hunt 75
  261. var timer.power 60
  262. var timer.predict 125
  263. var timer.prayer 600
  264. var timer.commune 600
  265. var room $roomid
  266. put #var spellsol 0
  267. put power
  268. wait
  269.  
  270.  
  271. random 1 4
  272. put look
  273. pause
  274. #debug 3
  275.  
  276. if $spellpom = 0 then
  277. {
  278. put #var last.pom.time $gametime
  279. if $spelltime > 0 then put rele
  280. pause
  281. put prep pom
  282. pause
  283. put remo staff
  284. pause
  285. put invoke staff
  286. wait
  287. pause
  288. put wear staff
  289. pause
  290. put cast
  291. wait
  292. pause
  293. if $stunned = 1 then pause 15
  294. }
  295.  
  296.  
  297. ########################################################### Intro
  298.  
  299. put time
  300. pause 1
  301. gosub empty
  302. var nopaper 0
  303. put tap my envelope
  304. matchre static You tap an origami
  305. matchre nopaper2 ^I could not find
  306. matchwait 5
  307. put #echo >Script green Well not to sure if you have paper or where it even is so... figure it out or not
  308.  
  309.  
  310. ########################################################### STATIC
  311.  
  312.  
  313.  
  314. variable:
  315. var trainmagic $1
  316. var trainappraise $2
  317. var trainom $3
  318. var traintarget $4
  319. var trainhunt $5
  320. var trainpower $6
  321. #var trainwalk $7
  322. var trainarcana $8
  323. if %trainwalk = 1 then var trainpower 0
  324. return
  325.  
  326. static:
  327. staticloop:
  328. if %t > %limit then
  329. {
  330. pause
  331. put rele cyclic
  332. if %looping = 1 then goto loop
  333. }
  334. if %trainbattle = 0 and %looping = 1 then gosub pray
  335. if %trainbattle = 1 then gosub parrydodge
  336. if %trainmagic = 1 then gosub magic
  337. if %trainappraise = 1 then gosub appraise
  338. if %trainom = 1 then gosub om
  339. if %traintarget = 1 then gosub spell.prep
  340. if %trainhunt = 1 then gosub hunt
  341. if %trainpower = 1 then gosub power
  342. if %trainarcana = 1 then gosub charge.orb
  343. gosub pom
  344. if %trainforage = 1 and %trainbattle = 0 then gosub quickforage
  345. if %trainbattle = 1 then gosub battle
  346. if %buff = 1 then gosub buff
  347. if $spelltime > 0 then gosub spell.cast
  348. pause
  349. if %trainwalk = 1 then gosub walk
  350. goto staticloop
  351.  
  352. empty:
  353. put stow left
  354. put stow right
  355. pause
  356. return
  357.  
  358. ########################################################### LOOP
  359.  
  360. loop:
  361. if %roomreturn != $roomid then
  362. {
  363. var room %roomreturn
  364. gosub goto
  365. pause
  366. goto loop
  367. }
  368. gosub clear
  369. var trainforage 0
  370. var trainwalk 0
  371. if $Augmentation.LearningRate < %learnrate then
  372. {
  373. var roomreturn $roomid
  374. var magicskill augment
  375. gosub timer.reset
  376. var limit 300
  377. gosub variable 1 0 0 1 0 0 0 0
  378. put stow cam orb
  379. var trainwalk 1
  380. if $zoneid = 127 then
  381. {
  382. var room 5
  383. gosub goto
  384. pause 3
  385. }
  386. if $zoneid = 90 then
  387. {
  388. var room 20
  389. gosub goto
  390. pause 3
  391. }
  392. goto static
  393. }
  394. if $Utility.LearningRate < %learnrate then
  395. {
  396. var magicskill utility
  397. gosub timer.reset
  398. var limit 420
  399. gosub variable 0 1 1 0 0 0 0 0
  400. put stow cam orb
  401. goto static
  402. }
  403. if $Warding.LearningRate < %learnrate then
  404. {
  405. var magicskill warding
  406. gosub timer.reset
  407. var limit 400
  408. gosub variable 1 1 0 0 0 0 0 1
  409. put get cam orb
  410. goto static
  411. }
  412. if $Arcana.LearningRate < %learnrate then
  413. {
  414. var magicskill arcana
  415. gosub timer.reset
  416. var limit 300
  417. gosub variable 1 1 0 0 0 0 0 1
  418. put get cam orb
  419. goto static
  420. }
  421. if %learnrate > 14 then
  422. {
  423. gosub timer.reset
  424. var limit 400
  425. if $Appraisal.LearningRate < $Attunement.Learning rate then gosub variable 0 1 0 0 0 1 1 0
  426. else gosub variable 1 0 0 0 0 0 1 0
  427. var trainforage 1
  428. goto static
  429. }
  430. math learnrate add 1
  431. goto loop
  432.  
  433. timer.reset:
  434. timer clear
  435. timer start
  436. return
  437.  
  438. small.loop:
  439. gosub forage
  440. gosub origami
  441. return
  442.  
  443. magic:
  444. action var full.cam 1 when dissipates harmlessly
  445. action var full.cam 0 when ^Your cambrinth orb thrums softly
  446.  
  447. if $righthand = Empty and %magicskill = warding then put get cam orb
  448. if %magicskill = augment then
  449. {
  450. if $mana < 40 then return
  451. if $spelltime > 0 then return
  452. put prep bene 27;prep symb
  453. var buffing 1
  454. var %invoke.type spell
  455. return
  456. }
  457. if %magicskill = utility then
  458. {
  459. if $mana < 40 then return
  460. if $spelltime > 0 then return
  461. if $spellrev = 0 then put prep om 25;prep symb
  462. else return
  463. var buffing 1
  464. var %invoke.type cyclic
  465. return
  466. }
  467. if %magicskill = warding then
  468. {
  469. if $mana < 40 then return
  470. if $spelltime > 0 then return
  471. if $spellghs = 0 then put prep ghs 23
  472. else return
  473. var buffing 1
  474. var %invoke.type cyclic
  475. return
  476. }
  477. if %magicskill = arcana then
  478. {
  479. if $mana < 40 then return
  480. if $spelltime > 0 then return
  481. if $spellrev = 0 then put prep rev 20
  482. else return
  483. var buffing 1
  484. var %invoke.type cyclic
  485. return
  486. }
  487.  
  488. charge.orb:
  489. action var full.cam 1 when dissipates harmlessly
  490.  
  491. if matchre ("$lastcommand", "perc|app") then pause 4
  492. if %magicskill = augment then
  493. {
  494. put charge cam orb 10
  495. wait
  496. put invoke cam orb spell
  497. wait
  498. put charge cam orb 10
  499. wait
  500. return
  501. }
  502. if %full.cam = 1 then
  503. {
  504. goto quickforage
  505. var full.cam 0
  506. pause
  507. }
  508. if $Arcana.LearningRate > 30 then goto quickforage
  509. put charge cam orb 10
  510. wait
  511. put invoke cam orb cyc
  512. wait
  513. put charge cam orb 10
  514. wait
  515. return
  516.  
  517.  
  518. walk:
  519. math room add 1
  520. gosub goto %room
  521. put perc
  522. pause 3
  523. return
  524.  
  525. pray:
  526. return
  527. if %trainwalk = 1 then return
  528. if contains("$last.prayer.time","$") then goto get.mat
  529. evalmath time.since.last.prayer $gametime - $last.prayer.time
  530. evalmath time.to.prayer %timer.prayer - %time.since.last.prayer
  531. echo %time.to.prayer seconds left until you can pray again.
  532. if %time.since.last.prayer < %timer.prayer then return
  533. pause
  534. get.mat:
  535. gosub empty
  536. pause
  537. gosub doit remo mat
  538. gosub doit unroll mat
  539. gosub doit dance mat
  540. gosub doit dance mat
  541. gosub doit dance mat
  542. gosub doit kneel mat
  543. gosub doit kiss mat
  544. gosub doit get wine
  545. gosub doit pour wine on mat
  546. gosub doit stow wine
  547. gosub doit stand
  548. gosub doit roll mat
  549. gosub doit wear mat
  550. put #var last.prayer.time $gametime
  551. goto static
  552.  
  553. doit:
  554. put $0
  555. wait
  556. pause
  557. return
  558.  
  559. commune:
  560. if contains("$last.commune.time","$") then goto commune1
  561. evalmath time.since.last.commune $gametime - $last.commune.time
  562. evalmath time.to.commune %timer.commune - %time.since.last.commune
  563. echo %time.to.commune seconds left until you can commune again.
  564. if %time.since.last.commune < %timer.commune then goto nocommune
  565.  
  566. commune1:
  567. put stop list;stop teaching
  568. wait
  569. put preach Yes %subject, I see that Hodierna is ready to grant you favor through me. Kneel before me to recieve her blessing.
  570. waitforre %subject kneels down before you
  571. put commune truff %subject
  572. pause 5
  573. put commune truff %subject
  574. put #var last.commune.time $gametime
  575. goto static
  576.  
  577. nocommune:
  578. put preach %subject Truffenyi is too busy to grant that blessing, try again soon.
  579. pause 5
  580. put ooc %subject Come back in %time.to.commune seconds
  581. pause 1
  582. goto static
  583.  
  584. om:
  585. action put cast when realize that you are not skilled enough to harness this combination of spells into the magic of its core
  586. if $preparedspell = Osrel Meraud and $spelltime > 19 then put cast orb
  587. else if $spelltime > 19 then put touch orb
  588. if $mana < 40 and $spelltime = 0 then return
  589. if $spelltime > 0 then return
  590. var omprep 25
  591. if %omnum = 1 then var omprep 15
  592. if %omnum = 13 then var omprep 15
  593. put prep %om(%omnum) %omprep;prep symb
  594. pause 2
  595. math omnum add 1
  596. if %omnum >= 8 then var omnum 0
  597. pause
  598. if $lefthand != Empty then put wear shield
  599. return
  600.  
  601. ############
  602. pom:
  603. pom.skip:
  604. if contains("$last.pom.time","$") then goto pom.start
  605. evalmath time.since.last.pom $gametime - $last.pom.time
  606. evalmath time.to.pom %timer.pom - %time.since.last.pom
  607. if %time.to.pom < 60 then put #echo cyan %time.to.pom seconds left to pom
  608. if %time.since.last.pom < %timer.pom then return
  609. goto pom.start
  610.  
  611. ############
  612.  
  613. pom.start:
  614. put #var last.pom.time $gametime
  615. if $spelltime > 0 then
  616. {
  617. put rele spell
  618. pause
  619. }
  620. put prep pom
  621. pause
  622. gosub empty
  623. pause
  624. put remo staff
  625. pause
  626. put invoke staff
  627. pause 20
  628. put wear staff
  629. pause
  630. if $mana > 30 then
  631. {
  632. put harn 30
  633. pause 3
  634. var timer.pom 1700
  635. }
  636. if $mana > 30 then
  637. {
  638. put harn 30
  639. pause 3
  640. var timer.pom 2100
  641. }
  642. if $mana > 30 then
  643. {
  644. put harn 30
  645. pause 3
  646. var timer.pom 2400
  647. if %trainbattle = 1 then put get %weapon
  648. }
  649. put cast
  650. wait
  651. pause
  652. return
  653. ########################################################### STOP
  654.  
  655. stopall:
  656. var trainmagic 0
  657. var trainappraise 0
  658. var trainpower 0
  659. var trainarcana 0
  660. var traintarget 0
  661. var trainhunt 0
  662. var huntchase 0
  663. var buff 0
  664. var trainhide 0
  665. var retreat 0
  666. var trainskin 0
  667. var boxes 0
  668. var trainvocals 0
  669. var trainoffhand 0
  670. var trainlt 0
  671. var trainweapon 0
  672. var weaponloop 0
  673. pause
  674. put stow right;stow left
  675. if %trainbattle = 1 then goto battle.loop
  676. goto static
  677.  
  678.  
  679.  
  680.  
  681.  
  682. ########################################################### MECH
  683.  
  684. origami:
  685. if %nopaper = 1 then
  686. {
  687. if %trainbattle = 1 then return
  688. if %looping = 1 then return
  689. else goto static
  690. }
  691. if %t > 360 and %looping = 1 then
  692. {
  693. put #echo >Script cyan Mech finished @ $Mechanical_Lore.LearningRate
  694. goto origami.done
  695. }
  696. if %looping = 0 and $Mechanical_Lore.LearningRate > 33 then
  697. {
  698. put stow left;stow right
  699. pause
  700. goto static
  701. }
  702. if %trainbattle = 1 and %origami = 0 then return
  703. #if $monstercount > 0 and %trainbattle = 1 then goto return
  704. if $Mechanical_Lore.LearningRate > mech.finish and %trainbattle = 1 then
  705. {
  706. var origami 0
  707. var foraging 1
  708. }
  709. if $Mechanical_Lore.LearningRate < mech.start then
  710. {
  711. var origami 1
  712. var foraging 0
  713. }
  714. #put #echo >Script green Origami Start.
  715.  
  716. ###########
  717.  
  718. origami.prepare:
  719. send get my paper
  720. matchre origami.fold (^You get|You are already holding that)
  721. matchre return You need a free
  722. matchre origami.pull (You must be either|What were you)
  723. matchwait 6
  724. if %trainbattle = 1 then return
  725. if %looping = 1 then return
  726. echo >Log blue Sorry I don't now what to do now
  727. goto static
  728.  
  729. ###########
  730.  
  731. origami.pull:
  732. if looping = 1 then echo %t seconds left on origami
  733. #if $monstercount > 0 and %trainbattle = 1 then goto origami.done
  734. put pull my envelope
  735. matchre return (^You need a free|^I'm afraid you can't pull that)
  736. match origami.study You get a sheet of
  737. matchre origami.new (The envelope is|You must be either)
  738. matchwait 6
  739. if %trainbattle = 1 then return
  740. if %looping = 1 then return
  741. put #echo >Log blue Sorry I don't now what to do now
  742. goto static
  743.  
  744. ###########
  745.  
  746. origami.new:
  747. put #echo >Script orange Envelope Empty
  748. put poke my envelope
  749. pause
  750. put get my envelope
  751. pause
  752. put wear my envelope
  753. matchre origami.pull when (^You attach an origami-paper envelope to your belt|^You are already wearing that)
  754. matchre nopaper when ^Wear what
  755. matchwait 6
  756. if %trainbattle = 1 then return
  757. if %looping = 1 then return
  758. put #echo >Log blue Sorry I don't now what to do now
  759. goto static
  760.  
  761. ###########
  762.  
  763. nopaper:
  764. put #echo >Log orange You'll need to buy some envelopes
  765. var nopaper 1
  766. if %trainbattle = 1 then return
  767. if %looping = 1 then return
  768. else goto static
  769.  
  770. nopaper2:
  771. put #echo >Log orange You'll need to buy some envelopes
  772. var nopaper 1
  773. goto static
  774. ###########
  775.  
  776. origami.instructions:
  777. #if $monstercount > 0 and %trainbattle = 1 then goto origami.done
  778. else put study %inst inst
  779. match origami.done referring to
  780. match origami.fold begin to fold
  781. matchwait 6
  782. put #echo Scrit orange Umm, not sure where your instructions are...
  783. var nopaper 1
  784. if %trainbattle = 1 then return
  785. if %looping = 1 then return
  786. else goto static
  787.  
  788. ###########
  789.  
  790. origami.study:
  791. #if $monstercount > 0 and %trainbattle = 1 then goto origami.done
  792. put study %inst inst
  793. match origami.fold begin to fold
  794. match origami.done referring to
  795. match origami.fold ^You've already started to make something
  796. matchwait 6
  797. put #echo Scrit orange Umm, not sure where your instructions are...
  798. var nopaper 1
  799. if %trainbattle = 1 then return
  800. if %looping = 1 then return
  801. else goto static
  802.  
  803. ###########
  804.  
  805. origami.stow.ins:
  806. if %primer = 0 then put put my inst in my %container
  807. else put put my primer in my %container
  808. match origami.exp You put
  809. match origami.done referring to
  810. matchwait
  811.  
  812. ############
  813.  
  814. origami.exp:
  815. if $Mechanical_Lore.LearningRate > 33 then goto origami.done
  816. if $MindState > 1 then goto origami.done
  817. goto origami.fold
  818.  
  819. ############
  820.  
  821. origami.fold:
  822. #if %humming = 0 and %trainvocals = 1 then put hum %hum
  823. if $spelltime > 20 then gosub spell.cast
  824. pause
  825. if $mana > 40 and $spellcs = 0 then
  826. {
  827. if $spelltime > 0 and $preparedspell != Cheetah Swiftness then put rele spell
  828. send cs
  829. pause
  830. }
  831. if %t > 360 and %looping = 1 then
  832. {
  833. put #echo >Script cyan Mech finished @ $Mechanical_Lore.LearningRate
  834. goto origami.done
  835. }
  836. if %trainpower = 1 then gosub power
  837. if %trainbattle = 1 then gosub hunt
  838. if %trainbattle = 1 then gosub buff
  839. match origami.instructions You need to study your instructions
  840. match origami.done It's too difficult to fold anything while fighting
  841. match origami.exp You carefully make another fold in your paper
  842. match origami.exp come out quite the way you planned
  843. match origami.exp Roundtime
  844. match origami.exhale You make the final fold
  845. match origami.exhale referring to
  846. match origami.exhale already started to make something with this piece of origami paper
  847. put fold my paper
  848. matchwait 6
  849. put #echo Scrit orange Umm, didn't make that fold
  850. if %trainbattle = 1 then return
  851. if %looping = 1 then return
  852. else goto static
  853.  
  854. ###########
  855.  
  856. origami.exhale:
  857. pause
  858. #if %trash != 0 then put put %inst in %trash
  859. put exhale my %inst
  860. put drop my %inst
  861. waitfor You
  862. if %looping = 1 and %t > 420 then
  863. {
  864. put #echo >Log yellow Time up Mech @ $Mechanical_Lore.LearningRate
  865. goto origami.done
  866. }
  867. #if $monstercount > 0 and %trainbattle = 1 then return
  868. if $Mechanical_Lore.LearningRate > 33 then goto origami.done
  869. if %trainbattle = 0 and $Mechanical_Lore.LearningRate > 33 then
  870. {
  871. put stow left;stow right
  872. pause
  873. goto static
  874. }
  875. goto origami.pull
  876.  
  877. ###########
  878.  
  879. origami.done:
  880. put stow paper
  881. pause
  882. if %trainbattle = 1 then return
  883. if %looping = 1 then return
  884. else goto static
  885.  
  886.  
  887. ########################################################### FORAGE
  888.  
  889. forage:
  890. if $monstercount > 0 and %boxes = 1 then return
  891. if %foraging = 0 then
  892. {
  893. put stop hum
  894. var origami 1
  895. return
  896. }
  897. if %foraging = 1 then var origami 0
  898. #if $Foraging.LearningRate < %foraging.start then var foraging 1
  899. if $Perception.LearningRate > 33 then var foraging 0
  900. if $Foraging.LearningRate > %foraging.finish then var origami 1
  901. if %looping = 1 and %t > 300 then
  902. {
  903. put #echo >Log Orange Time up Perception @ $Perception.LearningRate
  904. return
  905. }
  906. if %trainmagic = 1 then gosub spell.cast
  907. if %trainbattle = 1 then gosub buff
  908. if %trainbattle = 1 then gosub hunt
  909. if %trainbattle = 0 then gosub appraise
  910. gosub power
  911. if $spelltime > 20 then gosub spell.cast
  912. pause
  913. if $mana > 40 and $spellbes = 0 then
  914. {
  915. if %trainbattle = 1 then goto nobes
  916. send bes
  917. pause
  918. }
  919. nobes:
  920. put collect %fora
  921. match return You cannot coll
  922. match stow.loot The room is too cl
  923. match forage.kick You manage to collect
  924. matchwait 4
  925.  
  926. ###########
  927.  
  928. forage.kick:
  929. put kick pile
  930. pause 1
  931. if $monstercount > 0 and %battle = 1 then return
  932. goto forage
  933.  
  934. ###########
  935.  
  936. quickforage:
  937. put collect %fora
  938. pause 15
  939. put kick pile
  940. wait
  941. return
  942.  
  943.  
  944. if %looping = 1 then gosub appraise.start
  945. if %huntchase = 1 and %trainhunt = 1 then gosub hunt
  946. put hum %hum
  947. pause .25
  948. if $monstercount > 0 then put retreat;retreat
  949. pause .25
  950. put collect %fora
  951. pause 15
  952. put kick pile
  953. pause
  954. if $Perception.LearningRate > 33 then
  955. {
  956. put stop hum
  957. goto static
  958. }
  959. else goto quickforage
  960.  
  961.  
  962. ########################################################### BUFF
  963.  
  964.  
  965. buff:
  966. if %buffing = 1 and $spelltime = 0 then var buffing 0
  967. if %buff = 0 then return
  968. if $mana < 40 then return
  969. if %buffing = 1 then return
  970. if $spellsol = 0 then
  971. {
  972. var buffing 1
  973. if $spelltime > 0 then put rele spell
  974. put prep om 30
  975. if %trainbattle = 0 then put prep symb
  976. pause 10
  977. put cast orb
  978. pause
  979. put prep sol 30
  980. pause
  981. if %trainbattle = 0 then put prep symb
  982.  
  983. return
  984. }
  985. if $spellmapp = 0 then
  986. {
  987. var buffing 1
  988. if $spelltime > 0 then put rele spell
  989. pause
  990. put prep mapp 30
  991. pause
  992. if %trainbattle = 0 then put prep symb
  993. return
  994. }
  995. if $spellmpp = 0 then
  996. {
  997. var buffing 1
  998. if $spelltime > 0 then put rele spell
  999. pause
  1000. put prep mpp 40
  1001. pause
  1002. #if %trainbattle = 0 then put prep symb
  1003. return
  1004. }
  1005. if $spellpfe = 0 then
  1006. {
  1007. var buffing 1
  1008. if $spelltime > 0 then put rele spell
  1009. pause
  1010. put prep pfe 40
  1011. pause
  1012. #if %trainbattle = 0 then put prep symb
  1013. return
  1014. }
  1015. if $spellbene = 0 then
  1016. {
  1017. var buffing 1
  1018. if $spelltime > 0 then put rele spell
  1019. pause
  1020. put prep bene 30
  1021. pause
  1022. if %trainbattle = 0 then put prep symb
  1023. return
  1024. }
  1025. if $spellsap = 0 then
  1026. {
  1027. var buffing 1
  1028. if $spelltime > 0 then put rele spell
  1029. pause
  1030. put prep sap 20
  1031. pause
  1032. if %trainbattle = 0 then put prep symb
  1033. return
  1034. }
  1035. if $spellbless = 0 then
  1036. {
  1037. var buffing 1
  1038. if $spelltime > 0 then put rele spell
  1039. pause
  1040. put prep bless 30
  1041. pause
  1042. if %trainbattle = 0 then put prep symb
  1043. return
  1044. }
  1045. if $spellcentering = 0 then
  1046. {
  1047. var buffing 1
  1048. if $spelltime > 0 then put rele spell
  1049. put prep om 30
  1050. pause 10
  1051. put cast orb
  1052. pause
  1053. put prep centering 30
  1054. pause
  1055. if %trainbattle = 0 then put prep symb
  1056. return
  1057. }
  1058. if $spellhalo = 0 then
  1059. {
  1060. if $spelltime > 0 then put rele spell
  1061. put prep om 30
  1062. pause 10
  1063. put cast orb
  1064. pause
  1065. put prep halo 20
  1066. pause 10
  1067. put touch orb
  1068. if %trainbattle = 0 then put prep symb
  1069. return
  1070. }
  1071. if $spellmf = 0 then
  1072. {
  1073. var buffing 1
  1074. if $spelltime > 0 then put rele spell
  1075. pause
  1076. gosub empty
  1077. pause
  1078. put prep mf
  1079. pause
  1080. put remo staff
  1081. pause
  1082. put invoke staff
  1083. pause 20
  1084. put wear staff
  1085. pause
  1086. put cast
  1087. pause
  1088. if %trainbattle = 1 then put get %weapon
  1089. return
  1090. }
  1091. if $spelldr = 0 then
  1092. {
  1093. var buffing 1
  1094. if $spelltime > 0 then put rele spell
  1095. pause
  1096. put prep dr 30
  1097. pause
  1098. if %trainbattle = 0 then put prep symb
  1099. return
  1100. }
  1101. if $spellghs = 0 then
  1102. {
  1103. var buffing 1
  1104. if $spelltime > 0 then put rele spell
  1105. pause
  1106. put prep ghs 20
  1107. pause
  1108. if %trainbattle = 0 then put prep symb
  1109. return
  1110. }
  1111. return
  1112. ########################################################### APPRAISE
  1113.  
  1114. appraise:
  1115. appraise.skip:
  1116. if contains("$last.appraise.time","$") then goto appraise.start
  1117. evalmath time.since.last.appraise $gametime - $last.appraise.time
  1118. evalmath time.to.appraise %timer.appraise - %time.since.last.appraise
  1119. put #echo cyan %time.to.appraise seconds left to appraise
  1120. if %time.since.last.appraise < %timer.appraise then return
  1121. goto appraise.start
  1122.  
  1123. ############
  1124.  
  1125. appraise.start:
  1126. put #var last.appraise.time $gametime
  1127. if %trainbattle = 1 and $monstercount > 0 then put appraise %critter quick
  1128. if %trainbattle = 0 then
  1129. {
  1130. send app bundle
  1131. pause 5
  1132. }
  1133. return
  1134.  
  1135.  
  1136. ########################################################### HUNT
  1137.  
  1138. hunt:
  1139. if %retreat = 1 then return
  1140. #gosub spell.cast
  1141. #gosub spell.prep
  1142. if %trainhunt = 0 then return
  1143. #if $monstercount > %critter.count then return
  1144. if $Perception.LearningRate > 30 then return
  1145.  
  1146. ############
  1147.  
  1148. hunt.skip:
  1149. if contains("$last.hunt.time","$") then goto hunt.start
  1150. evalmath time.since.last.hunt $gametime - $last.hunt.time
  1151. evalmath time.to.hunt %timer.hunt - %time.since.last.hunt
  1152. put #echo cyan %time.to.hunt seconds left to hunt
  1153. if %time.since.last.hunt < %timer.hunt then return
  1154. goto hunt.start
  1155.  
  1156. ############
  1157.  
  1158. hunt.start:
  1159. put #var last.hunt.time $gametime
  1160. put hunt
  1161. pause 8
  1162. if %huntchase = 1 then gosub huntchase
  1163. return
  1164.  
  1165. ############
  1166.  
  1167. huntchase:
  1168. if %no.hunt = 1 then
  1169. {
  1170. var no.hunt 0
  1171. return
  1172. }
  1173. random 1 %hunt.number
  1174. put retreat;retreat
  1175. pause
  1176. put hunt %r
  1177. pause 3
  1178. return
  1179.  
  1180.  
  1181.  
  1182. ########################################################### RANDOM
  1183.  
  1184. ts:
  1185. if %trainbattle = 0 and $spelltime = 0 then goto tscast
  1186. if $monstercount >= %1 then return
  1187. if contains("$last.ts.time","$") then goto tscast
  1188. evalmath time.since.last.ts $gametime - $last.ts.time
  1189. evalmath time.to.ts %timer.ts - %time.since.last.ts
  1190. #put #echo cyan %time.to.ts seconds left to ts
  1191. if %time.since.last.ts < %timer.ts then return
  1192. goto tscast
  1193.  
  1194. ############
  1195.  
  1196. tscast:
  1197. #put #echo >Log yellow CASTING TS
  1198. if $spelltime = 0 and %buffing = 1 then var buffing 0
  1199. if %buffing = 1 then return
  1200. put #var last.ts.time $gametime
  1201. if $spelltime > 0 then put rele spell
  1202. pause
  1203. put infuse om 30
  1204. pause 3
  1205. if $Augmentation.LearningRate < $Utility.LearningRate then put prep bene 34
  1206. else put prep bless 30
  1207. pause
  1208. put prep symb
  1209. pause
  1210. var symb 1
  1211. if %cam = 1 and $spellghs = 1 then
  1212. {
  1213. put charge my cuff 32
  1214. pause 9
  1215. put invoke my cuff cyc
  1216. pause
  1217. var cam 0
  1218. }
  1219. return
  1220. ########################################################### TEACH
  1221. teach:
  1222. if $charactername = Shankey then put teach parry to Stardustt
  1223. if $charactername = Stardustt then put teach parry to Shankey
  1224. pause
  1225. return
  1226.  
  1227.  
  1228. ########################################################### COMP
  1229.  
  1230. study.start:
  1231. put #var last.study.time $gametime
  1232. put #echo >Script green Study Start.
  1233. counter set 0
  1234. var counter %c
  1235. put get my compendium
  1236. matchre comp.open ^You get
  1237. match comp.open already holding that.
  1238. matchwait
  1239.  
  1240. comp.open:
  1241. put open my compendium
  1242. match comp.exp is already open!
  1243. matchre comp.exp ^You open your
  1244. matchwait
  1245.  
  1246. comp.exp:
  1247. if $First_Aid.LearningRate > 33 then goto comp.done
  1248.  
  1249. comp.counter:
  1250. if %counter < 10 then
  1251. {
  1252. counter add 1
  1253. var counter %c
  1254. goto comp.turn
  1255. }
  1256. else goto comp.done
  1257.  
  1258. comp.turn:
  1259. put turn my comp
  1260. match comp.study physiology.
  1261. matchwait
  1262.  
  1263. comp.studyp:
  1264. pause
  1265. comp.study:
  1266. pause
  1267. }
  1268. echo Counter is %counter
  1269. put study my compendium
  1270. match comp.studyp You attempt to continue
  1271. match comp.studyp You attempt to study the
  1272. match comp.exp You begin
  1273. match comp.done You continue
  1274. match comp.done In a sudden moment of clarity
  1275. match comp.exp With a sudden moment of clarity
  1276. match comp.done Why do you need to study
  1277. matchwait
  1278.  
  1279. comp.done:
  1280. pause
  1281. put put my compendium in my %container
  1282. pause
  1283. put #echo >Script red Study Done.
  1284. return
  1285.  
  1286. ########################################################### POWER
  1287.  
  1288. power:
  1289. if %retreat = 1 then return
  1290. if $Power_Perceive.LearningRate > 33 then var trainpower 0
  1291. if $charactername = Shankey and %trainpower = 0 then return
  1292.  
  1293. ###########
  1294.  
  1295. power.skip:
  1296. if contains("$last.power.time","$") then goto power.start
  1297. evalmath time.since.last.power $gametime - $last.power.time
  1298. evalmath time.to.power %timer.power - %time.since.last.power
  1299. put #echo cyan %time.to.power seconds left to power
  1300. if %time.since.last.power < %timer.power then return
  1301. goto power.start
  1302.  
  1303. ###########
  1304.  
  1305. power.start:
  1306. put #var last.power.time $gametime
  1307. if $charactername = Stardustt then goto starpower
  1308. if $charactername = Sava then goto starpower
  1309. put perc
  1310. return
  1311.  
  1312. starpower:
  1313.  
  1314. if %moonNum >= 9 then var moonNum 0
  1315. math moonNum add 1
  1316. put perc %moon(%moonNum)
  1317. pause 2
  1318. return
  1319.  
  1320. ######BATTLE######BATTLE######BATTLE######BATTLE######BATTLE######BATTLE######BATTLE######BATTLE
  1321.  
  1322. battle:
  1323. var traintarget 1
  1324. var trainhunt 1
  1325. var buff 1
  1326. var trainpower 1
  1327. var trainappraise 1
  1328. var trainhide 0
  1329. var retreat 0
  1330. var trainskin 1
  1331. var timer.parry 300
  1332. gosub parrydodge
  1333. var trainbattle 1
  1334. if %weaponloop = 1 then goto weaponloop
  1335. var learnrate 5
  1336.  
  1337.  
  1338. #############
  1339.  
  1340. battle.loop:
  1341. gosub clear
  1342. if $spellsol = 0 then gosub parry
  1343. gosub parrydodge
  1344. #if %weaponloop = 1 and %t > %weapontimer then return
  1345. if %deadmonster = 1 then gosub arrange
  1346. gosub buff
  1347. gosub spell.cast
  1348. if %traintarget = 1 then gosub spell.prep
  1349. if %trainpower = 1 then gosub power
  1350. if %retreat = 1 then gosub retreat
  1351. if %trainappraise = 1 then gosub appraise
  1352. if %trainhunt = 1 then gosub hunt
  1353. if %trainarcana = 1 then gosub arcana
  1354. if %trainhide = 1 then gosub hide
  1355. if $monstercount < %1 then
  1356. {
  1357. pause 3
  1358. goto battle.loop
  1359. }
  1360. if $stamina < 95 then
  1361. {
  1362. pause 1
  1363. goto battle.loop
  1364. }
  1365. if %trainoffhand = 1 then gosub attack left
  1366. if %trainlt = 1 then gosub offhand.start right
  1367. if %trainweapon = 1 and %retreat = 0 then gosub attack
  1368. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then gosub Arrange
  1369. if %retreat = 1 then gosub retreat
  1370. if %retreat = 1 then pause 2
  1371. #if $monstercount = 0 then gosub battle.small.loop
  1372. pause .5
  1373. gosub pom
  1374. goto battle.loop
  1375.  
  1376. ###################
  1377.  
  1378. battle.small.loop:
  1379. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then gosub Arrange
  1380. if %huntchase = 1 then pause 2
  1381. gosub forage
  1382. gosub origami
  1383. if $righthandnoun = bow then goto aim
  1384. if $righthandnoun = bow then goto aim
  1385. return
  1386.  
  1387. ########################################################### DEFENSE
  1388.  
  1389. defense:
  1390. goto weaponloop
  1391. put get my %cam
  1392. put stance shield
  1393. put stance evas 50
  1394. var trainpower 1
  1395. var trainappraise 1
  1396. var traintarget 1
  1397. var trainhunt 1
  1398. var spell ease
  1399. var trainarcana 1
  1400. var blocking 1
  1401. var nodefense 0
  1402. var trainweapon 0
  1403. gosub timer.reset
  1404.  
  1405. defenseloop:
  1406. if %nodefense = 2 then return
  1407. if %t > 180 and $Shield_Usage.LearningRate < 5 then
  1408. {
  1409. var trainarcana 0
  1410. put stow %cam
  1411. pause
  1412. put stance evas
  1413. var blocking 0
  1414. put get scim
  1415. put stance parry
  1416. put stance evas 50
  1417. gosub timer.reset
  1418. math nodefense add 1
  1419. put #echo >Script aqua Not learning shield
  1420. }
  1421. if $Shield_Usage.LearningRate > 33 and %blocking = 1 then
  1422. {
  1423. math nodefense add 1
  1424. var trainarcana 0
  1425. put stow %cam
  1426. pause
  1427. var blocking 0
  1428. put get scim
  1429. gosub timer.reset
  1430. put stance parry
  1431. put stance evas 50
  1432. }
  1433. if %blocking = 0 then goto parrycheck
  1434. else goto parrypass
  1435. parrycheck:
  1436. if %t > 180 and $Parry_Ability.LearningRate < 5 then
  1437. {
  1438. put stance evas
  1439. var spell bolt
  1440. var trainpower 0
  1441. var trainappraise 0
  1442. var blocking 1
  1443. math nodefense add 1
  1444. put #echo >Script aqua Not learning parry
  1445. return
  1446. }
  1447. parrypass:
  1448. if $Parry_Ability.LearningRate > 33 then
  1449. {
  1450. put stance evas
  1451. var spell bolt
  1452. var trainpower 0
  1453. var trainappraise 0
  1454. math nodefense add 1
  1455. var blocking 1
  1456. put #echo >Script aqua Not learning parry
  1457. return
  1458. }
  1459. gosub parrydodge
  1460. if %deadmonster = 1 then gosub arrange
  1461. #gosub buff
  1462. gosub spell.cast
  1463. if %traintarget = 1 then gosub spell.prep
  1464. if %trainpower then gosub power
  1465. if %retreat = 1 then gosub retreat
  1466. if %trainappraise = 1 then gosub appraise
  1467. if %trainhunt = 1 then gosub hunt
  1468. if %trainarcana = 1 then gosub arcana
  1469. if %trainhide = 1 then gosub hide
  1470. if $stamina < 80 then
  1471. {
  1472. pause 2
  1473. goto battle.loop
  1474. }
  1475. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then gosub Arrange
  1476. if %retreat = 1 then gosub retreat
  1477. if %retreat = 1 then pause 2
  1478. #if $monstercount = 0 then gosub battle.small.loop
  1479. pause 2
  1480. goto defenseloop
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489. ########################################################### WEAPONLOOP
  1490.  
  1491. weaponloop:
  1492. var traintarget 1
  1493. var trainhunt 0
  1494. var buff 1
  1495. var trainpower 0
  1496. var trainappraise 0
  1497. var trainhide 0
  1498. var retreat 0
  1499. var trainskin 1
  1500. var timer.parry 300
  1501. var trainarcana 0
  1502. #gosub defense
  1503.  
  1504. weaponloop1:
  1505. var trainskin 1
  1506. #gosub shield
  1507. if %teaching = 0 then gosub teach
  1508. var weaponskip 0
  1509. gosub clear
  1510. if $lefthand != Empty then gosub empty
  1511. if $righthand != Empty then gosub empty
  1512. if %skipoffhand = 1 then
  1513. {
  1514. math weaponskip add 1
  1515. goto skipoffhand
  1516. }
  1517. if $Offhand_Weapon.LearningRate < %learnrate then
  1518. {
  1519. var trainoffhand 1
  1520. gosub timer.reset
  1521. if $Parry_Ability.LearningRate < $Shield_Usage.LearningRate then gosub parry
  1522. else gosub shield
  1523. if $lefthand = Empty then put wield left scim
  1524. var trainhide 0
  1525. var cyclicblock 0
  1526. if %learnrate > 25 then gosub variable 0 1 1 1
  1527. gosub battle.loop
  1528. var trainoffhand 0
  1529. put stow scim
  1530. pause 1
  1531. var cyclicblock 0
  1532. var trainhide 0
  1533. var hand right
  1534. put #echo >Log yellow Moving on ... Offhand @ $Offhand_Weapon.LearningRate
  1535. }
  1536. if $Offhand_Weapon.LearningRate < 2 then
  1537. {
  1538. put #echo >Log red Not learning offhand...
  1539. math weaponskip add 1
  1540. var skipoffhand 1
  1541. goto skipoffhand
  1542. }
  1543. skipoffhand:
  1544. if %skiplt = 1 then
  1545. {
  1546. math weaponskip add 1
  1547. goto skiplt
  1548. }
  1549. if $Light_Thrown.LearningRate < %learnrate then
  1550. {
  1551. if %teaching = 0 then gosub teach
  1552. if $roomid < 500 then
  1553. {
  1554. var cyclicblock 1
  1555. var spell he
  1556. var secondspell hh
  1557. }
  1558. var trainlt 1
  1559. gosub timer.reset
  1560. gosub shield
  1561. #var blades 1
  1562. if %learnrate > 25 then gosub variable 0 1 1 1
  1563. gosub offhand.start right
  1564. var trainlt 0
  1565. put stow %thrownweapon
  1566. var blades 0
  1567. if $roomid < 500 then
  1568. {
  1569. var spell he
  1570. var secondspell hh
  1571. var cyclicblock 0
  1572. }
  1573. pause
  1574. put #echo >Log yellow Moving on ... Light Thrown @ $Light_Thrown.LearningRate
  1575. }
  1576. if $Light_Thrown.LearningRate < 5 then
  1577. {
  1578. put #echo >Log red Not learning light thrown...
  1579. math weaponskip add 1
  1580. var skiplt 1
  1581. goto skiplt
  1582. }
  1583. skiplt:
  1584. skipshortbow:
  1585. if %skipbrawl = 1 then
  1586. {
  1587. math weaponskip add 1
  1588. goto skipbrawl
  1589. }
  1590. if $Brawling.LearningRate < %learnrate then
  1591. {
  1592. var trainhide 0
  1593. var trainweapon 1
  1594. gosub timer.reset
  1595. if $Parry_Ability.LearningRate < $Shield_Usage.LearningRate then gosub parry
  1596. else gosub shield
  1597. var cyclicblock 0
  1598. var trainhide 0
  1599. var weapon brawl
  1600. gosub getweapon
  1601. if %learnrate > 25 then gosub variable 0 1 1 1
  1602. gosub battle.loop
  1603. var trainweapon 0
  1604. var cyclicblock 0
  1605. var trainhide 0
  1606. gosub weapondone
  1607. pause
  1608. put #echo >Log yellow Moving on ... Brawling @ $Brawling.LearningRate
  1609. }
  1610. if $Hiding.LearningRate > 25 then
  1611. {
  1612. put #echo >Log red learned enough brawling...
  1613. math weaponskip add 1
  1614. var skipbrawl 1
  1615. goto skipbrawl
  1616. }
  1617. skipbrawl:
  1618. skiple:
  1619. if %skipme = 1 then
  1620. {
  1621. math weaponskip add 1
  1622. goto skipme
  1623. }
  1624. if %learnrate > 20 then
  1625. {
  1626. if %teaching = 0 then gosub teach
  1627. gosub parry
  1628. var traincyclic 1
  1629. var trainweapon 1
  1630. var trainappraise 1
  1631. var trainpower 1
  1632. var trainhunt 1
  1633. gosub timer.reset
  1634. var weapon scim
  1635. gosub getweapon
  1636. gosub battle.loop
  1637. gosub weapondone
  1638. var traincyclic 0
  1639. var trainweapon 0
  1640. var trainappraise 0
  1641. var trainpower 0
  1642. var trainhunt 0
  1643. put rele cyclic
  1644. pause
  1645. put #echo >Log yellow Moving on ... Small Edged @ $Small_Edged.LearningRate
  1646. gosub shield
  1647. }
  1648.  
  1649. skipme:
  1650. if %weaponskip = 6 then goto weaponskip
  1651. math learnrate add 1
  1652. if %learnrate > 32 then goto weaponskip
  1653. if $Shield_Usage.LearningRate < 1 then goto weaponskip
  1654. if $Parry_Ability.LearningRate < 1 then goto weaponskip
  1655. goto weaponloop1
  1656.  
  1657. weaponskip:
  1658.  
  1659. gosub empty
  1660. gosub arrow
  1661. var traintarget 1
  1662. var trainpower 1
  1663. var trainappraise 1
  1664. var trainarcana 1
  1665. var trainhide 0
  1666. var trainhunt 1
  1667. var trainweapon 0
  1668. var weaponskip 0
  1669. goto defense
  1670.  
  1671.  
  1672.  
  1673.  
  1674. ########################################################### GETWEAPON
  1675.  
  1676. getweapon:
  1677. wield:
  1678. gosub empty
  1679. put #echo >Log yellow Starting with the %weapon-style
  1680. var timer.parrydodge 300
  1681. if %weapon = short.bow then var timer.parrydodge 1000
  1682. if %weapon = bow then
  1683. {
  1684. put get bow
  1685. var timer.parrydodge 1000
  1686. if %weaponloop = 1 then return
  1687. pause .5
  1688. return
  1689. }
  1690. if %weapon = cane then put remo cane
  1691. else put get %weapon
  1692. if %weaponloop = 1 then return
  1693. pause .5
  1694. return
  1695.  
  1696. weapondone:
  1697. var timer.parry 300
  1698. var trainweapon 0
  1699. if weapon = bow then put stow bow
  1700. if %weapon = cane then put wear cane
  1701. else put stow %weapon
  1702. pause .5
  1703. if %weaponloop = 1 then return
  1704. goto battleloop
  1705.  
  1706.  
  1707. ##########
  1708. parry:
  1709. if $righthand = bow then goto shield
  1710. pause
  1711. put stance shield 10;stance parry 75
  1712. pause
  1713. put parry
  1714. pause
  1715. return
  1716.  
  1717. shield:
  1718. if $spellsol = 0 then goto parry
  1719. pause
  1720. put stance parry 10;stance shield 75
  1721. pause
  1722. put block
  1723. pause
  1724. return
  1725.  
  1726. ##########################################ATTACK##################################################
  1727.  
  1728. attack:
  1729. if $righthand = Empty and $lefthand = empty then var attackmove gouge
  1730. else var attackmove feint
  1731. if %retreat = 1 then
  1732. {
  1733. put retreat
  1734. return
  1735. }
  1736. if %traintactics = 1 then goto attack.left
  1737. else put %attackmove $1
  1738. matchre battle.loop (far too high|^What do|^You begin|^You aren't|^You are already|^At what are you trying)
  1739. matchre battle.small.loop ^There is nothing else to face
  1740. matchre battle.loop Roundtime
  1741. matchwait 3
  1742. return
  1743.  
  1744. attack.left:
  1745. #debug 3
  1746. gosub parrydodge
  1747. #if %weaponloop = 1 and %t > %weapontimer then return
  1748. var attack1 0
  1749. var attack2 0
  1750. var attack3 0
  1751. var attack4 0
  1752. var attack5 0
  1753. put anal
  1754. match attack.left You fail to find any holes
  1755. match tactics.offhand There is nothing else to face
  1756. matchwait 2
  1757. if %attack1 != 0 then gosub tactics.offhand %attack1
  1758. if %attack2 != 0 then gosub tactics.offhand %attack2
  1759. if %attack3 != 0 then gosub tactics.offhand %attack3
  1760. if %attack4 != 0 then gosub tactics.offhand %attack4
  1761. if %attack5 != 0 then gosub tactics.offhand %attack5
  1762. return
  1763.  
  1764. tactics.offhand:
  1765. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then
  1766. {
  1767. gosub Arrange
  1768. goto attack.left
  1769. }
  1770. if %trainappraise = 1 then gosub appraise
  1771. gosub buff
  1772. gosub spell.cast
  1773. if %traintarget = 1 then gosub spell.prep
  1774. if %trainhide = 1 then gosub hide
  1775. if $stamina < 95 then return
  1776. if matchre("%attack1", "(elbow|kick|gouge|punch|slap|claw)") then
  1777. {
  1778. put attack
  1779. wait
  1780. goto tactics.offhand
  1781. }
  1782. else put $1
  1783. match return The scimitar
  1784. match tactics.offhand Roundtime
  1785. matchre return (far too high|^What do|^You begin|^You aren't|^You are already|^At what are you trying)
  1786. matchre battle.small.loop ^There is nothing else to face
  1787. matchwait 6
  1788. return
  1789.  
  1790. ##########################################OFFHAND#################################################
  1791.  
  1792. offhand.start:
  1793. if $1 = left then var hand left
  1794. if $1 = right then var hand right
  1795. #var blades 1
  1796. if $righthandnoun = bow then gosub long.done2
  1797. if $righthand = bow then gosub short.done2
  1798. put wield rock from baldric
  1799. pause
  1800. goto offhand
  1801.  
  1802. offhand:
  1803. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then gosub Arrange
  1804. if %hand = left and $Offhand_Weapon.LearningRate > 33 then goto offhand.done
  1805. if %hand = right and $Light_Thrown.LearningRate > 33 then goto offhand.done
  1806. if %weaponloop = 1 and %t > %weapontimer then return
  1807. gosub parrydodge
  1808.  
  1809.  
  1810. gosub get.mallet
  1811. gosub throw.left
  1812. pause .25
  1813. #put stow %hand
  1814. goto offhand
  1815.  
  1816. offhand.done:
  1817. if %hand = left then var trainoffhand 0
  1818. if %hand = right then var trainlt 0
  1819. #gosub blade
  1820. var blades 0
  1821. return
  1822.  
  1823. throw.left:
  1824. if %retreat = 1 then gosub retreat
  1825. if %deadmonster = 1 then gosub arrange
  1826. if %buff = 1 then gosub buff
  1827. gosub spell.cast
  1828. if matchre("$monsterlist", "that is sleeping") and %traintarget = 1 then put prep devit 15
  1829. else if %traintarget = 1 and $spelltime = 0 then gosub spell.prep
  1830. gosub buff
  1831. #if $lefthand = Empty then put wield %hand blades from bald
  1832. #if $righthand = Empty then put wield %hand blades from bald
  1833. if $stamina < 80 then pause 3
  1834. put throw %hand
  1835. matchre small.loop ^There is nothing else to face!
  1836. matchre return Roundtime
  1837. matchre get.mallet ^What are you trying to throw
  1838. matchre blade WIELD HELP
  1839. matchwait 3
  1840.  
  1841. get.mallet:
  1842. if $righthand = Empty then put get rock
  1843. matchre blade ^Type "WIELD HELP
  1844. return
  1845.  
  1846. blade:
  1847. if $lefthandid > 0 then put stow left
  1848. #gosub retreat
  1849. pause .25
  1850. put stow blade;stow blade
  1851. matchre blade ^You pick up
  1852. matchre return ^Stow what
  1853. matchwait 3
  1854. goto blade
  1855.  
  1856. ##################################LONGBOW
  1857. longbow:
  1858. var traintarget 1
  1859. var trainhunt 0
  1860. var buff 0
  1861. var trainpower 0
  1862. var trainappraise 0
  1863. var trainhide 1
  1864. var retreat 0
  1865. var trainskin 1
  1866. var timer.parry 300
  1867. #gosub parrydodge 1
  1868. put get bow
  1869. gosub shield
  1870.  
  1871. longbow.prep:
  1872. #gosub parrydodge
  1873. if %deadmonster = 1 then gosub arrange
  1874. if $hidden = 1 then put unhide
  1875. if matchre ("$roomobjs", "((which|that) appears dead|\(dead\))") then gosub arrange
  1876. if $Bow.LearningRate > 33 and weaponloop = 1 then goto long.done
  1877. if %t > %weapontimer then goto long.done
  1878. if $charactername = Shankey then gosub long.buff
  1879.  
  1880. #if %buff = 1 and $spellsott = 0 then gosub star.buff sott 20
  1881. #if %buff = 1 and $spellmaf = 0 then gosub star.buff maf 20
  1882. #if %buff = 1 and $spellsop = 0 then gosub star.buff sop 20
  1883. goto long.load
  1884.  
  1885. long.buff:
  1886. if %buffing = 1 then return
  1887. if $mana < 40 then return
  1888. if $spellhol = 0 then
  1889. {
  1890. var buffing 1
  1891. if $spelltime > 0 then put rele spell
  1892. pause
  1893. put prep hol 30
  1894. return
  1895. }
  1896. if $spellstw = 0 then
  1897. {
  1898. var buffing 1
  1899. if $spelltime > 0 then put rele spell
  1900. pause
  1901. put prep stw 30
  1902. return
  1903. }
  1904. gosub buff
  1905. return
  1906.  
  1907. long.load:
  1908. if %t > %weapontimer then goto long.done
  1909. if %traintarget = 1 then gosub spell.prep %spell
  1910. if %retreat = 1 then gosub retreat
  1911. if $lefthandid > 0 then put stow left
  1912. if $spellhol = 1 then put load my arrows
  1913. else put load my bow
  1914. matchre arrow ^What weapon are you trying to load?
  1915. match aim Roundtime
  1916. match aim already loaded
  1917. matchwait 3
  1918.  
  1919. aim:
  1920. if %retreat = 1 then gosub retreat
  1921. put aim
  1922. match battle.small.loop There is nothing else to face!
  1923. match fire You begin to
  1924. match long.load isn't loaded!
  1925. matchwait 3
  1926.  
  1927.  
  1928. fire:
  1929. pause 3
  1930. gosub spell.cast
  1931. if %trainhide = 1 then gosub hide
  1932. if %retreat = 1 then gosub retreat
  1933. matchre longbow.prep Roundtime
  1934. #matchre arrange (balanced\]$|balance\]$|and a loud sigh escapes its form\.$)
  1935. if $hidden = 1 then put snipe
  1936. else put fire
  1937. matchwait 3
  1938. goto longbow.prep
  1939.  
  1940. long.done:
  1941. var trainlong 0
  1942. put unload
  1943. var getarrow 1
  1944. pause
  1945. return
  1946.  
  1947. arrow:
  1948. if $lefthandid > 0 then put stow left
  1949. gosub retreat
  1950. put stow arrow;stow arrow
  1951. matchre arrow ^You pick up
  1952. matchre return ^Stow what
  1953. matchre return ^You stop as you realize
  1954. matchwait 3
  1955. goto arrow
  1956.  
  1957. pause:
  1958. match aim advance on you
  1959. matchwait
  1960.  
  1961.  
  1962. ###########################################STALK#####################################################
  1963.  
  1964. hide:
  1965. if %retreat = 1 then return
  1966. if $hidden = 1 then return
  1967. #if $monstercount > 0 then put hide
  1968. put hide
  1969. wait
  1970. return
  1971.  
  1972. ###########################################TARGET####################################################
  1973.  
  1974. spell.prep:
  1975. if $prone = 1 then put stand
  1976. if $kneeling = 1 then put stand
  1977. if %trainom = 1 then return
  1978. if %buffing = 1 then return
  1979. if %traincyclic = 1 and %cyclicblock = 0 then goto cyclic
  1980. if %traintarget = 0 then return
  1981. gosub ts
  1982. if matchre("$lastcommand", "prep") then return
  1983. if matchre("$lastcommand", "target") then return
  1984. if $spelltime > 0 then return
  1985. if $mana < 40 then return
  1986. #if %trainbattle = 0 then put prep %spell %spellamount
  1987. if $monstercount = 0 then return
  1988. if $monstercount < %1 and %trainbattle = 1 then
  1989. {
  1990. if matchre ("%spell", "ff|fou|hh|he") and %trainbattle = 1 then put target %spell %spellamount
  1991. else if %trainbattle = 1 then put prep %spell %spellamount
  1992. }
  1993. else if $monstercount >= %1 then put target %secondspell %spellamount
  1994. pause
  1995. return
  1996.  
  1997. spell.cast:
  1998. if %buffing = 1 then var symb 0
  1999. if %trainom = 1 then return
  2000. if $spelltime < 10 then return
  2001. if $spelltime < 16 and $preparedspell = Harm Horde then return
  2002. if $spelltime < 13 and $preparedspell = Fire Shards then return
  2003. if $spelltime > 19 then var symb 0
  2004. if %symb = 1 then return
  2005. if $preparedspell = None then return
  2006. if %deadmonster = 1 then return
  2007. if $spelltime < 10 and %buffing = 1 then return
  2008. if %buffing = 1 then
  2009. {
  2010. put rele symb
  2011. pause .25
  2012. }
  2013. if $preparedspell = Ghost Shroud then
  2014. {
  2015. if $hidden = 1 then put unhide
  2016. evalmath cswait 15 - $spelltime
  2017. evalmath round %cswait
  2018. pause %cswait
  2019. }
  2020. if $preparedspell = Hydra Hex then
  2021. {
  2022. if $hidden = 1 then put unhide
  2023. evalmath cswait 15 - $spelltime
  2024. evalmath round %cswait
  2025. pause %cswait
  2026. put cast coz
  2027. pause
  2028. return
  2029. }
  2030. if %cam = 1 and %buffing = 1 then
  2031. {
  2032. put charge cuff 32
  2033. pause 6
  2034. }
  2035. if %buffing = 1 and $preparedspell != Ghost Shroud then
  2036. {
  2037. put invoke cuff spell
  2038. pause 2
  2039. }
  2040. if $preparedspell = Halo then put touch orb
  2041. if $preparedspell = Osrel Meraud then put cast orb
  2042. if $preparedspell = Sanctify Pattern then put cast ward
  2043. if $preparedspell = Shield of Light then put touch orb
  2044. else put cast
  2045. pause
  2046. var cam 1
  2047. var buffing 0
  2048. if $lefthandnoun = shield then put wear shield
  2049. pause
  2050. return
  2051. }
  2052. if $monstercount = 0 and %trainbattle = 1 then
  2053. {
  2054. put rele spell
  2055. pause
  2056. return
  2057. }
  2058. if $spelltime > 8 and %buffing = 0 then
  2059. {
  2060. put cast
  2061. pause
  2062. }
  2063. return
  2064. cyclic:
  2065. if $mana < 20 then put rele cyclic
  2066. if $mana < 40 then return
  2067. if $spelltime > 0 then return
  2068. if $spellghs = 1 then return
  2069. if $spellrev = 1 then return
  2070. if $Warding.LearningRate < $Utility.LearningRate then goto prepbes
  2071. else goto prepcs
  2072. return
  2073.  
  2074. prepcs:
  2075. put prep rev 16
  2076. pause
  2077. var buffing 1
  2078. return
  2079.  
  2080. prepbes:
  2081. put prep ghs 20
  2082. pause
  2083. var buffing 1
  2084. return
  2085. ##########################################SKINNIN######################################################
  2086.  
  2087. arrange:
  2088. if matchre("$lastcommand", "(gem|boxes|arrow)") then return
  2089. var deadmonster 0
  2090. return
  2091. if %getfang = 1 then
  2092. {
  2093. put arr fang
  2094. match skin You complete
  2095. match loot Arrange what
  2096. matchwait 3
  2097. goto arrange
  2098. }
  2099. if %trainskin = 0 then goto loot
  2100. #if $Skinning.LearningRate > 33 then goto loot
  2101. if %retreat = 1 then goto loot
  2102. skin:
  2103. put skin
  2104. matchre loot (^Skin what|cannot be skinned)
  2105. match loot Roundtime
  2106. match loot You must have one hand free to skin.
  2107. matchwait 1
  2108.  
  2109. loot:
  2110. put face next
  2111. if %boxes = 1 then gosub lootbox
  2112. else put loot
  2113. pause 1
  2114. if $righthandnoun = bow then gosub arrow
  2115. if $righthandnoun = bow then gosub arrow
  2116. if %blades = 1 then gosub blade
  2117. if %getarrow = 1 then
  2118. {
  2119. gosub arrow
  2120. var getarrow 0
  2121. }
  2122. goto stow.loot
  2123.  
  2124.  
  2125.  
  2126. stow.loot:
  2127. #if matchre ("$roomobjs", "(coin)") then gosub get.gem coin
  2128. if matchre ("$roomobjs", "(gold coi)") then put stow gold coin
  2129. if matchre ("$roomobjs", "(treasure map)") then gosub get.gem map
  2130. if matchre ("$roomobjs", "(scroll)") then gosub get.gem scroll
  2131. if matchre ("$roomobjs", "(tablet)") then gosub get.gem tablet
  2132. if matchre ("$roomobjs", "(vellum)") then gosub get.gem vellum
  2133. if matchre ("$roomobjs", "(bark)") then gosub get.gem bark
  2134. #if matchre ("$roomobjs", "(ruby)") then gosub get.gem ruby
  2135. #mif matchre ("$roomobjs", "(diamond)") then gosub get.gem diamond
  2136. pause .25
  2137. put stow gem
  2138.  
  2139. huntchasecheck:
  2140. if $monstercount = 0 and %huntchase = 1 then
  2141. {
  2142. put hunt
  2143. pause 8
  2144. put #var last.hunt.time $gametime
  2145. if %no.hunt = 1 then
  2146. {
  2147. var no.hunt 0
  2148. return
  2149. }
  2150. put hunt %r
  2151. }
  2152. return
  2153.  
  2154. return
  2155.  
  2156.  
  2157. get.gem:
  2158. if $1 != coin then put #echo >Log Found a $1!
  2159. put get $1;put $1 in ruck
  2160. pause
  2161. return
  2162.  
  2163. lootbox:
  2164. put loot
  2165. pause
  2166. put stow boxes
  2167. return
  2168.  
  2169. collectboxes:
  2170. var trainmagic 0
  2171. var trainpower 0
  2172. var huntchase 1
  2173. var trainarcana 0
  2174. var traintarget 1
  2175. var trainhunt 1
  2176. var buff 0
  2177. var trainpower 0
  2178. var trainappraise 0
  2179. var trainhide 0
  2180. var retreat 0
  2181. var trainskin 0
  2182. var boxes 1
  2183. var trainweapon 1
  2184. put get %weapon
  2185. goto battle.loop
  2186.  
  2187. retreat:
  2188. if $monstercount > %critter.count then var retreat 1
  2189. if $monstercount <= %critter.count then var retreat 0
  2190. if $health < 85 then var retreat 1
  2191. if %retreat = 1 and $lastcommand != target then put retreat
  2192. return
  2193.  
  2194. ########################arcana
  2195. arcana:
  2196. #if $monstercount > %critter.count then return
  2197. #if $monstercount = %critter.count then return
  2198. if %target = 0 then return
  2199. if $mana < 40 then return
  2200. if $preparedspell = None then return
  2201. pause
  2202. send charge wrist 9
  2203. wait
  2204. send charge wrist 9
  2205. wait
  2206. if $preparedspell = Fire Shards then return
  2207. send invoke my wrist
  2208. wait
  2209. return
  2210.  
  2211. #########
  2212.  
  2213. parrydodge:
  2214. if contains("$last.parrydodge.time","$") then goto parrydodge.start
  2215. evalmath time.since.last.parrydodge $gametime - $last.parrydodge.time
  2216. evalmath time.to.parrydodge %timer.parrydodge - %time.since.last.parrydodge
  2217. #put #echo cyan %time.to.parrydodge seconds left to parrydodge
  2218. if %time.since.last.parrydodge < %timer.parrydodge then return
  2219. goto parrydodge.start
  2220.  
  2221. parrydodge.start:
  2222. put #var last.parrydodge.time $gametime
  2223. put rele cyclic
  2224. if $righthandnoun = bow then return
  2225. if $Shield_Usage.LearningRate > $Parry_Ability.LearningRate then gosub parry
  2226. else gosub shield
  2227. return
  2228.  
  2229. ########################################
  2230.  
  2231. summon:
  2232. pause
  2233. put get %familiar talisman
  2234. pause
  2235. put summon %familiar
  2236. waitforre ^You put your talisman
  2237. if %looping = 1 then goto loop
  2238. if %trainbattle = 1 then goto battle
  2239. goto static
  2240.  
  2241. familiarcommand:
  2242. var retrieve 0
  2243. if $righthandid > 0 then
  2244. {
  2245. var retrieve $righthandnoun
  2246. put stow right
  2247. pause
  2248. }
  2249. put get %familiar talisman from back
  2250. pause
  2251. put summon rat
  2252. pause
  2253. put tell %familiar to %famcommand
  2254. pause 1
  2255. put stow talisman
  2256. pause
  2257. if %retrieve != 0 then put get %retrieve
  2258. pause
  2259. if %looping = 1 then goto loop
  2260. if %trainbattle = 1 then goto battle
  2261. goto static
  2262.  
  2263. ########################################
  2264.  
  2265. herb:
  2266. if "$charactername" = "Gorkus" then var herbpouch tattered pouch
  2267. if "$charactername" = "Elizandra" then var herbpouch spider pouch
  2268. if "$charactername" = "Shankhar" then var herbpouch skull
  2269. if "$charactername" = "Shankey" then var herbpouch thigh pouch
  2270. if "$charactername" = "Stardustt" then var herbpouch thigh bag
  2271. if "$charactername" = "Hanafae" then var herbpouch apron
  2272. if "$charactername" = "Tabetha" then var herbpouch herb pouch
  2273.  
  2274. var exthead 0
  2275. var inthead 0
  2276. var extneck 0
  2277. var intneck 0
  2278. var extlimb 0
  2279. var intlimb 0
  2280. var extchest 0
  2281. var intchest 0
  2282. var extabdomen 0
  2283. var intabdomen 0
  2284. var extback 0
  2285. var intback 0
  2286. var exteye 0
  2287. var inteye 0
  2288. var extskin 0
  2289. var intskin 0
  2290. var extscar 0
  2291. var intscar 0
  2292.  
  2293.  
  2294. ## minor wounds ##
  2295.  
  2296. action var exthead 1 when minor abrasions to the head
  2297. action var exthead 1 when tiny scratches to the head
  2298. action var extneck 1 when minor abrasions to the neck
  2299. action var extneck 1 when tiny scratches to the neck
  2300. action var extlimb 1 when minor abrasions to the left hand
  2301. action var extlimb 1 when tiny scratches to the left hand
  2302. action var extlimb 1 when minor abrasions to the right hand
  2303. action var extlimb 1 when tiny scratches to the right hand
  2304. action var extlimb 1 when minor abrasions to the left arm
  2305. action var extlimb 1 when tiny scratches to the left arm
  2306. action var extlimb 1 when minor abrasions to the right arm
  2307. action var extlimb 1 when tiny scratches to the right arm
  2308. action var extlimb 1 when minor abrasions to the left leg
  2309. action var extlimb 1 when tiny scratches to the left leg
  2310. action var extlimb 1 when minor abrasions to the right leg
  2311. action var extlimb 1 when tiny scratches to the right leg
  2312. action var extchest 1 when minor abrasions to the chest
  2313. action var extchest 1 when tiny scratches to the chest
  2314. action var extabdomen 1 when minor abrasions to the abdomen
  2315. action var extabdomen 1 when tiny scratches to the abdomen
  2316. action var extback 1 when minor abrasions to the back
  2317. action var extback 1 when tiny scratches to the back
  2318. action var exteye 1 when minor abrasions to the left eye
  2319. action var exteye 1 when tiny scratches to the left eye
  2320. action var exteye 1 when minor abrasions to the right eye
  2321. action var exteye 1 when tiny scratches to the right eye
  2322.  
  2323.  
  2324. ## external wounds ##
  2325.  
  2326. action var exthead 1 when cuts and bruises about the head
  2327. action var exthead 1 when deep cuts about the head
  2328. action var exthead 1 when deep slashes and cuts about the head
  2329. action var exthead 1 when cracked skull with deep slashes
  2330. action var extneck 1 when cuts and bruises about the neck
  2331. action var extneck 1 when deep cuts across the neck
  2332. action var extneck 1 when deep slashes across the neck
  2333. action var extneck 1 when gaping holes in the neck
  2334. action var extlimb 1 when cuts and bruises about the left hand
  2335. action var extlimb 1 when cuts and bruises about the right hand
  2336. action var extlimb 1 when cuts and bruises about the left arm
  2337. action var extlimb 1 when cuts and bruises about the right arm
  2338. action var extlimb 1 when cuts and bruises about the left leg
  2339. action var extlimb 1 when cuts and bruises about the right leg
  2340. action var extlimb 1 when deep cuts across the left hand
  2341. action var extlimb 1 when deep cuts across the right hand
  2342. action var extlimb 1 when deep cuts across the left arm
  2343. action var extlimb 1 when deep cuts across the right arm
  2344. action var extlimb 1 when deep cuts across the left leg
  2345. action var extlimb 1 when deep cuts across the right leg
  2346. action var extlimb 1 when deep slashes across the left hand
  2347. action var extlimb 1 when deep slashes across the right hand
  2348. action var extlimb 1 when deep slashes across the left arm
  2349. action var extlimb 1 when deep slashes across the right arm
  2350. action var extlimb 1 when deep slashes across the left leg
  2351. action var extlimb 1 when deep slashes across the right leg
  2352. action var extlimb 1 when left hand with gaping holes
  2353. action var extlimb 1 when right hand with gaping holes
  2354. action var extlimb 1 when left arm with gaping holes
  2355. action var extlimb 1 when right arm with gaping holes
  2356. action var extlimb 1 when left leg with gaping holes
  2357. action var extlimb 1 when right leg with gaping holes
  2358. action var extchest 1 when cuts and bruises about the chest
  2359. action var extchest 1 when deep cuts across the chest
  2360. action var extchest 1 when deep slashes across the chest
  2361. action var extchest 1 when gaping holes in the chest
  2362. action var extabdomen 1 when cuts and bruises about the abdomen
  2363. action var extabdomen 1 when deep cuts across the abdomen
  2364. action var extabdomen 1 when deep slashes across the abdomen
  2365. action var extabdomen 1 when gaping holes in the abdomen
  2366. action var extback 1 when cuts and bruises about the back
  2367. action var extback 1 when deep cuts across the back
  2368. action var extback 1 when deep slashes across the back
  2369. action var extback 1 when shattered back with gaping wounds
  2370. action var exteye 1 when cuts and bruises about the left eye
  2371. action var exteye 1 when cuts and bruises about the right eye
  2372. action var exteye 1 when black and blue left eye
  2373. action var exteye 1 when black and blue right eye
  2374. action var exteye 1 when bruised and swollen left eye
  2375. action var exteye 1 when bruised and swollen right eye
  2376. action var exteye 1 when bruised, swollen and bleeding left eye
  2377. action var exteye 1 when bruised, swollen and bleeding right eye
  2378. action var exteye 1 when bruised, swollen and shattered left eye
  2379. action var exteye 1 when bruised, swollen and shattered right eye
  2380. action var exteye 1 when pulpy cavity for a left eye
  2381. action var exteye 1 when pulpy cavity for a right eye
  2382.  
  2383.  
  2384. ## internal wounds ##
  2385.  
  2386. action var inthead 1 when bruised head
  2387. action var inthead 1 when badly bruised and swollen head
  2388. action var inthead 1 when major swelling and bruising around the head
  2389. action var inthead 1 when ghastly bloated head with bleeding from the ears
  2390.  
  2391. action var intneck 1 when bruising around the neck
  2392. action var intneck 1 when bruised neck|neck with odd protrusions under the skin
  2393. action var intlimb 1 when bruising around the left hand
  2394. action var intlimb 1 when bruising around the right hand
  2395. action var intlimb 1 when bruising around the left arm
  2396. action var intlimb 1 when bruising around the right arm
  2397. action var intlimb 1 when bruising around the left leg
  2398. action var intlimb 1 when bruising around the right leg
  2399. action var intlimb 1 when deeply bruised left hand
  2400. action var intlimb 1 when deeply bruised right hand
  2401. action var intlimb 1 when deeply bruised left arm
  2402. action var intlimb 1 when deeply bruised right arm
  2403. action var intlimb 1 when deeply bruised left leg
  2404. action var intlimb 1 when deeply bruised right arm
  2405. action var intlimb 1 when deeply bruised right leg
  2406. action var intlimb 1 when swollen and shattered left hand
  2407. action var intlimb 1 when swollen and shattered right hand
  2408. action var intlimb 1 when swollen and shattered left arm
  2409. action var intlimb 1 when swollen and shattered right arm
  2410. action var intlimb 1 when swollen and shattered left leg
  2411. action var intlimb 1 when swollen and shattered right leg
  2412.  
  2413. action var intchest 1 when bruising in the chest
  2414. action var intchest 1 when swollen and bruised chest
  2415. action var intchest 1 when swollen and deeply bruised chest
  2416. action var intabdomen 1 when bruising in the abdomen
  2417. action var intabdomen 1 when swollen and bruised abdomen
  2418. action var intabdomen 1 when discolored abdomen
  2419. action var intback 1 when bruising in the back
  2420. action var intback 1 when swollen and bruised back
  2421. action var intback 1 when swollen and deeply bruised back
  2422. action var inteye 1 when bruising around the left eye
  2423. action var inteye 1 when bruising around the right eye
  2424. action var inteye 1 when swollen and bruised left eye
  2425. action var inteye 1 when swollen and bruised right eye
  2426. action var inteye 1 when bruised and crossed left eye
  2427. action var inteye 1 when bruised and crossed right eye
  2428. action var inteye 1 when bruised and blind left eye
  2429. action var inteye 1 when bruised and blind right eye
  2430. action var inteye 1 when bruised and cloudy left eye
  2431. action var inteye 1 when bruised and cloudy right eye
  2432. action var intskin 1 when minor twitching
  2433. action var intskin 1 when severe twitching
  2434. action var intskin 1 when difficulty controlling actions
  2435. action var intskin 1 when paralysis of the entire body
  2436.  
  2437. ## scars ##
  2438.  
  2439. action var extscar 1 when invisible scars
  2440. action var extscar 1 when tiny scars
  2441. action var extscar 1 when minor scars
  2442. action var extscar 1 when minor scarring
  2443. action var extscar 1 when severe scarring
  2444. action var extscar 1 when deeply scarred gashes
  2445. action var extscar 1 when punctured and shriveled
  2446. action var extscar 1 when mangled and malformed head
  2447. action var extscar 1 when abdomen filled with ugly chunks of scarred
  2448. action var extscar 1 when eye socket overgrown with bits of odd shaped flesh
  2449. action var intscar 1 when occasional twitch
  2450. action var intscar 1 when constant twitch
  2451. action var intscar 1 when clouded left eye
  2452. action var intscar 1 when clouded right eye
  2453. action var intscar 1 when paralyzed left hand
  2454. action var intscar 1 when paralyzed right hand
  2455. action var intscar 1 when paralyzed left arm
  2456. action var intscar 1 when paralyzed right arm
  2457. action var intscar 1 when paralyzed left leg
  2458. action var intscar 1 when paralyzed right leg
  2459. action var intscar 1 when paralyzed neck
  2460. action var intscar 1 when somewhat emaciated look
  2461. action var intscar 1 when painful chest area and difficulty getting a breath
  2462. action var intscar 1 when numbness in your arms and legs
  2463.  
  2464. herbstart:
  2465. if contains("$last.herb.time","$") then goto herbcast
  2466. evalmath time.since.last.herb $gametime - $last.herb.time
  2467. evalmath time.to.herb %timer.herb - %time.since.last.herb
  2468. echo %time.to.herb seconds left until you can eat herbs again.
  2469. if %trainbattle = 1 and %time.since.last.herb < %timer.herb then goto battle
  2470. if %time.since.last.herb < %timer.herb then goto static
  2471.  
  2472. herbcast:
  2473. put health
  2474. pause
  2475. put #var last.herb.time $gametime
  2476. if %exthead = 1 then gosub consume nemoih root
  2477. if %inthead = 1 then gosub consume eghmok potion
  2478. if %extneck = 1 then gosub consume georin grass
  2479. if %intneck = 1 then gosub consume riolur leaf
  2480. if %extlimb = 1 then gosub consume jadice flower
  2481. if %intlimb = 1 then gosub consume yelith root
  2482. if %extchest = 1 then gosub consume plovik leaf
  2483. if %intchest = 1 then gosub consume ithor potion
  2484. if %extabdomen = 1 then gosub consume nilos grass
  2485. if %intabdomen = 1 then gosub consume muljin sap
  2486. if %extback = 1 then gosub consume hulnik grass
  2487. if %intback = 1 then gosub consume junliar stem
  2488. if %exteye = 1 then gosub consume sufil sap
  2489. if %inteye = 1 then gosub consume aevaes solution
  2490. if %intscar = 1 then gosub consume hisan salve
  2491. if %extscar = 1 then gosub consume cebi root
  2492. if %intskin = 1 then gosub consume l elixir
  2493. goto herbdone
  2494.  
  2495.  
  2496. consume:
  2497. pause .25
  2498. var species $1
  2499. var medium $2
  2500. if matchre("%species", "(nemoih|georin|jadice|plovik|nilos|hulnik|sufil)") then var extscar 1
  2501. if matchre("%species", "(eghmok|riolur|yelith|ithor|muljin|junliar|aevaes)") then var intscar 1
  2502. if matchre("%medium", "(root|leaf|grass|sap|stem|salve|flower)") then
  2503. {
  2504. put eat %species %medium
  2505. matchre noherb ^What were you refer
  2506. matchwait 1
  2507. }
  2508. if matchre("%medium", "(potion|solution|elixir)") then
  2509. {
  2510. put drink %species %medium
  2511. matchre noherb ^What were you refer
  2512. matchwait 1
  2513. }
  2514.  
  2515. return
  2516.  
  2517. noherb:
  2518. put #echo >Log pink Out of %species %medium
  2519. return
  2520.  
  2521. herbdone:
  2522. var exthead 0
  2523. var inthead 0
  2524. var extneck 0
  2525. var intneck 0
  2526. var extlimb 0
  2527. var intlimb 0
  2528. var extchest 0
  2529. var intchest 0
  2530. var extabdomen 0
  2531. var intabdomen 0
  2532. var extback 0
  2533. var intback 0
  2534. var exteye 0
  2535. var inteye 0
  2536. var extscar 0
  2537. var intscar 0
  2538. var intskin 0
  2539. if %trainbattle = 1 then goto battle
  2540. goto static
  2541.  
  2542. herbcount:
  2543.  
  2544. action var cebi 1 when cebi root
  2545. action var yelith 1 when yelith root
  2546. action var ithor 1 when ithor potion
  2547. action var plovik 1 when plovik leaf
  2548. action var nilos 1 when nilos grass
  2549. action var sufil 1 when sufil sap
  2550. action var hulnik 1 when hulnik grass
  2551. action var georin 1 when georin grass
  2552. action var riolur 1 when riolur leaf
  2553. action var muljin 1 when muljin sap
  2554. action var nemoih 1 when nemoih root
  2555. action var jadice 1 when jadice flower
  2556. action var junilar 1 when junliar stem
  2557. action var hisan 1 when hisan salve
  2558. action var eghmok 1 when eghmok potion
  2559. action var aevaes 1 when aevaes solution
  2560.  
  2561. var cebi 0
  2562. var yelith 0
  2563. var ithor 0
  2564. var plovik 0
  2565. var nilos 0
  2566. var sufil 0
  2567. var hulnik 0
  2568. var georin 0
  2569. var riolur 0
  2570. var muljin 0
  2571. var jadice 0
  2572. var junilar 0
  2573. var hisan 0
  2574. var eghmok 0
  2575. var aevaes 0
  2576.  
  2577. put inv hide pouch
  2578. pause
  2579.  
  2580.  
  2581. if %cebi = 0 then echo Need some cebi root
  2582. if %hisan = 0 then echo Need some hisan salve
  2583. if %yelith = 0 then echo Need some yelith root
  2584. if %ithor = 0 then echo Need some ithor potion
  2585. if %plovik = 0 then echo Need some plovik leaf
  2586. if %nilos = 0 then echo Need some nilos grass
  2587. if %sufil = 0 then echo Need some sufil sap
  2588. if %hulnik = 0 then echo Need some hulnik grass
  2589. if %georin = 0 then echo Need some georin grass
  2590. if %riolur = 0 then echo Need some riolur leaf
  2591. if %muljin = 0 then echo Need some muljin sap
  2592. if %nemoih = 0 then echo Need some nemoih root
  2593. if %jadice = 0 then echo Need some jadice flower
  2594. if %junilar = 0 then echo Need some junilar stem
  2595. if %eghmok = 0 then echo Need some eghmok potion
  2596. if %aevaes = 0 then echo Need some aevaes solution
  2597. goto static
  2598.  
  2599. ################################################## GOTO
  2600. goto:
  2601. put #goto %room
  2602. pause
  2603. if $roomid = %room then return
  2604. pause 5
  2605. #if $roomid = 1 then return
  2606. #if $roomid = 121 then return
  2607. #if $roomid = $1 then return
  2608. else goto goto
  2609.  
  2610. ################################################## PREDICT
  2611. predict:
  2612. if %trainbattle = 1 then return
  2613. if $Astrology.LearningRate > 32 then var predict 0
  2614. if $Astrology.LearningRate < 5 then var predict 1
  2615. if %predict = 0 then return
  2616. if %inside = 1 then return
  2617. if $spellpg = 0 then
  2618. {
  2619. pause
  2620. gosub star.buff pg 30
  2621. }
  2622. if $Astrology.LearningRate > 33 then return
  2623. if contains("$last.predict.time","$") then goto predict.start
  2624. evalmath time.since.last.predict $gametime - $last.predict.time
  2625. evalmath time.to.predict %timer.predict - %time.since.last.predict
  2626. #put #echo cyan %time.to.predict seconds left to predict
  2627. if %time.since.last.predict < %timer.predict then return
  2628. goto predict.start
  2629.  
  2630. predict.start:
  2631. if %predictready = 0 then return
  2632. if $Time.isDay = 1 then
  2633. {
  2634. put #var last.predict.time $gametime
  2635. put obs elant sun
  2636. pause 5
  2637. match predictcount add 1
  2638. if %predictcount > 5 then goto predict.state
  2639. else return
  2640. }
  2641.  
  2642. if $Time.isDay = 0 then
  2643. {
  2644. put #var last.predict.time $gametime
  2645. put obs magpie
  2646. pause 6
  2647. match predictcount add 1
  2648. if %predictcount > 5 then goto predict.state
  2649. else return
  2650. }
  2651. put #var last.predict.time $gametime
  2652. return
  2653.  
  2654. predict.state:
  2655. var predictcount 0
  2656. pause
  2657. put predict state all
  2658. pause 15
  2659. if %predictmagic = 1 then gosub align magic
  2660. if %predictlore = 1 then gosub align lore
  2661. if %predictoffense = 1 then gosub align offense
  2662. if %predictdefense = 1 then gosub align defense
  2663. if %predictsurvival = 1 then gosub align survival
  2664. return
  2665.  
  2666. align:
  2667. put align $1
  2668. pause 2
  2669. put predict future stardustt
  2670. pause 10
  2671. return
  2672.  
  2673. ###############################
  2674. prepare:
  2675. return
  2676.  
  2677.  
  2678. newclimb:
  2679. gosub goto 412
  2680. pause
  2681.  
  2682.  
  2683. CLIMB-001:
  2684. put #echo cyan CLIMB-001
  2685. gosub climb.check
  2686. if %climb = 0 then goto FAIL-001
  2687. math wall.counter add 1
  2688. match PASS-001 [Outside East Wall, Footpath]
  2689. match FAIL-001 You must be standing
  2690. match FAIL-001 steepness is intimidating
  2691. match FAIL-001 can't seem to find purchase
  2692. match FAIL-001 find it hard going.
  2693. match FAIL-001 your footing is questionable
  2694. match FAIL-001 slip after a few feet
  2695. match FAIL-001 A wave of dizziness hits you
  2696. match FAIL-001 Struck by vertigo
  2697. put climb break
  2698. matchwait
  2699.  
  2700. PASS-001:
  2701. put #echo cyan PASS-001
  2702. move NoRTH
  2703. move gO gate
  2704. move WeST
  2705. move gO stair
  2706. move SoUTH
  2707. goto CLIMB-002
  2708.  
  2709. FAIL-001:
  2710. put #echo cyan FAIL-001
  2711. pause
  2712. goto CLIMB-002
  2713.  
  2714. CLIMB-002:
  2715. put #echo cyan CLIMB-002
  2716. gosub climb.check
  2717. if %climb = 0 then goto FAIL-002
  2718. gosub prepare
  2719. math wall.counter add 1
  2720. match PASS-002 [Northeast Wilds, Outside Northeast Gate]
  2721. match FAIL-002 You must be standing
  2722. match FAIL-002 steepness is intimidating
  2723. match FAIL-002 can't seem to find purchase
  2724. match FAIL-002 find it hard going.
  2725. match FAIL-002 your footing is questionable
  2726. match FAIL-002 slip after a few feet
  2727. match FAIL-002 A wave of dizziness hits you
  2728. match FAIL-002 Struck by vertigo
  2729. put ClIMB embrasure
  2730. matchwait
  2731.  
  2732.  
  2733. FAIL-002:
  2734. put #echo cyan FAIL-002
  2735. move n
  2736. move go stair
  2737. #gosub cast
  2738. ############## mana here
  2739. move e
  2740. move go gate
  2741. move go footpath
  2742. goto CLIMB-01
  2743.  
  2744. PASS-002:
  2745. put #echo cyan PASS-002
  2746. move gO footpath
  2747. goto CLIMB-01
  2748.  
  2749. CLIMB-01:
  2750. put #echo cyan CLIMB-01
  2751. setvariable fail FAIL-01
  2752. gosub climb.check
  2753. if %climb = 0 then goto FAIL-01
  2754. gosub prepare
  2755. math wall.counter add 1
  2756. match PASS-01 [Crossing, East Wall Battlements]
  2757. match FAIL-01 You must be standing
  2758. match FAIL-01 steepness is intimidating
  2759. match FAIL-01 can't seem to find purchase
  2760. match FAIL-01 find it hard going.
  2761. match FAIL-01 your footing is questionable
  2762. match FALLEN slip after a few feet
  2763. match FAIL-01 A wave of dizziness hits you
  2764. match FAIL-01 Struck by vertigo
  2765. put ClIMB wall
  2766. matchwait
  2767.  
  2768. PASS-01:
  2769. put #echo cyan PASS-01
  2770. move n
  2771. move gO stair
  2772. move e
  2773. move gO gate
  2774. move gO footpath
  2775. goto FAIL-01
  2776.  
  2777. FAIL-01:
  2778. put #echo cyan FAIL-01
  2779. move s
  2780. move down
  2781. #gosub cast
  2782. ############## mana here
  2783. move s
  2784. move s
  2785. move southwest
  2786. goto CLIMB-02
  2787.  
  2788. CLIMB-02:
  2789. put #echo cyan CLIMB-02
  2790. setvariable fail FAIL-02
  2791. gosub climb.check
  2792. if %climb = 0 then goto FAIL-02
  2793. gosub prepare
  2794. math wall.counter add 1
  2795. match PASS-02 [Crossing, East Wall Battlements]
  2796. match FAIL-02 You must be standing
  2797. match FAIL-02 steepness is intimidating
  2798. match FAIL-02 can't seem to find purchase
  2799. match FAIL-02 find it hard going.
  2800. match FAIL-02 your footing is questionable
  2801. match FALLEN slip after a few feet
  2802. match FAIL-02 A wave of dizziness hits you
  2803. match FAIL-02 Struck by vertigo
  2804. put ClIMB wall
  2805. matchwait
  2806.  
  2807. PASS-02:
  2808. put #echo cyan PASS-02
  2809. move s
  2810. move gO stair
  2811. move gO gate
  2812. move gO bush
  2813. move n
  2814. goto CLIMB-03
  2815.  
  2816. FAIL-02:
  2817. put #echo cyan FAIL-02
  2818. move s
  2819. goto CLIMB-03
  2820.  
  2821. CLIMB-03:
  2822. put #echo cyan CLIMB-03
  2823. #gosub cast
  2824. ############## mana here
  2825. setvariable fail FAIL-03
  2826. gosub climb.check
  2827. if %climb = 0 then goto FAIL-03
  2828. gosub prepare
  2829. math wall.counter add 1
  2830. match PASS-03 [Crossing, East Wall Battlements]
  2831. match FAIL-03 You must be standing
  2832. match FAIL-03 steepness is intimidating
  2833. match FAIL-03 can't seem to find purchase
  2834. match FAIL-03 find it hard going.
  2835. match FAIL-03 your footing is questionable
  2836. match FALLEN slip after a few feet
  2837. match FAIL-03 A wave of dizziness hits you
  2838. match FAIL-03 Struck by vertigo
  2839. put ClIMB wall
  2840. matchwait
  2841.  
  2842. PASS-03:
  2843. put #echo cyan PASS-03
  2844. move s
  2845. move gO stair
  2846. move gO gate
  2847. goto CLIMB-04
  2848.  
  2849. FAIL-03:
  2850. put #echo cyan FAIL-03
  2851. #gosub cast
  2852. move s
  2853. goto CLIMB-04
  2854.  
  2855. CLIMB-04:
  2856. put #echo cyan CLIMB-04
  2857. setvariable fail FAIL-04
  2858. gosub climb.check
  2859. if %climb = 0 then goto FAIL-04
  2860. math wall.counter add 1
  2861. match PASS-04 [Crossing, East Gate Battlements]
  2862. match PASS-041 [Crossing, East Wall Battlements]
  2863. match FAIL-04 You must be standing
  2864. match FAIL-04 steepness is intimidating
  2865. match FAIL-04 can't seem to find purchase
  2866. match FAIL-04 find it hard going.
  2867. match FAIL-04 your footing is questionable
  2868. match FALLEN slip after a few feet
  2869. match FAIL-04 A wave of dizziness hits you
  2870. match FAIL-04 Struck by vertigo
  2871. put ClIMB wall
  2872. matchwait
  2873.  
  2874. PASS-04:
  2875. put #echo cyan PASS-04
  2876. pause
  2877. goto CLIMB-05
  2878.  
  2879. PASS-041:
  2880. put #echo cyan PASS-041
  2881. move s
  2882. goto CLIMB-05
  2883.  
  2884. FAIL-04:
  2885. put #echo cyan FAIL-04
  2886. put look gate
  2887. match FAIL-042 I could not find what you were referring to
  2888. match FAIL-041 It is open
  2889. matchwait
  2890.  
  2891. FAIL-042:
  2892. put #play alarm.wav
  2893. move s
  2894. goto FAIL-041
  2895.  
  2896. FAIL-041:
  2897. put ret
  2898. wait
  2899. put ret
  2900. move gO gate
  2901. move gO stair
  2902. goto CLIMB-05
  2903.  
  2904. CLIMB-05:
  2905. put #echo cyan CLIMB-05
  2906. setvariable fail FAIL-05
  2907. gosub climb.check
  2908. if %climb = 0 then goto FAIL-05
  2909. gosub prepare
  2910. math wall.counter add 1
  2911. match PASS-05 [Eastern Tier, Outside Gate]
  2912. match PASS-05 [Outside East Wall, Footpath]
  2913. match FAIL-05 You must be standing
  2914. match FAIL-05 steepness is intimidating
  2915. match FAIL-05 can't seem to find purchase
  2916. match FAIL-05 find it hard going.
  2917. match FAIL-05 your footing is questionable
  2918. match FALLEN slip after a few feet
  2919. match FAIL-05 A wave of dizziness hits you
  2920. match FAIL-05 Struck by vertigo
  2921. put ClIMB embrasure
  2922. matchwait
  2923.  
  2924. PASS-05:
  2925. put #echo cyan PASS-05
  2926. ###added move s move s
  2927. put ret
  2928. wait
  2929. put ret
  2930. move gO gate
  2931. move gO stair
  2932. move n
  2933. goto CLIMB-06
  2934.  
  2935. FAIL-05:
  2936. put #echo cyan FAIL-05
  2937. move n
  2938. goto CLIMB-06
  2939.  
  2940. CLIMB-06:
  2941. put #echo cyan CLIMB-06
  2942. #gosub cast
  2943. ############## mana here
  2944. setvariable fail FAIL-06
  2945. gosub climb.check
  2946. if %climb = 0 then goto FAIL-06
  2947. gosub prepare
  2948. math wall.counter add 1
  2949. match PASS-06 [Outside East Wall, Footpath]
  2950. match FAIL-06 You must be standing
  2951. match FAIL-06 steepness is intimidating
  2952. match FAIL-06 can't seem to find purchase
  2953. match FAIL-06 find it hard going.
  2954. match FAIL-06 your footing is questionable
  2955. match FALLEN slip after a few feet
  2956. match FAIL-06 A wave of dizziness hits you
  2957. match FAIL-06 Struck by vertigo
  2958. put ClIMB break
  2959. matchwait
  2960.  
  2961. PASS-06:
  2962. put #echo cyan PASS-06
  2963. move s
  2964. move gO gate
  2965. move gO stair
  2966. move n
  2967. goto CLIMB-07
  2968.  
  2969. FAIL-06:
  2970. put #echo cyan FAIL-06
  2971. pause
  2972. goto CLIMB-07
  2973.  
  2974. CLIMB-07:
  2975. put #echo cyan CLIMB-07
  2976. #gosub cast
  2977. ############## mana here
  2978. setvariable fail FAIL-07
  2979. gosub climb.check
  2980. if %climb = 0 then goto FAIL-07
  2981. gosub prepare
  2982. math wall.counter add 1
  2983. match PASS-07 [Outside East Wall, Footpath]
  2984. match FAIL-07 You must be standing
  2985. match FAIL-07 steepness is intimidating
  2986. match FAIL-07 can't seem to find purchase
  2987. match FAIL-07 find it hard going.
  2988. match FAIL-07 your footing is questionable
  2989. match FALLEN slip after a few feet
  2990. match FAIL-07 A wave of dizziness hits you
  2991. match FAIL-07 Struck by vertigo
  2992. put ClIMB embrasure
  2993. matchwait
  2994.  
  2995. PASS-07:
  2996. put #echo cyan PASS-07
  2997. move s
  2998. move s
  2999. move gO gate
  3000. goto TRAVEL-08
  3001.  
  3002. FAIL-07:
  3003. put #echo cyan FAIL-07
  3004. #gosub cast
  3005. move s
  3006. move gO stair
  3007. goto TRAVEL-08
  3008.  
  3009. TRAVEL-08:
  3010. move w
  3011. move w
  3012. move w
  3013. move w
  3014. move nw
  3015. move n
  3016. move n
  3017. move n
  3018. move n
  3019. move n
  3020. move n
  3021. move w
  3022. move w
  3023. move w
  3024. move w
  3025. move gO bridge
  3026. move w
  3027. move w
  3028. move w
  3029. move w
  3030. move gO stair
  3031. move s
  3032.  
  3033. CLIMB-08:
  3034. put #echo cyan CLIMB-08
  3035. ############## mana here
  3036. setvariable fail FAIL-08
  3037. gosub climb.check
  3038. if %climb = 0 then goto FAIL-08
  3039. gosub prepare
  3040. math wall.counter add 1
  3041. match PASS-08 [Mycthengelde, Flatlands]
  3042. match FAIL-08 You must be standing
  3043. match FAIL-08 steepness is intimidating
  3044. match FAIL-08 can't seem to find purchase
  3045. match FAIL-08 find it hard going.
  3046. match FAIL-08 your footing is questionable
  3047. match FALLEN slip after a few feet
  3048. match FAIL-08 A wave of dizziness hits you
  3049. match FAIL-08 Struck by vertigo
  3050. put ClIMB embrasure
  3051. matchwait
  3052.  
  3053. PASS-08:
  3054. put #echo cyan PASS-08
  3055. pause
  3056. goto CLIMB-09
  3057.  
  3058. FAIL-08:
  3059. put #echo cyan FAIL-08
  3060. #gosub cast
  3061. move n
  3062. move go stair
  3063. move go gate
  3064. move nw
  3065. goto CLIMB-09
  3066.  
  3067. CLIMB-09:
  3068. put #echo cyan CLIMB-09
  3069. setvariable fail FAIL-09
  3070. gosub climb.check
  3071. if %climb = 0 then goto FAIL-09
  3072. gosub prepare
  3073. math wall.counter add 1
  3074. match PASS-09 [Crossing, West Wall Battlements]
  3075. match FAIL-09 You must be standing
  3076. match FAIL-09 steepness is intimidating
  3077. match FAIL-09 can't seem to find purchase
  3078. match FAIL-09 find it hard going.
  3079. match FAIL-09 your footing is questionable
  3080. match FALLEN slip after a few feet
  3081. match FAIL-09 A wave of dizziness hits you
  3082. match FAIL-09 Struck by vertigo
  3083. put ClIMB wall
  3084. matchwait
  3085.  
  3086. PASS-09:
  3087. put #echo cyan PASS-09
  3088. move n
  3089. goto CLIMB-10
  3090.  
  3091. FAIL-09:
  3092. put #echo cyan FAIL-09
  3093. move se
  3094. move gO gate
  3095. #gosub cast
  3096. ############## mana here
  3097. move gO stair
  3098. goto CLIMB-10
  3099.  
  3100. CLIMB-10:
  3101. put #echo cyan CLIMB-10
  3102. setvariable fail FAIL-10
  3103. gosub climb.check
  3104. if %climb = 0 then goto FAIL-10
  3105. math wall.counter add 1
  3106. match PASS-10 [Mycthengelde, Flatlands]
  3107. match FAIL-10 You must be standing
  3108. match FAIL-10 steepness is intimidating
  3109. match FAIL-10 can't seem to find purchase
  3110. match FAIL-10 find it hard going.
  3111. match FAIL-10 your footing is questionable
  3112. match FALLEN slip after a few feet
  3113. match FAIL-10 A wave of dizziness hits you
  3114. match FAIL-10 Struck by vertigo
  3115. put ClIMB embrasure
  3116. matchwait
  3117.  
  3118. PASS-10:
  3119. put #echo cyan PASS-10
  3120. move gO gate
  3121. move gO stair
  3122.  
  3123. FAIL-10:
  3124. put #echo cyan FAIL-10
  3125. move e
  3126. goto CLIMB-11
  3127.  
  3128. CLIMB-11:
  3129. put #echo cyan CLIMB-11
  3130. setvariable fail FAIL-11
  3131. gosub climb.check
  3132. if %climb = 0 then goto FAIL-11
  3133. math wall.counter add 1
  3134. match PASS-11 [Northwall Trail, Wooded Grove]
  3135. match FAIL-11 You must be standing
  3136. match FAIL-11 steepness is intimidating
  3137. match FAIL-11 can't seem to find purchase
  3138. match FAIL-11 find it hard going.
  3139. match FAIL-11 your footing is questionable
  3140. match FALLEN slip after a few feet
  3141. match FAIL-11 A wave of dizziness hits you
  3142. match FAIL-11 Struck by vertigo
  3143. put ClIMB break
  3144. matchwait
  3145.  
  3146. PASS-11:
  3147. put #echo cyan PASS-11
  3148. move s
  3149. move gO gate
  3150. move gO stair
  3151. move e
  3152. goto CLIMB-12
  3153.  
  3154. FAIL-11:
  3155. put #echo cyan FAIL-11
  3156. pause
  3157. goto CLIMB-12
  3158.  
  3159. CLIMB-12:
  3160. put #echo cyan CLIMB-12
  3161. setvariable fail FAIL-12
  3162. gosub climb.check
  3163. if %climb = 0 then goto FAIL-12
  3164. gosub prepare
  3165. math wall.counter add 1
  3166. match PASS-12 [Northwall Trail, Wooded Grove]
  3167. match FAIL-12 You must be standing
  3168. match FAIL-12 steepness is intimidating
  3169. match FAIL-12 can't seem to find purchase
  3170. match FAIL-12 find it hard going.
  3171. match FAIL-12 your footing is questionable
  3172. match FALLEN slip after a few feet
  3173. match FAIL-12 A wave of dizziness hits you
  3174. match FAIL-12 Struck by vertigo
  3175. put ClIMB embrasure
  3176. matchwait
  3177.  
  3178. PASS-12:
  3179. put #echo cyan PASS-12
  3180. pause
  3181. goto CLIMB-13
  3182.  
  3183. FAIL-12:
  3184. put #echo cyan FAIL-12
  3185. move w
  3186. move gO stair
  3187. #gosub cast
  3188. ############## mana here
  3189. move gO gate
  3190. move gO trail
  3191. move ne
  3192. goto CLIMB-13
  3193.  
  3194. CLIMB-13:
  3195. put #echo cyan CLIMB-13
  3196. setvariable fail FAIL-13
  3197. gosub climb.check
  3198. if %climb = 0 then goto FAIL-13
  3199. math wall.counter add 1
  3200. match PASS-13 [Crossing, North Wall Battlements]
  3201. match FAIL-13 You must be standing
  3202. match FAIL-13 steepness is intimidating
  3203. match FAIL-13 can't seem to find purchase
  3204. match FAIL-13 find it hard going.
  3205. match FAIL-13 your footing is questionable
  3206. match FALLEN slip after a few feet
  3207. match FAIL-13 A wave of dizziness hits you
  3208. match FAIL-13 Struck by vertigo
  3209. put ClIMB wall
  3210. matchwait
  3211.  
  3212. PASS-13:
  3213. put #echo cyan PASS-13
  3214. move w
  3215. move gO stair
  3216. move gO gate
  3217. move gO trail
  3218. goto CLIMB-14
  3219.  
  3220. FAIL-13:
  3221. put #echo cyan FAIL-13
  3222. move southwest
  3223. goto CLIMB-14
  3224.  
  3225. CLIMB-14:
  3226. put #echo cyan CLIMB-14
  3227. setvariable fail FAIL-14
  3228. gosub climb.check
  3229. if %climb = 0 then goto FAIL-14
  3230. math wall.counter add 1
  3231. match PASS-14 [Crossing, North Wall Battlements]
  3232. match FAIL-14 You must be standing
  3233. match FAIL-14 steepness is intimidating
  3234. match FAIL-14 can't seem to find purchase
  3235. match FAIL-14 find it hard going.
  3236. match FAIL-14 your footing is questionable
  3237. match FALLEN slip after a few feet
  3238. match FAIL-14 A wave of dizziness hits you
  3239. match FAIL-14 Struck by vertigo
  3240. put ClIMB wall
  3241. matchwait
  3242.  
  3243. PASS-14:
  3244. put #echo cyan PASS-14
  3245. move w
  3246. move gO stair
  3247. move gO gate
  3248. goto CLIMB-15
  3249.  
  3250. FAIL-14:
  3251. put #echo cyan FAIL-14
  3252. move s
  3253. goto CLIMB-15
  3254.  
  3255. CLIMB-15:
  3256. put #echo cyan CLIMB-15
  3257. setvariable fail FAIL-15
  3258. gosub climb.check
  3259. if %climb = 0 then goto FAIL-15
  3260. gosub prepare
  3261. math wall.counter add 1
  3262. match PASS-15 [Crossing, West Gate Battlements]
  3263. match FAIL-15 You must be standing
  3264. match FAIL-15 steepness is intimidating
  3265. match FAIL-15 can't seem to find purchase
  3266. match FAIL-15 find it hard going.
  3267. match FAIL-15 your footing is questionable
  3268. match FALLEN slip after a few feet
  3269. match FAIL-15 A wave of dizziness hits you
  3270. match FAIL-15 Struck by vertigo
  3271. put ClIMB wall
  3272. matchwait
  3273.  
  3274. PASS-15:
  3275. put #echo cyan PASS-15
  3276. move gO stair
  3277. goto TRAVEL-15
  3278.  
  3279. FAIL-15:
  3280. put #echo cyan FAIL-15
  3281. move gO gate
  3282. #gosub cast
  3283. ############## mana here
  3284. goto TRAVEL-15
  3285.  
  3286. TRAVEL-15:
  3287. move e
  3288. move e
  3289. move e
  3290. move e
  3291. move e
  3292. move e
  3293. move e
  3294. move e
  3295. move e
  3296. move e
  3297. move e
  3298. move n
  3299. move e
  3300. move e
  3301. move n
  3302. move n
  3303. move e
  3304. move e
  3305.  
  3306. put #statusbar 5 CLIMB: %wall.counter
  3307. if $Climbing.LearningRate < 33 then
  3308. {
  3309. put #echo >Script green Climbing Continue.
  3310. goto newclimb
  3311. }
  3312. put #echo >Script red Climbing Done.
  3313. gosub goto 355
  3314. return
  3315.  
  3316. FALLEN:
  3317. pause
  3318. match STOOD You stand
  3319. match STOOD You are already standing
  3320. match FALLEN cannot manage to stand.
  3321. match FALLEN The weight of all your possessions
  3322. put StAND
  3323. matchwait
  3324.  
  3325. STOOD:
  3326. goto %fail
  3327.  
  3328. climb.check:
  3329. if $stamina > 90 then return
  3330. if $stamina < 81 then
  3331. {
  3332. put appraise bundle
  3333. pause 4
  3334. }
  3335. if $stamina < 91 and $charactername = Shankey then
  3336. {
  3337. put power
  3338. pause 5
  3339. }
  3340. pause
  3341. goto climb.check
  3342.  
  3343. braid:
  3344. gosub empty
  3345. put #echo >Script orange %trash
  3346. #if $Mechanical_Lore.LearningRate > 5 then return
  3347. put hum %hum
  3348. pause
  3349. put fora vine
  3350. matchre braid.start ^You manage to find a vine
  3351. matchwait 3
  3352. put #echo >Script aqua No vines here...
  3353. return
  3354.  
  3355. braid.start:
  3356. if %t > 360 and %looping = 1 then
  3357. {
  3358. put #echo >Script cyan Mech finished @ $Mechanical_Lore.LearningRate
  3359. goto braid.done
  3360. }
  3361. if $Mechanical_Lore.LearningRate > 33 then goto braid.done
  3362. if "$righthandnoun" != "vine" and "$lefthandnoun" != "vine" then goto braid.forage
  3363. gosub power
  3364. match braid.forage You need to have more material
  3365. matchre braid.dump (mistake|^You really need to have)
  3366. match braid.dump wasted effort.
  3367. match braid.start Roundtime:
  3368. put braid my vine
  3369. matchwait 20
  3370. goto braid.dump
  3371.  
  3372. braid.forage:
  3373. match braid.start With incredibly nimble fingers
  3374. match braid.start You manage to find
  3375. match return Roundtime:
  3376. if %humming = 0 then put hum %hum
  3377. pause 1
  3378. put forage vine
  3379. matchwait
  3380.  
  3381. braid.dump:
  3382. put put my vine in %trash
  3383. matchre braid.dump (^You drop a vine in|^you drop some braided vines in)
  3384. matchre braid.start ^What were you refering to
  3385. matchwait 6
  3386. gosub empty
  3387. goto braid.start
  3388.  
  3389. braid.done:
  3390. if "$righthandnoun" != "vines" and "$lefthandnoun" != "vines" then return
  3391. put put my vine in bin
  3392. wait
  3393. put put my vine in bin
  3394. wait
  3395. return
  3396.  
  3397. damage:
  3398. gosub goto 14
  3399. if $bleeding = 1 then
  3400. {
  3401. gosub goto 50
  3402. put go port
  3403. put lean gw
  3404. pause
  3405. waitforre You are clean
  3406. put whisper gw thank you
  3407. put go port
  3408. gosub goto 355
  3409. goto loop
  3410. }
  3411.  
  3412. idle:
  3413. if $looping = 1 then goto loop
  3414. if %trainbattle = 1 then goto weaponloop
  3415. put #echo >Script Nothing to do!!
  3416. put col> train all
  3417. goto static
  3418.  
  3419. return:
  3420. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement