Advertisement
Dwarvenstarr

Untitled

Jan 23rd, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.47 KB | None | 0 0
  1. #%
  2. #% READ ME
  3. #%
  4. #% General idea, to use something set it to the name of the spell/weapon/buff/etc. To not use something set it to none or off.
  5. #% Example : var smalledge scimitar = will train small edge with your scimitar
  6. #% Example : var buff-spell-5 courage 25 = will keep courage on you at 25 mana
  7. #% Example : var heavythrown none = will not train heavy thrown
  8. #%
  9. #%
  10. #% snapshots can be set to on or off, bow/xbow/sling shoot can be set to fire, poach or snipe.
  11. #% arrange-times is how many times you want to arrange the critters.
  12. #% arrange-option can be skin, part, bone, or none for default arrange method.
  13. #% exp-limit is when to switch skills, a/e if exp-limit is set to 30, it will swap to next skill when exp is above 30/34
  14. #% attack-limit is a default 'after this many attacks switch to next skill' to keep you from spending 2 hours trying to lock small edge on a critter that doesn't teach well.
  15. #%
  16. #% Version 4.22
  17.  
  18.  
  19.  
  20. var smalledge scimitar
  21. var largeedge broadsword
  22. var twohandededge none
  23. var edge-maneuver feint
  24. var smallblunt war hammer
  25. var largeblunt sledgehammer
  26. var twohandedblunt none
  27. var blunt-maneuver
  28. var staves none
  29. var staves-maneuver none
  30. var polearm none
  31. var polearm-maneuver none
  32. var crossbow none
  33. var crossbow-ammo lump
  34. var crossbow-shoot fire
  35. var crossbow-snapshots off
  36. var bow none
  37. var bow-ammo arrow
  38. var bow-shoot fire
  39. var bow-snapshots off
  40. var slings none
  41. var sling-ammo lump
  42. var sling-shoot fire
  43. var sling-snapshots off
  44. var ranged-maneuver none
  45. var lightthrown none
  46. var lightthrown-attack lob
  47. var lightthrown-bond off
  48. var heavythrown none
  49. var heavythrown-bond off
  50. var heavythrown-attack lob
  51. var thrown-maneuver none
  52. var offhand scimitar
  53. var offhand-type melee
  54. var offhand-bond off
  55. var brawl off
  56. var brawl-maneuver gouge
  57.  
  58. var train-stealths off
  59. var alwayshideFORmelee off
  60. var alwayshideFORranged off
  61.  
  62. var targetmagic on
  63. var TM-spell-1 ff
  64. var TM-spell-2 none
  65. var TM-spell-3 none
  66. var TM-weapon none
  67. var TM-cambrinth fox
  68. var TM-charge 20
  69.  
  70. #% DEBIL
  71. #% Debil cast can be set to area, creature, a specific command like "malediction offense" or none for general debil casts.
  72.  
  73. var debilitation on
  74. var debil-spell mal
  75. var debil-cast offense
  76.  
  77. var arrange-times 1
  78. var arrange-option skin
  79.  
  80. var exp-limit 33
  81.  
  82. #% ATTACK LIMITS
  83. #% These are 'if not mind locked by this many attacks move on to next skill' defaults.
  84.  
  85. var smalledge-attack-limit 90
  86. var largeedge-attack-limit 90
  87. var twohandededge-attack-limit 90
  88. var smallblunt-attack-limit 90
  89. var largeblunt-attack-limit 90
  90. var twohandedblunt-attack-limit 90
  91. var staves-attack-limit 90
  92. var polearm-attack-limit 90
  93. var crossbow-attack-limit 90
  94. var bow-attack-limit 90
  95. var slings-attack-limit 90
  96. var lightthrown-attack-limit 90
  97. var heavythrown-attack-limit 90
  98. var offhand-attack-limit 90
  99. var brawl-attack-limit 90
  100. var TM-attack-limit 90
  101.  
  102.  
  103. #% LOOT
  104. var lootgems on
  105. var lootcoins on
  106. var lootboxes on
  107.  
  108. var box-holders haversack
  109. var box-limit 20
  110.  
  111. #% STANCES EVA PARRY SHIELD ATTACK
  112.  
  113. var change-stance on
  114. var smalledge-stance 42 40 100 100
  115. var largeedge-stance 42 40 100 100
  116. var twohandededge-stance 42 40 100 100
  117. var smallblunt-stance 42 40 100 100
  118. var largeblunt-stance 42 40 100 100
  119. var twohandedblunt-stance 42 40 100 100
  120. var staves-stance 42 40 100 100
  121. var polearm-stance 42 40 100 100
  122. var crossbow-stance 100 0 82 100
  123. var bow-stance 100 0 82 100
  124. var slings-stance 100 0 82 100
  125. var lightthrown-stance 100 0 82 100
  126. var heavythrown-stance 100 0 82 100
  127. var offhand-stance 42 40 100 100
  128. var brawl-stance 42 40 100 100
  129. var TM-stance 42 40 100 100
  130.  
  131.  
  132. #% BARD SCREAMS & WHISTLES
  133. var bard-scream off
  134. var bard-defiance off
  135. var smalledge-scream scream havoc
  136. var largeedge-scream scream concussive
  137. var twohandededge-scream whistle piercing
  138. var smallblunt-scream none
  139. var largeblunt-scream none
  140. var twohandedblunt-scream none
  141. var staves-scream none
  142. var polearm-scream none
  143. var crossbow-scream none
  144. var bow-scream none
  145. var slings-scream none
  146. var lightthrown-scream none
  147. var heavythrown-scream none
  148. var offhand-scream none
  149. var brawl-scream none
  150.  
  151.  
  152. #% THIEF KHRI
  153. var thief-khri on
  154. var smalledge-khri darken
  155. var largeedge-khri focus
  156. var twohandededge-khri none
  157. var smallblunt-khri none
  158. var largeblunt-khri none
  159. var twohandedblunt-khri none
  160. var staves-khri none
  161. var polearm-khri none
  162. var crossbow-khri steady
  163. var bow-khri haste
  164. var slings-khri shadowstep
  165. var lightthrown-khri prowess
  166. var heavythrown-khri none
  167. var offhand-khri none
  168. var brawl-khri darken
  169.  
  170. #% THIEF AMBUSH
  171. var thief-ambush on
  172. var smalledge-ambush clout
  173. var largeedge-ambush slash
  174. var twohandededge-ambush none
  175. var smallblunt-ambush none
  176. var largeblunt-ambush none
  177. var twohandedblunt-ambush none
  178. var staves-ambush none
  179. var polearm-ambush none
  180. var crossbow-ambush clout
  181. var bow-ambush clout
  182. var slings-ambush none
  183. var lightthrown-ambush clout
  184. var heavythrown-ambush none
  185. var offhand-ambush none
  186. var brawl-ambush none
  187.  
  188.  
  189. #% BARB FORMS
  190. var barb-forms off
  191. var smalledge-forms dragon|bear
  192. var largeedge-forms turtle|eagle
  193. var twohandededge-forms none
  194. var smallblunt-forms none
  195. var largeblunt-forms none
  196. var twohandedblunt-forms none
  197. var staves-forms none
  198. var polearm-forms none
  199. var crossbow-forms none
  200. var bow-forms none
  201. var slings-forms none
  202. var lightthrown-forms none
  203. var heavythrown-forms none
  204. var offhand-forms none
  205. var brawl-forms none
  206.  
  207. #% BARB ROARS
  208. var barb-roars off
  209. var roar-1 none
  210. var roar-2 none
  211. var roar-3 none
  212.  
  213. #% BARB EXPERTISE
  214. var expertise off
  215. var analyze-1 flame
  216. var analyze-2 damage
  217. var analyze-3 none
  218.  
  219. #% Necro Rituals
  220. var necro-rituals on
  221. var ritual-1 dissection
  222. var ritual-2 none
  223. var ritual-3 none
  224. var necro-harvest off
  225. var necro-selfheal off
  226.  
  227.  
  228. #% SPELL BUFFS
  229. var buff-spell-1 sol
  230. var buff-camb-1 20
  231. var buff-spell-2 none
  232. var buff-camb-2 20
  233. var buff-spell-3 none
  234. var buff-camb-3 20
  235. var buff-spell-4 none
  236. var buff-camb-4 20
  237. var buff-spell-5 mapp
  238. var buff-camb-5 20
  239. var buff-spell-6 ben
  240. var buff-camb-6 20
  241. var buff-spell-7 none
  242. var buff-camb-7 20
  243. var buff-spell-8 mpp
  244. var buff-camb-8 20
  245. var buff-spell-9 center
  246. var buff-camb-9 20
  247. var buff-spell-10 none
  248. var buff-camb-10 0
  249. var minimum-attunement 40
  250. var camb-item fox
  251.  
  252. var cyclics off
  253. var cyclic-1 none
  254. var cyclic-2 none
  255. var cyclic-3 none
  256.  
  257. #% AUTO LOG OUT
  258. var timelimit 28800
  259.  
  260.  
  261. #% MODULES
  262. var modules off
  263. var module-1-name none
  264. var module-1-timing each kill
  265. var module-2-name none
  266. var module-2-timing per cycle
  267. var module-3-name none
  268. var module-3-timing skill change
  269.  
  270.  
  271. #% CONTAINERS
  272. var sheath-1-name pack
  273. var sheath-1-weapons scimitar|broadsword|war hammer|sledgehammer
  274. var sheath-2-name belt
  275. var sheath-2-weapons boomerang|throwing hammer
  276. var sheath-3-name haversack
  277. var sheath-3-weapons bow|crossbow|sling
  278. var worn-weapons halberd
  279. var tied-container haversack
  280. var tied-weapons quarterstaff
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287. #%
  288. #% arrange-times 1
  289. #% arrange-option skin
  290. #% will auto check for your fatigue & shit.
  291. #% just set the vars above to your desire and start it up in the area you want to hunt at, will work anywhere :)
  292. #%
  293.  
  294.  
  295.  
  296. #%
  297. #%
  298. #% DONT TOUCH ANYTHING BELOW HERE
  299. #%
  300. #%
  301. #%
  302.  
  303.  
  304.  
  305. put info
  306. waitforre Guild: *(\w+)
  307. var guild $1
  308.  
  309.  
  310. var internal-attunement %minimum-attunement
  311. math internal-attunement add 20
  312. if %internal-mana > 99 then var internal-mana 99
  313.  
  314. action goto script-end when eval %t > %timelimit
  315.  
  316. var offhandthr throw|thrown|throwing|lt|ht|LT|HT
  317. var offhandmelee melee|attack|tactic|tactics|att|none
  318.  
  319. var killmods each kill|per kill|every kill|kill|each critter|each creature|per critter|per creature|each kill|every critter|every creature|critter|creature
  320. var skillmods swap skill|skill change|skill swap|skill|swap|change|weapon|per skill|per change|per swap
  321. var cyclemods per cycle|each cycle|when locked|locked|cycle
  322.  
  323. action instant setvariable arranged 10 when Try killing .* before you arrange it
  324. action put attack when You can not slam with
  325.  
  326. action instant setvariable tactics $2|$4 when by landing (a|an) (\w+) and (a|an) (\w+)
  327. action instant setvariable tactics $2|attack when by landing (a|an) (\w+)\.
  328. action instant setvariable tactics $2|$4|$6 when by landing (a|an) (\w+), (a|an) (\w+) and (a|an) (\w+)
  329. action instant setvariable tactics $2|$4|$6|$8 when by landing (a|an) (\w+), (a|an) (\w+), (a|an) (\w+) and (a|an) (\w+)
  330.  
  331. action instant setvariable hit-track 9999 when SWAPSKILL
  332.  
  333. action instant setvariable crittername $1 when You turn to face .* (\S+)(\.|,)
  334. action instant setvariable crittername $1 when You .* are facing .* (\w+) .(\d+)
  335.  
  336. var emptyspot1 purple dinosaur
  337. var emptyspot2 pink zebra
  338.  
  339. var commune-time $gametime
  340. var scream-timer $gametime
  341. var maneuver-timer $gametime
  342. math maneuver-timer add 70
  343. var attack-limit 30
  344.  
  345.  
  346.  
  347. var weaponnames %targetmagic|%bow|%smalledge|%largeedge|%twohandededge|%smallblunt|%largeblunt|%twohandedblunt|%staves|%polearm|%crossbow|%slings|%heavythrown|%lightthrown|%offhand|%brawl|%modules
  348. var weapons TM|bow|smalledge|largeedge|twohandededge|smallblunt|largeblunt|twohandedblunt|staves|polearm|crossbow|slings|heavythrown|lightthrown|offhand|brawl|modules
  349. var stances TM-stance|bow-stance|smalledge-stance|largeedge-stance|twohandededge-stance|smallblunt-stance|largeblunt-stance|twohandedblunt-stance|staves-stance|polearm-stance|crossbow-stance|slings-stance|heavythrown-stance|lightthrown-stance|offhand-stance|brawl-stance|smalledge-stance|smalledge-stance|smalledge-stance
  350. var skills targeted magic|bow|small edge|large edge|2HE|small blunt|large blunt|2HB|staves|pole|crossbow|sling|HT|LT|offhand|brawl|module
  351. if matchre("%offhandthr","%offhand-type") then var attacks target|load|tactics|tactics|tactics|tactics|tactics|tactics|tactics|tactics|load|load|throw|throw|offhand|tactics|module
  352. if matchre("%offhandmelee","%offhand-type") then var attacks target|load|tactics|tactics|tactics|tactics|tactics|tactics|tactics|tactics|load|load|throw|throw|tactics|tactics|module
  353.  
  354.  
  355. var edges small edge|large edge|2HE
  356. var blunts small blunt|large blunt|2HB
  357. var loadedweapons bow|crossbow|sling
  358. var thrownweapons HT|LT
  359.  
  360. var offhand-maneuver none
  361.  
  362. var atttype throw
  363.  
  364. if matchre("%offhandthr","%offhand-type") then var offhand-type thrown
  365. if matchre("%offhandthr","%offhand-type") then var offhand-type melee
  366.  
  367. var SkillTrack 0
  368. eval SkillCount count("%weapons","|")
  369. math SkillCount add 1
  370. setvariable range 0
  371. eval HolderCount count("%box-holders","|")
  372. math HolderCount add 1
  373. var BoxStowTrack 0
  374. action setvariable boxes 0;setvariable BoxStowTrack 0 when RESET boxes
  375. action setvariable train-stealths $1 when SET stealths (on|off)
  376. action setvariable alwayshideFORmelee $1 when SET alwayshideFORmelee (on|off)
  377. action setvariable alwayshideFORranged $1 when SET alwayshideFORranged (on|off)
  378. action setvariable $1 $2 when SET (\w+) (\w+)
  379. action setvariable $1 $2 when SET (\w+) (\d+)
  380.  
  381.  
  382. eval CurrentStorage element("%box-holders", %BoxStowTrack)
  383. action instant setvariable range 1 when (closes to pole range on you|closes to melee range on you|begins to advance on you|advances from nearby)
  384. action instant setvariable range 0 when (You are already as far away|You retreat from combat|You sneak back out of combat)
  385. action instant setvariable fullaim 1 when (have your best shot possible|Your formation of a targeting pattern around|Your target pattern has finished forming)
  386. action instant setvariable fullprep 1 when You feel fully prepared to cast
  387. setvariable fullaim 0
  388. var gems morganite|agate|alex andrite|amber|amethyst|andalusite|aquamarine|bead|beryl|bloodgem|bloodstone|carnelian|chrysoberyl|carnelian|chalcedony|chrysoberyl|chrysoprase|citrine|coral|crystal|diamond|diopside|emerald|egg|eggcase|garnet|gem|goldstone|glossy malachite|opal|pearl|pebble|peridot|quartz|ruby|sapphire|spinel|star-stone|sunstone|talon|tanzanite|tooth|topaz|tourmaline|tsavorite|turquoise|zircon|granite|hematite|iolite|ivory|jade|jasper|kunzite|lapis lazuli|malachite stone|moonstone|morganite|onyx
  389. var otherloot scroll|tablet|vellum|sheiska leaf|ostracon|hhr'lav'geluhh bark|papyrus roll|smudged parchment|map|seishaka leaf|stones|kertig ingot|kertig bar|kertig tear|kertig fist|glaes fragment|glaes shard|glaes ingot|damite lump|damite ingot|damite bar|glaes bar|haralun lump|haralum ingot|haralun bar|animite bar|animite nugget|animite bar|tyrium bar|tyrium nugget|tyrium fragment|tyrium shard|tyrium ingot|silversteel bar|silversteel ingot|silversteel nugget|icesteel bar| ring
  390. var coins silver coin|gold coin|platinum coin|copper coin|bronze coin
  391. var ammotypes %crossbow-ammo|%bow-ammo|%sling-ammo|%lightthrown|%heavythrown|%offhand
  392. var boxtypes skippet|strongbox|chest|crate|caddy|coffer|casket|trunk|box
  393. setvariable cyclictimer $gametime
  394. var NextWeapon nil
  395. var commune-time $gametime
  396. var roartrack 1
  397. var formtrack 1
  398. var ritual-track 1
  399. var targettrack 1
  400. var cyclictrack 1
  401. var khritrack 1
  402. var khri none
  403. var buff-dur-1 0
  404. var buff-dur-2 0
  405. var buff-dur-3 0
  406. var buff-dur-4 0
  407. var buff-dur-5 0
  408. var buff-dur-6 0
  409. var buff-dur-7 0
  410. var buff-dur-8 0
  411. var buff-dur-9 0
  412. var buff-dur-10 0
  413. var skill-tracker 0
  414. var buff-tracker 0
  415. var autoswap-tracker 0
  416. var boxes 0
  417. var expertise-track 0
  418. var pray-tracker 0
  419. var stealths-locked 0
  420. var ambush-track 0
  421. if "%1" = "skipbuffs" then var buff-dur-1 900
  422. if "%1" = "skipbuffs" then var buff-dur-2 900
  423. if "%1" = "skipbuffs" then var buff-dur-3 900
  424. if "%1" = "skipbuffs" then var buff-dur-4 900
  425. if "%1" = "skipbuffs" then var buff-dur-5 900
  426. if "%1" = "skipbuffs" then var buff-dur-6 900
  427. if "%1" = "skipbuffs" then var buff-dur-7 900
  428. if "%1" = "skipbuffs" then var buff-dur-8 900
  429. if "%1" = "skipbuffs" then var buff-dur-9 900
  430. if "%1" = "skipbuffs" then var buff-dur-10 900
  431. if "%buff-spell-1" = "none" then var buff-dur-1 999999999999999
  432. if "%buff-spell-2" = "none" then var buff-dur-2 999999999999999
  433. if "%buff-spell-3" = "none" then var buff-dur-3 999999999999999
  434. if "%buff-spell-4" = "none" then var buff-dur-4 999999999999999
  435. if "%buff-spell-5" = "none" then var buff-dur-5 999999999999999
  436. if "%buff-spell-6" = "none" then var buff-dur-6 999999999999999
  437. if "%buff-spell-7" = "none" then var buff-dur-7 999999999999999
  438. if "%buff-spell-8" = "none" then var buff-dur-8 999999999999999
  439. if "%buff-spell-9" = "none" then var buff-dur-9 999999999999999
  440. if "%buff-spell-10" = "none" then var buff-dur-10 999999999999999
  441. gosub timer
  442. if "%guild" = "Thief" then gosub thief-khri
  443. if "%1" = "buff" then gosub spell-buffs
  444. if "%1" = "buff" then put #script pause
  445.  
  446.  
  447.  
  448. swap-skills:
  449. if "%attack" = "module" then var SkillTrack 0
  450. if $mana > %minimum-attunement then gosub spell-buffs
  451. if "%skill" = "reset" then var SkillTrack 0
  452. if %SkillTrack > %SkillCount then var SkillTrack 0
  453. var hit-track 0
  454. var autoswap-tracker 0
  455. var gettmweapon 0
  456. if "%skill" = "targeted magic" then if "%TM-weapon" != "none" then if "%TM-weapon" != "off" then var gettmweapon 1
  457. if %gettmweapon = 1 then var NextWeapon %TM-weapon
  458. if "%WeapName" != "none" then gosub stow-wear
  459. if "$righthand" != "Empty" then gosub verb stow right
  460. if "$lefthand" != "Empty" then gosub verb stow left
  461. eval NextSkill element("%weapons", %SkillTrack)
  462. eval skill element("%skills", %SkillTrack)
  463. eval attack element("%attacks", %SkillTrack)
  464. eval NextWeapon element("%weaponnames", %SkillTrack)
  465. var stance-swap 0
  466. if "%NextWeapon" != "none" then if "%NextWeapon" != "off" then var stance-swap 1
  467. eval NextStance element("%stances", %SkillTrack)
  468. if %stance-swap = 1 then gosub change-stance %NextStance
  469. math SkillTrack add 1
  470. if "%NextWeapon" = "none" then goto swap-skills
  471. if "%NextWeapon" = "off" then goto swap-skills
  472. gosub check-mods-skill
  473. echo . [ Training %skill with %NextWeapon via %attack ]
  474. if matchre("%NextWeapon","%sheath-1-weapons") then gosub verb get my %NextWeapon in my %sheath-1-name
  475. if matchre("%NextWeapon","%sheath-2-weapons") then gosub verb get my %NextWeapon in my %sheath-2-name
  476. if matchre("%NextWeapon","%sheath-3-weapons") then gosub verb get my %NextWeapon in my %sheath-3-name
  477. if matchre("%NextWeapon","%worn-weapons") then gosub verb remove my %NextWeapon
  478. if matchre("%NextWeapon","%tied-weapons") then gosub verb untie my %NextWeapon
  479. var WeapName %NextWeapon
  480. if matchre("%skill","%edges") then var maneuver-type edges
  481. if matchre("%skill","%blunts") then var maneuver-type blunts
  482. if matchre("%skill","staves") then var maneuver-type staves
  483. if matchre("%skill","pole") then var maneuver-type polearm
  484. if matchre("%skill","%loadedweapons") then var maneuver-type bows
  485. if matchre("%skill","%thrownweapons") then var maneuver-type thrown
  486. if "$righthand" = "bone spear" then gosub swap-sword
  487. if "$righthand" = "iron spear" then gosub swap-sword
  488. if "%NextWeapon" = "bastard sword" then gosub swap-sword
  489. if "%NextWeapon" = "bastard swor" then gosub swap-sword
  490. if "%NextWeapon" = "bast sword" then gosub swap-sword
  491. if "%NextWeapon" = "katana" then gosub swap-sword
  492. if "%NextWeapon" = "Harawep icon" then gosub swap-sword
  493. if "%NextWeapon" = "icon" then gosub swap-sword
  494. if "$righthand" = "partisan" then gosub swap-sword
  495. if "$righthand" = "bar mace" then gosub swap-sword
  496. if "$righthand" = "Harawep icon" then gosub swap-sword
  497. if "$righthand" = "icon" then gosub swap-sword
  498. if "%skill" = "module" then gosub check-mods-cycle
  499. if "%skill" = "module" then goto swap-skills
  500.  
  501. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  502. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  503. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  504. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  505. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  506. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  507. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  508. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  509. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  510. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  511. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  512. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  513. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  514. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  515. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  516. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  517. if "%skill" = "offhand" then gosub verb swap
  518. var gettmweapon 0
  519. if "%skill" = "targeted magic" then if "%TM-weapon" != "none" then if "%TM-weapon" != "off" then var gettmweapon 1
  520. if %gettmweapon = 1 then gosub verb get my %TM-weapon
  521. gosub set-attacklimit
  522. if "%train-stealths" = "on" then gosub stealthEXP
  523. if $gametime > %cyclictimer then gosub cyclictimer
  524. if "%skill" = "small edge" then if "%guild" = "Thief" then var attack attack
  525. if "%guild" = "Thief" then gosub thief-khri
  526. if "%guild" = "Barbarian" then gosub forms
  527. if "%attack" = "module" then goto swap-skills
  528. gosub badge
  529. goto %attack
  530.  
  531.  
  532. flee.p:
  533. pause 0.5
  534. flee:
  535. if $webbed = 1 then goto flee.p
  536. put flee up
  537. match flee.p that while entangled in a web
  538. match flee.p type ahead
  539. match flee.p ...wait
  540. match flee.p still stunned
  541. match flee.p you don't feel like fighting
  542. match flee.d You assess your combat situation and realize you don't see anything
  543. match flee.d You manage to free yourself from engagement and look to make an escape.
  544. match flee.d Your attempt to flee has failed. Prepare to meet Alduath!
  545. matchwait
  546. flee.d:
  547. put adv %crittername
  548. return
  549.  
  550.  
  551. stow-wear:
  552. if "$righthand" = "Empty" then if "$lefthand" = "Empty" then return
  553. if matchre("%WeapName","%sheath-1-weapons") then gosub verb put my %WeapName in my %sheath-1-name
  554. if matchre("%WeapName","%sheath-2-weapons") then gosub verb put my %WeapName in my %sheath-2-name
  555. if matchre("%WeapName","%sheath-3-weapons") then gosub verb put my %WeapName in my %sheath-3-name
  556. if matchre("%WeapName","%worn-weapons") then gosub verb wear my %WeapName
  557. if matchre("%WeapName","%tied-weapons") then gosub verb tie my %NextWeapon to my %tie-container
  558. return
  559.  
  560. change-stance:
  561. if "%change-stance" != "on" then return
  562. var tempstance %$0
  563. if "%tempstance" = "none" then return
  564. if "%tempstance = "off" then return
  565. gosub verb stance set %tempstance
  566. return
  567.  
  568. swap-sword.p:
  569. pause 0.5
  570. swap-sword:
  571. if "%skill" = "offhand" then return
  572. if %t > %timelimit then goto script-end
  573. if $webbed = 1 then goto swap-sword.p
  574. if $health < 50 then goto script-end
  575. put swap my $righthandnoun
  576. match swap-sword.p that while entangled in a web
  577. match swap-sword.p type ahead
  578. match swap-sword.p ...wait
  579. match swap-sword.p still stunned
  580. match swap-sword.p you don't feel like fighting
  581. matchre swap-sword.d You shift your .* to a (\w+)
  582. matchre swap-sword.d easily in your hands and end with it in position to be used as a (\w+)
  583. matchre swap-sword.d switch to a grip for using your .* as a (\w+)
  584. matchre swap-sword.d so that you can use it as a (\w+)
  585. matchre swap-sword.d can be used as a (\w+)
  586. matchre swap-sword.d you can use it (one-handed|two-handed)
  587. matchre swap-sword.d to a (one-handed|two-handed|heavy)
  588. matchre swap-sword.d you shift it to a (\w+)
  589. matchwait
  590. swap-sword.d:
  591. if "$1" = "one-handed" then if "%skill" = "large edge" then return
  592. if "$1" = "two-handed" then if "%skill" = "2HE" then return
  593. if "$1" = "pike" then if "%skill" = "pole" then return
  594. if "$1" = "short" then if "%skill" = "staves" then return
  595. if "$1" = "two" then if "%skill" = "2HE" then return
  596. if "$1" = "two-handed" then if "%skill" = "2HE" then return
  597. if "$1" = "two" then if "%skill" = "2HB" then return
  598. if "$1" = "two-handed" then if "%skill" = "2HB" then return
  599. if "$1" = "heavy" then if "%skill" = "large edge" then return
  600. if "$1" = "heavy" then if "%skill" = "large blunt" then return
  601. if "$1" = "quarter" then if "%skill" = "staves" then return
  602. if "$1" = "halberd" then if "%skill" = "pole" then return
  603. if "$1" = "medium" then if "%skill" = "small edge" then return
  604. if "$1" = "medium" then if "%skill" = "small blunt" then return
  605. goto swap-sword
  606.  
  607.  
  608. stealthEXP:
  609. put skill stealth
  610. waitforre (\d+)/34
  611. var stealthEXP $1
  612. if %stealths-locked = 1 then if %stealthEXP > 10 then return
  613. var stealths-locked 0
  614. if %stealthEXP < 34 then return
  615. var stealths-locked 1
  616. return
  617.  
  618.  
  619.  
  620. attack.p:
  621. pause 0.5
  622. attack:
  623. if $mana > %minimum-attunement then gosub spell-buffs
  624. if $webbed = 1 then goto attack.p
  625. if $health < 50 then goto script-end
  626. if $stamina < 80 then gosub fatigue-return
  627. math hit-track add 1
  628. if %hit-track > %attack-limit then goto swap-skills
  629. if $health < 50 then goto script-end
  630. random 1 4
  631. if %r = 2 then gosub thief-ambush
  632. gosub stalk
  633. if $standing = 0 then gosub verb stand
  634. put backstab
  635. match ambush must be hid
  636. match ambush backstab that.
  637. match ambush need something a little lighter
  638. matchre attack.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  639. matchre attack.w (There is nothing|At what are you|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical|It would help if you were closer)
  640. match killed balance]
  641. match killed balanced]
  642. match attack Roundtime
  643. match tactics You are unable to muster the energy
  644. matchwait 10
  645. goto ambush
  646. ambush:
  647. pause 0.1
  648. if $standing = 0 then gosub verb stand
  649. if $hidden = 1 then random 1 9
  650. if $hidden = 1 then if %r = 1 then setvariable bodypart head
  651. if $hidden = 1 then if %r = 2 then setvariable bodypart neck
  652. if $hidden = 1 then if %r = 3 then setvariable bodypart chest
  653. if $hidden = 1 then if %r = 4 then setvariable bodypart back
  654. if $hidden = 1 then if %r = 5 then setvariable bodypart abdomen
  655. if $hidden = 1 then if %r = 6 then setvariable bodypart left arm
  656. if $hidden = 1 then if %r = 7 then setvariable bodypart right arm
  657. if $hidden = 1 then if %r = 8 then setvariable bodypart left leg
  658. if $hidden = 1 then if %r = 9 then setvariable bodypart right leg
  659. if $hidden = 0 then put attack
  660. if $hidden = 1 then put attack %bodypart
  661. matchre attack.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  662. matchre attack.w (There is nothing|At what are you|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical|It would help if you were closer)
  663. match killed balance]
  664. match killed balanced]
  665. match ambush It's best you not do that to
  666. match ambush Wouldn't it be better if you used
  667. match ambush I could not find what you were
  668. match attack Roundtime
  669. match tactics You are unable to muster the energy
  670. matchwait 10
  671. goto attack
  672.  
  673.  
  674. throw.p:
  675. pause 0.5
  676. throw:
  677. if $standing = 0 then gosub verb stand
  678. if "%guild" = "Empath" then goto swap-skills
  679. if "%1" = "empath" then goto swap-skills
  680. if "%1" = "Empath" then goto swap-skills
  681. if "%1" = "Empath" then goto swap-skills
  682. if "%1" = "emp" then goto swap-skills
  683. if "%1" = "Emp" then goto swap-skills
  684. if "%1" = "EMP" then goto swap-skills
  685. if "%guild" = "Bard" then gosub bard-screams
  686. if "%skill" = "HT" then var thrown %heavythrown
  687. if "%skill" = "LT" then var thrown %lightthrown
  688. if matchre("$lefthand","%lightthrown") then gosub verb swap
  689. if matchre("$lefthand","%heavythrown") then gosub verb swap
  690. if "$righthand" = "Empty" then goto get.throw
  691. if $stamina < 80 then gosub fatigue-return
  692. math hit-track add 1
  693. if %hit-track > %attack-limit then goto swap-skills
  694. if $webbed = 1 then goto throw.p
  695. if $health < 50 then goto script-end
  696. if "%skill" = "LT" then var atttype %lightthrown-attack
  697. if "%skill" = "HT" then var atttype %heavythrown-attack
  698. if "%skill" = "offhand" then goto offhand
  699. if $gametime > %maneuver-timer then gosub thrown-maneuver
  700. put %atttype
  701. matchre throw.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  702. matchre attack.w (There is nothing|At what are you|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical)
  703. match killed balance]
  704. match killed balanced]
  705. match get.throw Roundtime
  706. matchwait 10
  707. goto get.throw
  708. thrown-maneuver:
  709. var maneuver-timer $gametime
  710. math maneuver-timer add 70
  711. if "%thrown-maneuver" != "off" then if "%thrown-maneuver" != "none" then var atttype maneuver %thrown-maneuver
  712. return
  713.  
  714.  
  715. offhand.p:
  716. pause 0.5
  717. offhand:
  718. if "%guild" = "Empath" then goto swap-skills
  719. if "%1" = "empath" then goto swap-skills
  720. if "%1" = "Empath" then goto swap-skills
  721. if "%1" = "Empath" then goto swap-skills
  722. if "%1" = "emp" then goto swap-skills
  723. if "%1" = "Emp" then goto swap-skills
  724. if "%1" = "EMP" then goto swap-skills
  725. if matchre("$righthand","%offhand") then gosub verb swap
  726. if "$lefthand" = "Empty" then goto get.throw
  727. var thrown %offhand
  728. if $stamina < 80 then gosub fatigue-return
  729. math hit-track add 1
  730. if %hit-track > %attack-limit then goto swap-skills
  731. put throw left
  732. matchre offhand.p (type ahead|\.\.\.wait|You can't do that while)
  733. matchre attack.w (There is nothing|At what are you|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical)
  734. match killed balance]
  735. match killed balanced]
  736. match get.throw Roundtime
  737. matchwait 10
  738. goto get.throw
  739.  
  740. get.throw.p:
  741. pause 0.5
  742. get.throw:
  743. if $webbed = 1 then goto get.throw.p
  744. if $health < 50 then goto script-end
  745. if "%skill" = "HT" then var thrown %heavythrown
  746. if "%skill" = "LT" then var thrown %lightthrown
  747. put get %thrown
  748. if "%skill" = "LT" then if "%lightthrown-bond" = "on" then put invoke bond
  749. if "%skill" = "LT" then if "%lightthrown-bond" = "on" then pause 1
  750. if "%skill" = "LT" then if "%lightthrown-bond" = "on" then goto %attack
  751. if "%skill" = "HT" then if "%heavythrown-bond" = "on" then put invoke bond
  752. if "%skill" = "HT" then if "%heavythrown-bond" = "on" then pause 1
  753. if "%skill" = "HT" then if "%heavythrown-bond" = "on" then goto %attack
  754. if "%skill" = "offhand" then if "%offhand-bond" = "on" then put invoke bond
  755. if "%skill" = "offhand" then if "%offhand-bond" = "on" then pause 1
  756. if "%skill" = "offhand" then if "%offhand-bond" = "on" then goto %attack
  757. match get.throw.p that while entangled in a web
  758. match get.throw.p type ahead
  759. match get.throw.p ...wait
  760. match get.throw.p still stunned
  761. match get.throw.p you don't feel like fighting
  762. matchre %attack (You fade in|You get|You pick|already holding)
  763. matchwait
  764.  
  765. debil:
  766. if "%guild" = "Barbarian" then return
  767. if "%guild" = "Thief" then return
  768. if "%guild" = "Trader" then return
  769. if "%debilitation" != "on" then return
  770. if matchre("$roomobjs","which appears dead") then return
  771. if $mana < %minimum-attunement then return
  772. gosub verb prep %debil-spell
  773. waitforre (fully prepared|you've already prepared)
  774. if "$1" = "you've alread prepared" then put release spell
  775. if "$1" = "you've alread prepared" then return
  776. if "%debil-cast" = "creature" then gosub verb cast creature
  777. if "%debil-cast" = "area" then gosub verb cast area
  778. if "%debil-cast" = "none" then gosub verb cast %crittername
  779. if "%debil-cast" != "creature" then if "%debil-cast" != "area" then if "%debil-cast" != "none" then put #send cast %debil-cast
  780. pause 2.5
  781. return
  782.  
  783. tactics:
  784. goto face-next
  785. face-next.p:
  786. pause 0.5
  787. face-next:
  788. if $webbed = 1 then goto face-next.p
  789. if $health < 50 then goto script-end
  790. if $standing = 0 then gosub verb stand
  791. put face next
  792. match face-next.p that while entangled in a web
  793. match attack.w Face what
  794. matchre face-next.p (type ahead|\.\.\.wait|still stunned|you don't feel like fighting)
  795. match appraise-critter You turn
  796. matchre analyze (There is nothing|At what are you|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical)
  797. matchwait
  798. appraise-critter:
  799. gosub verb app %crittername quick
  800. if "%guild" = "Empath" then goto shockcheck
  801. appraise-critter.d:
  802. if "%guild" = "Barbarian" then gosub roars
  803. if "%guild" = "Bard" then gosub bard-screams
  804. gosub debil
  805. goto analyze
  806. shockcheck.p:
  807. pause 0.5
  808. shockcheck:
  809. put assess
  810. waitfor You assess
  811. pause 0.5
  812. put perc %crittername
  813. matchre shockcheck.p (type ahead|\.\.\.wait)
  814. matchre empathbrawl (You sense nothing special|Options Available)
  815. match appraise-critter.d will not cause shock if you attack it
  816. match empathbrawl Roundtime
  817. matchwait
  818. empathbrawl:
  819. var tactics circle|bob|weave|circle|bob|weave
  820. gosub verb app %crittername quick
  821. goto analyze.d
  822.  
  823. analyze.p:
  824. pause 0.5
  825. analyze:
  826. if $standing = 0 then gosub verb stand
  827. if $mana > %minimum-attunement then gosub spell-buffs
  828. if $webbed = 1 then goto analyze.p
  829. if $health < 50 then goto script-end
  830. var swappie 0
  831. if "%skill" = "offhand" then if "$righthand" = "Empty" then var swappie 1
  832. if %swappie = 1 then gosub verb swap
  833. var analtype none
  834. if "%guild" = "Barbarian" then gosub expertise-check
  835. if "%analtype" = "none" then put analyze
  836. if "%analtype" != "none" then put %analtype
  837. match analyze.p do that while entangled in a web
  838. match analyze-baseattacks You fail to find any holes
  839. matchre analyze.p (type ahead|\.\.\.wait|still stunned|you don't feel like fighting)
  840. matchre attack.w (Analyze what|Face what|What are you|stand up first|You must be closer to use tactical abilities|There is nothing else to face)
  841. match analyze.d Roundtime
  842. match analyze.dpp You recall your combo
  843. match analyze.reset just recently completed that attack combination
  844. matchwait
  845. analyze.reset:
  846. var analtype none
  847. goto analyze
  848. analyze.dpp:
  849. pause 0.5
  850. goto analyze.d
  851. expertise-check:
  852. if "%expertise" = "off" then return
  853. if "%expertise" = "none" then return
  854. math expertise-track add 1
  855. var analtype none
  856. if %expertise-track = 1 then if "%analyze-1" != "none" then if "%analyze-1" != "off" then var analtype analyze %analyze-1
  857. if %expertise-track = 2 then if "%analyze-2" != "none" then if "%analyze-2" != "off" then var analtype analyze %analyze-2
  858. if %expertise-track = 3 then if "%analyze-3" != "none" then if "%analyze-3" != "off" then var analtype analyze %analyze-3
  859. if %expertise-track > 3 then var expertise-track 0
  860. if %expertise-track = 0 then goto expertise-check
  861. return
  862.  
  863. analyze-baseattacks:
  864. var tactics attack|attack|attack
  865. analyze.d:
  866. pause 1
  867. var swappie 0
  868. if "%skill" = "offhand" then if "$lefthand" = "Empty" then var swappie 1
  869. if %swappie = 1 then gosub verb swap
  870. if "%1" = "empath" then var tactics circle|bob|weave
  871. if "%1" = "Empath" then var tactics circle|bob|weave
  872. if "%1" = "Empath" then var tactics circle|bob|weave
  873. if "%1" = "emp" then var tactics circle|bob|weave
  874. if "%1" = "Emp" then var tactics circle|bob|weave
  875. if "%1" = "EMP" then var tactics circle|bob|weave
  876. eval TacticCount count("%tactics","|")
  877. math TacticCount add 1
  878. var TacticTracker 0
  879. tactics-combo:
  880. if %TacticTracker 0 = then gosub thief-ambush
  881. if %TacticTracker = %TacticCount then if "%guild" = "Empath" then goto shockcheck
  882. if %TacticTracker = %TacticCount then goto tactic-maneuver
  883. eval NextMove element("%tactics", %TacticTracker)
  884. math TacticTracker add 1
  885. goto tactic-attack
  886. tactic-maneuver:
  887. if $gametime > %maneuver-timer then goto analyze
  888. var maneuver-timer $gametime
  889. math maneuver-timer add 70
  890. var NextMove none
  891. if "%maneuver-type" = "edges" then if "%edge-maneuver" != "off" then if "%edge-maneuver" != "none" then var NextMove maneuver %edge-maneuver
  892. if "%maneuver-type" = "blunts" then if "%blunt-maneuver" != "off" then if "%blunt-maneuver" != "none" then var NextMove maneuver %blunt-maneuver
  893. if "%maneuver-type" = "staves" then if "%staves-maneuver" != "off" then if "%staves-maneuver" != "none" then var NextMove maneuver %staves-maneuver
  894. if "%maneuver-type" = "polearm" then if "%polearm-maneuver" != "off" then if "%polearm-maneuver" != "none" then var NextMove maneuver %polearm-maneuver
  895. if "%skill" = "brawl" then if "%brawl-maneuver" != "none" then var NextMove maneuver %brawl-maneuver
  896. if "%NextMove" = "none" then goto analyze
  897.  
  898. tactic-attack.p:
  899. pause 0.5
  900. tactic-attack:
  901. if $stamina < 80 then gosub fatigue-return
  902. if $standing = 0 then gosub verb stand
  903. math hit-track add 1
  904. if %hit-track > %attack-limit then goto swap-skills
  905. if $webbed = 1 then goto tactic-attack.p
  906. if $health < 50 then goto script-end
  907. var meleestalk 0
  908. if "%train-stealths" = "on" then if %stealths-locked = 0 then var meleestalk 1
  909. if "%alwayshideFORmelee" = "on" then var meleestalk 1
  910. if %meleestalk = 1 then gosub stalk
  911. if "%skill" = "brawl" then put gouge
  912. if "%skill" != "offhand" then put feint
  913. if "%skill" = "offhand" then put feint left
  914. matchre tactic-attack.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  915. matchre attack.w (There is nothing|At what are you| stand up first|It's best you not do that to|Wouldn't it be better if you used|I could not find what you were|close enough|You must be closer to use tactical)
  916. match killed balance]
  917. match killed balanced]
  918. match tactic-attack.wx flying too high for you to attack
  919. match tactics-combo Roundtime
  920. matchwait 10
  921. goto analyze
  922. tactic-attack.wx:
  923. pause 5
  924. goto tactic-attack
  925.  
  926. thief-ambush:
  927. if "%guild" != "Thief" then return
  928. if "%thief-ambush" != "on" then return
  929. if $standing = 0 then gosub verb stand
  930. if matchre("%NextSkill","%weapons") then var amb %$0-ambush
  931. if "%amb" = "off" then return
  932. if "%amb" = "none" then return
  933. ambushing:
  934. gosub stalk
  935. put ambush %amb
  936. match ambushing type ahead
  937. match ambushing ...wait
  938. match thief-ambush.d Roundtime
  939. match ambushing You must be hidden
  940. match thief-ambush.d already
  941. match thief-ambush.d There is nothing else
  942. match thief-ambush.d close enough
  943. match thief-ambush.d You don't think you have enough focus
  944. matchwait
  945. thief-ambush.d:
  946. return
  947.  
  948.  
  949.  
  950.  
  951. pray-kill:
  952. var pray-tracker 0
  953. if "%guild" != "Cleric" then return
  954. if matchre("$roomobjs","(\w+) which appears dead") then gosub verb pray $1
  955. gosub verb stand
  956. gosub verb pray Botolf
  957. gosub verb stand
  958. gosub prayermat
  959. return
  960.  
  961. load3.p:
  962. pause 0.5
  963. load3:
  964. put load
  965. matchre load3.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  966. match load3.p Roundtime
  967. match load3.d already loaded
  968. matchwait
  969. load3.d:
  970. return
  971.  
  972.  
  973.  
  974. load.p:
  975. pause 0.5
  976. load:
  977. if "%guild" = "Empath" then goto swap-skills
  978. if "%1" = "empath" then goto swap-skills
  979. if "%1" = "Empath" then goto swap-skills
  980. if "%1" = "Empath" then goto swap-skills
  981. if "%1" = "emp" then goto swap-skills
  982. if "%1" = "Emp" then goto swap-skills
  983. if "%1" = "EMP" then goto swap-skills
  984. if "%guild" = "Bard" then gosub bard-screams
  985. if $mana > %minimum-attunement then gosub spell-buffs
  986. math hit-track add 1
  987. if %hit-track > %attack-limit then goto swap-skills
  988. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  989. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  990. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  991. if $webbed = 1 then goto load.p
  992. if $health < 50 then goto script-end
  993. if matchre("$righthand","riot") then goto turn-cross
  994. if matchre("$righthand","repeat") then goto turn-cross
  995. load2:
  996. if "%skill" = "bow" then put load my $righthandnoun with my %bow-ammo
  997. if "%skill" = "crossbow" then put load my $righthandnoun with my %crossbow-ammo
  998. if "%skill" = "sling" then put load my $righthandnoun with my %sling-ammo
  999. matchre load.p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  1000. match aim.pre Roundtime
  1001. if matchre("$righthand","riot") then match aim-repeater-1 already loaded
  1002. if matchre("$righthand","repeat") then match aim-repeater-1 already loaded
  1003. if matchre("$righthand","riot") then matchwait
  1004. if matchre("$righthand","repeat") then matchwait
  1005. match aim already loaded
  1006. matchwait
  1007. aim.pre:
  1008. if matchre("$righthand","riot") then goto load2
  1009. if matchre("$righthand","repeat") then goto load2
  1010. goto aim
  1011. turn-cross:
  1012. pause 0.5
  1013. put push my $righthandnoun
  1014. matchre turn-cross (type ahead|\.\.\.wait)
  1015. match aim rapid series of clicks emanate
  1016. match aim You realize readying more than one
  1017. match load2 sharp click signals that you've exhausted
  1018. matchwait
  1019. aim-repeater-1:
  1020. goto turn-cross
  1021. aim-p:
  1022. pause 0.5
  1023. aim:
  1024. if $standing = 0 then gosub verb stand
  1025. setvariable fullaim 0
  1026. setvariable targetwait 0
  1027. if matchre("$roomobjs","%otherloot") then gosub verb stow $0
  1028. if $stamina < 80 then gosub fatigue-return
  1029. if $webbed = 1 then goto aim-p
  1030. if $health < 50 then goto script-end
  1031. gosub ranged-maneuver
  1032. put aim
  1033. match attack.w There is nothing else
  1034. matchre aim-p (type ahead|\.\.\.wait|You can't do that while|still stunned|you don't feel like fighting)
  1035. matchre aiming (You begin to target|You are already targetting)
  1036. matchwait
  1037. ranged-maneuver:
  1038. var maneuver-shoot none
  1039. if $gametime < %maneuver-timer then return
  1040. if "%ranged-maneuver" != "none" then if "%ranged-maneuver" != "off" then var maneuver-shoot maneuver %ranged-maneuver
  1041. var maneuver-timer $gametime
  1042. math maneuver-timer add 70
  1043. return
  1044.  
  1045. aiming:
  1046. pause 0.5
  1047. math targetwait add 1
  1048. if %fullaim = 1 then goto fire
  1049. if %targetwait > 25 then goto fire
  1050. if "%skill" = "bow" then if "%bow-snapshots" = "on" then if %targetwait > 5 then goto fire
  1051. if "%skill" = "crossbow" then if "%crossbow-snapshots" = "on" then if %targetwait > 5 then goto fire
  1052. if "%skill" = "sling" then if "%sling-snapshots" = "on" then if %targetwait > 5 then goto fire
  1053. goto aiming
  1054. fire-p:
  1055. pause 0.5
  1056. fire:
  1057. if $standing = 0 then gosub verb stand
  1058. if $webbed = 1 then goto fire-p
  1059. if $health < 50 then goto script-end
  1060. if "%skill" = "bow" then var firetype %bow-shoot
  1061. if "%skill" = "crossbow" then var firetype %crossbow-shoot
  1062. if "%skill" = "sling" then var firetype %sling-shoot
  1063. if "%firetype" = "snipe" then gosub stalk
  1064. if "%firetype" = "poach" then gosub stalk
  1065. var stalkit 0
  1066. if "%firetype" = "fire" then if "%train-stealths" = "on" then if "%stealths-locked" = 0 then var stalkit 1
  1067. if "%alwayshideFORranged" = "on" then var stalkit 1
  1068. if %stalkit = 1 then gosub stalk
  1069. if "%maneuver-shoot" = "none" then put %firetype
  1070. if "%maneuver-shoot" != "none" then put %maneuver-shoot
  1071. match attack.w There is nothing else
  1072. matchre fire-p (type ahead|\.\.\.wait|How can you poach|You can't do that while|still stunned|you don't feel like fighting|you are not hidden)
  1073. match fire-p How can you snipe
  1074. match killed balance]
  1075. match killed balanced]
  1076. match load Roundtime
  1077. matchwait 5
  1078. goto load
  1079.  
  1080. stalk:
  1081. if $standing = 0 then gosub verb stand
  1082. gosub verb hide
  1083. gosub verb stalk
  1084. return
  1085.  
  1086.  
  1087. target.p:
  1088. pause 0.5
  1089. target:
  1090. if "%guild" = "Empath" then goto swap-skills
  1091. if "%1" = "empath" then goto swap-skills
  1092. if "%1" = "Empath" then goto swap-skills
  1093. if "%1" = "Empath" then goto swap-skills
  1094. if "%1" = "emp" then goto swap-skills
  1095. if "%1" = "Emp" then goto swap-skills
  1096. if "%1" = "EMP" then goto swap-skills
  1097. if $standing = 0 then gosub verb stand
  1098. if "%guild" = "Barbarian" then goto swap-skills
  1099. if "%guild" = "Thief" then goto swap-skills
  1100. if "%guild" = "Trader" then goto swap-skills
  1101. if matchre("$roomobjs","which appears dead") then goto killed
  1102. math hit-track add 1
  1103. if %hit-track > %attack-limit then goto swap-skills
  1104. setvariable fullaim 0
  1105. setvariable targetwait 0
  1106. if %targettrack > 3 then var targettrack 1
  1107. if %targettrack = 1 then var targetspell %TM-spell-1
  1108. if %targettrack = 2 then var targetspell %TM-spell-2
  1109. if %targettrack = 3 then var targetspell %TM-spell-3
  1110. math targettrack add 1
  1111. if "%TM-spell-1" = "none" then if "%TM-spell-2" = "none" then if "%TM-spell-3" = "none" then goto swap-skills
  1112. if "%targetspell" = "none" then goto target
  1113. if $mana < %minimum-attunement then gosub target-wait
  1114. put target %targetspell
  1115. matchre target.p (type ahead|\.\.\.wait|still stunned|you don't feel like fighting|while entangled)
  1116. match targeting You begin to weave mana lines into a target pattern
  1117. match targeting You begin to weave mana lines into a targeting pattern
  1118. match target-release There is nothing else to face
  1119. match target-release What are you trying to attack
  1120. match target-release you must specify a target
  1121. match target-release You are not engaged
  1122. matchwait
  1123. target-release:
  1124. gosub verb release spell
  1125. if matchre("$roomobjs","which appears dead") then goto killed
  1126. goto attack.w
  1127. targeting:
  1128. pause 0.5
  1129. math targetwait add 1
  1130. if %fullaim = 1 then goto castTM
  1131. if %targetwait > 25 then goto castTM
  1132. goto targeting
  1133. TM.charge:
  1134. put charge %TM-cambrinth %TM-charge
  1135. pause 5
  1136. put invoke my %TM-cambrinth
  1137. pause 2
  1138. return
  1139. castTM.p:
  1140. pause 0.5
  1141. castTM:
  1142. if %TM-cambrinth != "none" then gosub TM.charge
  1143. if %TM-harness > 0 then gosub verb harn %TM-harness
  1144. if $standing = 0 then gosub verb stand
  1145. put cast
  1146. match castTM.p your bindings make it impossible to hide
  1147. match castTM.p ...wait
  1148. match castTM.p type ahead
  1149. match castTM.p still stunned
  1150. match castTM.p you don't feel like fighting
  1151. match target-release Your target pattern dissipates
  1152. match target-release There is nothing else to face
  1153. match target-release What are you trying to attack
  1154. match target-release you must specify a target
  1155. match target-release You are not engaged
  1156. match target-release You clench your fist
  1157. match target-release too mentally fatigued to finish the pattern
  1158. match target.p You gesture
  1159. match target.p You lift
  1160. match target.p Roundtime
  1161. match target.p You raise
  1162. matchwait
  1163.  
  1164. target-wait:
  1165. pause 10
  1166. if $mana > %minimum-attunement then return
  1167. goto target-wait
  1168.  
  1169.  
  1170. killed:
  1171. if matchre("$roomobjs","(\w+) which appears dead") then var critname $1
  1172. math pray-tracker add 1
  1173. if %pray-tracker > 6 then gosub pray-kill
  1174. ## if $gametime > %commune-time then gosub commune
  1175. var necro-skin 0
  1176. var reskin 0
  1177. if "%guild" = "Necromancer" then gosub necrohealcheck
  1178. if "%guild" = "Necromancer" then gosub necro-rituals
  1179. if "%guild" = "Necromancer" then if "%necro-rituals" = "on" then goto skip-skin
  1180. reskin:
  1181. var reskin 0
  1182. if "%arrange-option" != "none" then if "%arrange-option" != "off" then var arrangeverb %critname for %arrange-option
  1183. if "%arrange-option" = "none" then var arrangeverb %critname
  1184. if "%arrange-option" = "off" then var arrangeverb %critname
  1185. if %arrange-times > 0 then gosub arrange-times
  1186. if "%arrange-times" = "all" then gosub verb arrange all %arrangeverb
  1187. if %necro-skin = 0 then gosub skin
  1188. skip-skin:
  1189. if %reskin = 1 then goto reskin
  1190. gosub loot
  1191. if matchre("$roomobjs","%bow-ammo") then gosub verb stow $0
  1192. if matchre("$roomobjs","%bow-ammo") then gosub verb stow $0
  1193. if matchre("$roomobjs","%bow-ammo") then gosub verb stow $0
  1194. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1195. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1196. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1197. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1198. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1199. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1200. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1201. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1202. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1203. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1204. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1205. ## if matchre("$roomobjs","which appears dead") then goto killed
  1206. if $mana > %minimum-attunement then gosub spell-buffs
  1207. if matchre("$righthand","riot") then gosub load3
  1208. if matchre("$righthand","repeat") then gosub load3
  1209. if %t > %timelimit then goto script-end
  1210. if $gametime > %cyclictimer then gosub cyclictimer
  1211. put skill %skill
  1212. waitforre (\d+)/34
  1213. if $1 > %exp-limit then goto swap-skills
  1214. gosub verb hunt
  1215. gosub flee
  1216. gosub perc
  1217. gosub check-mods-kill
  1218. pause
  1219. goto %attack
  1220.  
  1221. perc:
  1222. if "%guild" = "Barbarian" then return
  1223. if "%guild" = "Thief" then return
  1224. if "%guild" = "Trader" then return
  1225. gosub verb perc
  1226. return
  1227.  
  1228. commune:
  1229. var commune-time $gametime
  1230. math commune-time add 2700
  1231. if "%guild" != "Cleric" then return
  1232. gosub retreat
  1233. put .meraudcommune
  1234. waitfor put your incense
  1235. gosub prayermat
  1236. put get %WeapName
  1237. return
  1238.  
  1239. badge:
  1240. pause 1
  1241. put get my pilgrim badge
  1242. put pray my pilgrim badge
  1243. pause 10
  1244. put stow my pilg badge
  1245. return
  1246.  
  1247. prayermat:
  1248. if matchre("%WeapName","%worn-weapons") then gosub verb wear my %WeapName
  1249. if matchre("%WeapName","%tied-weapons") then gosub verb tie my %NextWeapon to my %tie-container
  1250. put stow my %WeapName
  1251. pause 1
  1252. put get my mat
  1253. put unroll my mat
  1254. pause 1
  1255. put kneel mat
  1256. put get my wine
  1257. pause 1
  1258. put kiss mat
  1259. put pour my wine on mat
  1260. pause 1
  1261. put stow my wine
  1262. pause 1
  1263. put stand
  1264. put dance mat
  1265. pause 11
  1266. put dance mat
  1267. pause 11
  1268. put dance mat
  1269. pause 16
  1270. put roll mat
  1271. put stow my mat
  1272. pause 1
  1273. if matchre("%WeapName","%worn-weapons") then gosub verb remove my %NextWeapon
  1274. if matchre("%WeapName","%tied-weapons") then gosub verb untie my %NextWeapon
  1275. put get my %WeapName
  1276. return
  1277.  
  1278. arrange-times:
  1279. var arranged 0
  1280. arranging:
  1281. if %arranged = %arrange-times then return
  1282. if %arranged > %arrange-times then return
  1283. gosub verb arrange %arrangeverb
  1284. math arranged add 1
  1285. goto arranging
  1286.  
  1287.  
  1288. necrohealcheck:
  1289. if "%necro-selfheal" = "off" then return
  1290. pause
  1291. put heal
  1292. matchre necro-selfheal.set You have .* (left arm|right arm|left eye|right eye|head|neck|abdomen|chest|left hand|right hand|left leg|right leg|back|twitching\.)
  1293. match skip-necroheal You have no
  1294. matchwait
  1295. necro-selfheal.set:
  1296. var bodypart $1
  1297. if "%bodypart" = "twitching" then var bodypart nerve
  1298. if "%bodypart" = "twitching." then var bodypart nerve
  1299. if "%bodypart" = "twitching\." then var bodypart nerve
  1300. goto necro-selfheal
  1301. skip-necroheal:
  1302. return
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309. fatigue-return:
  1310. if $stamina > 95 then return
  1311. pause 0.5
  1312. goto fatigue-return
  1313.  
  1314. verb:
  1315. setvariable verb $0
  1316. goto verb.a
  1317. verb.p:
  1318. pause 0.5
  1319. verb.a:
  1320. if $webbed = 1 then goto verb.p
  1321. if $health < 50 then goto script-end
  1322. if $stunned = 1 then goto verb.p
  1323. pause 0.1
  1324. put %verb
  1325. match verb.p your bindings make it impossible to hide
  1326. match verb.p type ahead
  1327. match verb.p ...wait
  1328. match verb.p still stunned
  1329. match verb.p you don't feel like fighting
  1330. match verb.p can't do that while entangled in a web
  1331. matchre verb.d (You let your voice fade|You begin to chant a mesmerizing|With a rising crescendo in your voice|You begin your enchante|The air gradually stills|With a sharp cut to your voice|A few fleeting|You begin to hum the soothing|marches off and become gradually quieter|With a resounding|As your rendition of|You release an accompaniment|You begin to sing|flick of your wrist you stealthily unsheathe|Praying for|eyes darken to black as a starless night|release an accompaniment of elemental air|begin to chant a mesmerizing cadence designed|into your bundle|You release an accompaniment of elemental fire|you begin to chant the rhythm that heralds|trace a careful sigil|You raise your arms skyward|mutter a foul-sounding phrase to yourself|trace a curving sigil|that is already in your inventory|determine anything about this creature|mutter blasphemies to yourself|already dead|mutter incoherently to yourself while preparing|wailing of lost souls accompanies|has already been arranged|blue frost crackles up your arms|you can't arrange|Your heart skips a beat|newfound fluidity of your mind|orange flames blaze between your fingertips|You deftly|You strap|You stuff|With calm movements|You attach|You remove|You can also|Smiling slyly|not ready|You clench your hands|You hold out your arms to either side as|You fade in|You whisper the final word of your spell so that none may notice your effort|too cluttered|Stalk what|You clap|You speak|Arrange what|With rigid movements|You close yours eyes|With tense movements|You let your concentration|You make a holy gesture|cannot be skinned|You find yourself unable to hunt|could not find what|You clap your hands|You easily strap|That area is not bleeding|You take a step back|could not find what|You strain, but cannot focus your mind|You attempt to relax your mind|You get|You put|STOW HELP|You push|think pushing that would have any effect|You move|You're already using the Sight|You have not recovered from your previous use|careful focus, you adjust your eyes to see in shadow as they|You close your eyes|You're not ready to do that again|was just recently mined by someone else|Roundtime|area has already been tended to|work carefully at tending your wound|The spell pattern collapses|You are unable to control|not damaged enough to warrant repair|cannot figure out how to do that|You're not ready to do that|Drink what|What were you referring|You eat|You drink|You stand|Your analysis has revealed no additional resources|You look around, but can't see any place to hide yourself|stalking|following|already hidden|You pick up|You cannot|You gesture|You trace a hasty sigil in the air|is now set at|You detach|You snuff|You sling|You begin chanting|You bend|You are already|Quietly touching|You recite| turns up fruitless|You pour|You sprinkle|already stand|You grind|You feel warmth|already empty|You recall|You struggle|You open|You raise|You reach for its center and forge a magical link to it|You trace an angular sigil|cannot produce|You drop|already been skinned|before you arrange|inherently stealthy endeavor|try being out of sight|cannot muster enough energy to vocalize|cannot collect anything|Setting your|You trace a geometric sigil|don't have a spell prepared|already preparing|already fully prepared|preparing a spell|harnessing any mana|You aren't preparing|You slip|no matter how you arrange it|There isn't any more room|With meditative movements)
  1332. matchwait
  1333. verb.d:
  1334. return
  1335.  
  1336. skin.p:
  1337. pause 0.5
  1338. skin:
  1339. put stow %WeapName
  1340. if $webbed = 1 then goto skin.p
  1341. if "$lefthand" = "Empty" then var whichhand left
  1342. if "$righthand" = "Empty" then var whichhand right
  1343. put skin
  1344. match skin.p can't do that while entangled in a web
  1345. match skin.p type ahead
  1346. match skin.p still stunned
  1347. match skin.p you don't feel like fighting
  1348. match skin.p ...wait
  1349. match skin.d into your bundle
  1350. match skin.d Roundtime
  1351. match skin.d already been skinned
  1352. match skin.d already been harvested
  1353. match skin.d not dead
  1354. match skin.d living
  1355. matchre skin.d (Skin what|can't skin|not skin|t be skinned|Skin what)
  1356. matchwait
  1357. skin.d:
  1358. var temp1 nil
  1359. if matchre("$roomobjs","bundle") then if "%whichhand" = "left" then if "$lefthand" != "Empty" then var temp1 put $lefthandnoun in bundle
  1360. if matchre("$roomobjs","bundle") then if "%whichhand" = "right" then if "$righthand" != "Empty" then var temp1 put $righthandnoun in bundle
  1361. if "%temp1" != "nil" then gosub verb %temp1
  1362. var temp1 nil
  1363. if "%whichhand" = "left" then if "$lefthand" != "Empty" then var temp1 empty left
  1364. if "%whichhand" = "right" then if "$righthand" != "Empty" then var temp1 empty right
  1365. if "%temp1" != "nil" then gosub verb %temp1
  1366. put get %WeapName
  1367. return
  1368.  
  1369. if matchre("$roomobjs","bundle") then if "%attack" = "throw" then put put $righthandnoun in bundle
  1370. if matchre("$roomobjs","bundle") then if "%attack" = "offhand" then put put $righthandnoun in bundle
  1371. if matchre("$roomobjs","bundle") then if "%skill" = "brawl" then put put $righthandnoun in bundle
  1372. if matchre("$roomobjs","bundle") then if "%attack" != "throw" then if "%attack" != "offhand" then put put $lefthandnoun in bundle
  1373. if "%attack" = "throw" then gosub verb empty right
  1374. if "%attack" = "offhand" then gosub verb empty right
  1375. if "%attack" != "offhand" then gosub verb empty left
  1376. if "%skill" = "brawl" then gosub verb empty right
  1377. return
  1378. loot.p:
  1379. pause 0.5
  1380. loot:
  1381. if $webbed = 1 then goto loot.p
  1382. put loot
  1383. match loot.p can't do that while entangled in a web
  1384. match loot.p type ahead
  1385. match loot.p still stunned
  1386. match loot.p you don't feel like fighting
  1387. match loot.p ...wait
  1388. match loot.d could not find
  1389. match loot.d You search
  1390. matchwait
  1391. loot.d:
  1392. pause 0.1
  1393. if matchre("$roomobjs","%gems") then gosub lootgem
  1394. if matchre("$roomobjs","%coins") then gosub lootcoin
  1395. if matchre("$roomobjs","%boxtypes") then gosub lootbox
  1396. if matchre("$roomobjs","%otherloot") then gosub verb stow $0
  1397. if matchre("$roomobjs","%otherloot") then gosub verb stow $0
  1398. if matchre("$roomobjs","%otherloot") then gosub verb stow $0
  1399. if matchre("$roomobjs","%otherloot") then gosub verb stow $0
  1400. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1401. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1402. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1403. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1404. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1405. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1406. if matchre("$roomobjs","%ammotypes") then gosub verb stow $0
  1407. return
  1408.  
  1409. lootgem:
  1410. if "%lootgems" != "on" then return
  1411. if matchre("$roomobjs","%gems") then gosub verb stow $0
  1412. if matchre("$roomobjs","%gems") then gosub verb stow $0
  1413. if matchre("$roomobjs","%gems") then gosub verb stow $0
  1414. return
  1415. lootcoin:
  1416. if "%lootcoins" != "on" then return
  1417. if matchre("$roomobjs","%coins") then gosub verb stow $0
  1418. if matchre("$roomobjs","%coins") then gosub verb stow $0
  1419. if matchre("$roomobjs","%coins") then gosub verb stow $0
  1420. return
  1421. lootbox:
  1422. if "%lootboxes" != "on" then return
  1423. if %BoxStowTrack = %HolderCount then return
  1424. if %boxes = %box-limit then return
  1425. if %boxes > %box-limit then return
  1426. if matchre("$roomobjs","%boxtypes") then math boxes add 1
  1427. if matchre("$roomobjs","%boxtypes") then var tempbox $0
  1428. if matchre("$roomobjs","%boxtypes") then gosub pickup-box $0
  1429. pause 0.1
  1430. if "$righthand" != "Empty" then if "$lefthand" != "Empty" then put drop %tempbox
  1431. return
  1432.  
  1433. pickup-box.p:
  1434. pause 0.5
  1435. pickup-box:
  1436. put get %tempbox
  1437. matchre pickup-box.p (type ahead|...wait)
  1438. matchre pickup-box.d (You pick up|You get|already hold)
  1439. matchre noboxtoget (could not find|What were you)
  1440. matchwait
  1441. noboxtoget:
  1442. return
  1443. pickup-box.d:
  1444. goto stow-box
  1445. stow-box.p:
  1446. pause 0.5
  1447. stow-box:
  1448. put put my %tempbox in my %CurrentStorage
  1449. matchre stow-box.p (type ahead|...wait)
  1450. matchre stow-box.d (You put|could not find|What were you)
  1451. matchre swap-box-stow (how you arrange|t to fit|more room|more space|too heavy)
  1452. matchwait
  1453. stow-box.d:
  1454. return
  1455. swap-box-stow:
  1456. math BoxStowTrack add 1
  1457. if %BoxStowTrack = %HolderCount then return
  1458. eval CurrentStorage element("%box-holders", %BoxStowTrack)
  1459. goto stow-box
  1460.  
  1461.  
  1462.  
  1463. retreat.p:
  1464. pause 0.5
  1465. retreat:
  1466. if $webbed = 1 then goto retreat.p
  1467. put retreat
  1468. matchre retreat.p (type ahead|...wait|still stunned|you don't feel like fighting)
  1469. match retreat.p You retreat back to pole range
  1470. match retreat.p Roundtime
  1471. matchre retreat.d (You retreat from combat|You are already as far away)
  1472. match retreat.p can't do that while entangled in a web
  1473. matchwait
  1474. retreat.d:
  1475. return
  1476.  
  1477. timer:
  1478. timer clear
  1479. timer reset
  1480. timer start
  1481. return
  1482.  
  1483. attack.w:
  1484. pause 1
  1485. if $monstercount = 0 then gosub verb collect rock
  1486. if $monstercount = 0 then put #send 5 kick pile
  1487. if $monstercount > 0 then if $hidden = 1 then put #send dance
  1488. if $monstercount > 0 then put #send advance
  1489. matchre %attack (melee|pole|balance|position)
  1490. matchwait 30
  1491. if $monstercount > 0 then goto %attack
  1492. if $monstercount = 0 then put exp
  1493. goto attack.w
  1494.  
  1495. mana-wait:
  1496. pause 5
  1497. if $mana > %internal-attunement then return
  1498. goto mana-wait
  1499.  
  1500. spell-buffs:
  1501. if "%guild" = "Barbarian" then return
  1502. if "%guild" = "Thief" then return
  1503. if "%guild" = "Trader" then return
  1504. if $mana < %minimum-attunement then return
  1505. if $gametime > %buff-dur-1 then var buffcamb %buff-camb-1
  1506. if $gametime > %buff-dur-1 then gosub prep-buff %buff-spell-1
  1507. if $gametime > %buff-dur-2 then var buffcamb %buff-camb-2
  1508. if $gametime > %buff-dur-2 then gosub prep-buff %buff-spell-2
  1509. if $gametime > %buff-dur-3 then var buffcamb %buff-camb-3
  1510. if $gametime > %buff-dur-3 then gosub prep-buff %buff-spell-3
  1511. if $gametime > %buff-dur-4 then var buffcamb %buff-camb-4
  1512. if $gametime > %buff-dur-4 then gosub prep-buff %buff-spell-4
  1513. if $gametime > %buff-dur-5 then var buffcamb %buff-camb-5
  1514. if $gametime > %buff-dur-5 then gosub prep-buff %buff-spell-5
  1515. if $gametime > %buff-dur-6 then var buffcamb %buff-camb-6
  1516. if $gametime > %buff-dur-6 then gosub prep-buff %buff-spell-6
  1517. if $gametime > %buff-dur-7 then var buffcamb %buff-camb-7
  1518. if $gametime > %buff-dur-7 then gosub prep-buff %buff-spell-7
  1519. if $gametime > %buff-dur-8 then var buffcamb %buff-camb-8
  1520. if $gametime > %buff-dur-8 then gosub prep-buff %buff-spell-8
  1521. if $gametime > %buff-dur-9 then var buffcamb %buff-camb-9
  1522. if $gametime > %buff-dur-9 then gosub prep-buff %buff-spell-9
  1523. if $gametime > %buff-dur-10 then var buffcamb %buff-camb-10
  1524. if $gametime > %buff-dur-10 then gosub prep-buff %buff-spell-10
  1525. return
  1526.  
  1527.  
  1528. prep-buff:
  1529. var buffer $0
  1530. gosub setspell %buffer
  1531. if $mana < %minimum-attunement then return
  1532. if "%buffer" = "none" then return
  1533. if "%spellname" = "MF" then gosub verb remove staff
  1534. if "%spellname" = "PoM" then gosub verb remove staff
  1535. if "%spellname" = "Mf" then gosub verb remove staff
  1536. if "%spellname" = "POM" then gosub verb remove staff
  1537. if "%spellname" = "mf" then gosub verb remove staff
  1538. if "%spellname" = "pom" then gosub verb remove staff
  1539. gosub verb prep %buffer
  1540. setvariable fullprep 0
  1541. setvariable targetwait 0
  1542. if %buffcamb > 0 then gosub verb charge my %camb-item %buffcamb
  1543. if %buffcamb > 0 then gosub verb invoke my %camb-item
  1544. if "$preparedspell" = "Murrula's Flames" then gosub verb invoke staff
  1545. if "$preparedspell" = "Persistence of Mana" then gosub verb invoke staff
  1546. var prepedspell $preparedspell
  1547. prepping-buff:
  1548. pause 0.5
  1549. math targetwait add 1
  1550. if %fullprep = 1 then goto cast-buff
  1551. if %targetwait > 50 then goto cast-buff
  1552. goto prepping-buff
  1553. cast-buff:
  1554. gosub verb cast
  1555. if "%spellname" = "MF" then gosub verb wear staff
  1556. if "%spellname" = "PoM" then gosub verb wear staff
  1557. if "%spellname" = "Mf" then gosub verb wear staff
  1558. if "%spellname" = "POM" then gosub verb wear staff
  1559. if "%spellname" = "mf" then gosub verb wear staff
  1560. if "%spellname" = "pom" then gosub verb wear staff
  1561. gosub set-dur
  1562. return
  1563. setspell:
  1564. var spellname $1
  1565. return
  1566.  
  1567.  
  1568. set-dur.p:
  1569. pause 0.5
  1570. set-dur:
  1571. if $stunned = 1 then goto set-dur.p
  1572. put perc
  1573. matchre set-dur.p (type ahead|\.\.\.wait|still stunned)
  1574. matchre setspelldur1 %prepedspell.* (a|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|ninteen|twenty|thirty|fourty|fifty|sixty|seventy|eighty|ninty|ninety|hundred) roisaen
  1575. matchre setspelldur2 %prepedspell.* (twenty|thirty|fourty|fifty|sixty|seventy|eighty|ninety|ninty)-(one|two|three|four|five|six|seven|eight|nine) roisaen
  1576. matchre setspelldur3 %prepedspell.* (hundred|hundred and) (a|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|ninteen|twenty|thirty|fourty|fifty|sixty|seventy|eighty|ninty|ninety) roisaen
  1577. matchre setspelldur4 %prepedspell.* (hundred|hundred and) (twenty|thirty|fourty|fifty|sixty|seventy|eighty|ninety|ninty)-(one|two|three|four|five|six|seven|eight|nine) roisaen
  1578. match defaultdur Roundtime
  1579. matchwait
  1580. setspelldur1:
  1581. var ts $1
  1582. if "%ts" = "hundred" then var ts 100
  1583. goto convertduration
  1584. setspelldur2:
  1585. var ts $1-$2
  1586. goto convertduration
  1587. setspelldur3:
  1588. var ts $1$2
  1589. goto convertduration
  1590. setspelldur4:
  1591. var ts $1$2-$3
  1592. goto convertduration
  1593.  
  1594. convertduration:
  1595. eval ts replacere("%ts", "hundred and", "1")
  1596. eval ts replacere("%ts", "hundred", "1")
  1597. eval ts replacere("%ts", "ninety-", "9")
  1598. eval ts replacere("%ts", "ninty-", "9")
  1599. eval ts replacere("%ts", "ninety", "90")
  1600. eval ts replacere("%ts", "ninty", "90")
  1601. eval ts replacere("%ts", "eighty-", "8")
  1602. eval ts replacere("%ts", "eighty", "80")
  1603. eval ts replacere("%ts", "seventy-", "7")
  1604. eval ts replacere("%ts", "sixty-", "6")
  1605. eval ts replacere("%ts", "fifty-", "5")
  1606. eval ts replacere("%ts", "fourty-", "4")
  1607. eval ts replacere("%ts", "seventy", "70")
  1608. eval ts replacere("%ts", "sixty", "60")
  1609. eval ts replacere("%ts", "fifty", "50")
  1610. eval ts replacere("%ts", "fourty", "40")
  1611. eval ts replacere("%ts", "ten", "10")
  1612. eval ts replacere("%ts", "eleven", "11")
  1613. eval ts replacere("%ts", "twelve", "12")
  1614. eval ts replacere("%ts", "thirteen", "13")
  1615. eval ts replacere("%ts", "fourteen", "14")
  1616. eval ts replacere("%ts", "fifteen", "15")
  1617. eval ts replacere("%ts", "sixteen", "16")
  1618. eval ts replacere("%ts", "seventeen", "17")
  1619. eval ts replacere("%ts", "eightteen", "18")
  1620. eval ts replacere("%ts", "eighteen", "18")
  1621. eval ts replacere("%ts", "nineteen", "19")
  1622. eval ts replacere("%ts", "twenty-", "2")
  1623. eval ts replacere("%ts", "thirty-", "3")
  1624. eval ts replacere("%ts", "twenty", "20")
  1625. eval ts replacere("%ts", "thirty", "30")
  1626. eval ts replacere("%ts", "one", "1")
  1627. eval ts replacere("%ts", "two", "2")
  1628. eval ts replacere("%ts", "three", "3")
  1629. eval ts replacere("%ts", "four", "4")
  1630. eval ts replacere("%ts", "five", "5")
  1631. eval ts replacere("%ts", "six", "6")
  1632. eval ts replacere("%ts", "seven", "7")
  1633. eval ts replacere("%ts", "eight", "8")
  1634. eval ts replacere("%ts", "nine", "9")
  1635. eval ts replacere("%ts", "a", "1")
  1636. reset-ts:
  1637. if %ts > 0 then math ts multiply 60
  1638. if %ts > 0 then math ts add $gametime
  1639. if %ts > 0 then goto ts-end
  1640. defaultdur:
  1641. setvariable ts 20
  1642. goto reset-ts
  1643. ts-end:
  1644. if "%buffer" = "%buff-spell-1" then var buff-dur-1 %ts
  1645. if "%buffer" = "%buff-spell-2" then var buff-dur-2 %ts
  1646. if "%buffer" = "%buff-spell-3" then var buff-dur-3 %ts
  1647. if "%buffer" = "%buff-spell-4" then var buff-dur-4 %ts
  1648. if "%buffer" = "%buff-spell-5" then var buff-dur-5 %ts
  1649. if "%buffer" = "%buff-spell-6" then var buff-dur-6 %ts
  1650. if "%buffer" = "%buff-spell-7" then var buff-dur-7 %ts
  1651. if "%buffer" = "%buff-spell-8" then var buff-dur-8 %ts
  1652. if "%buffer" = "%buff-spell-9" then var buff-dur-9 %ts
  1653. if "%buffer" = "%buff-spell-10" then var buff-dur-10 %ts
  1654. echo [ Setting %buffer timer to %ts
  1655. return
  1656.  
  1657.  
  1658.  
  1659.  
  1660. cyclictimer:
  1661. if "%cyclics" = "off" then return
  1662. if %cyclictrack > 3 then var cyclictrack 0
  1663. if %cyclictrack = 1 then var cyc %cyclic-1
  1664. if %cyclictrack = 2 then var cyc %cyclic-2
  1665. if %cyclictrack = 3 then var cyc %cyclic-3
  1666. math cyclictrack add 1
  1667. if "%cyc" = "none" then goto cyclictimer
  1668. put rel cyc
  1669. pause 0.1
  1670. gosub verb prep %cyc
  1671. setvariable cyclictimer $gametime
  1672. math cyclictimer add 600
  1673. waitfor fully prepared
  1674. gosub verb cast
  1675. return
  1676.  
  1677.  
  1678. repairs:
  1679. var returnroom $roomid
  1680. gosub move %RepairRoom
  1681. if "$lefthand" != "Empty" then gosub verb stow left
  1682. if "$righthand" != "Empty" then gosub verb stow right
  1683. eval repaircount count("%LeatherRepairs","|")
  1684. math repaircount add 1
  1685. var repairtrack 0
  1686. leatherrep:
  1687. if %repairtrack = %repaircount then goto leatherrepdone
  1688. eval NextRep element("%LeatherRepairs", %repairtrack)
  1689. if "%NextRep" != "none" then gosub repleath
  1690. if "%NextRep" != "none" then gosub repleath
  1691. math repairtrack add 1
  1692. goto leatherrep
  1693. leatherrepdone:
  1694. gosub move %returnroom
  1695. goto swap-skills
  1696.  
  1697.  
  1698. repleath:
  1699. gosub verb remove my %NextRep
  1700. gosub verb get my needles
  1701. gosub verb push my %NextRep with my needles
  1702. gosub verb stow my needles
  1703. gosub verb get my slickstone
  1704. gosub verb rub my %NextRep with my slickstone
  1705. gosub verb stow my slickstone
  1706. gosub verb wear my %NextRep
  1707. return
  1708.  
  1709. roars:
  1710. if "%barb-roars" = "off" then return
  1711. if "%guild" != "Barbarian" then return
  1712. if "%roar-1" = "none" then if "%roar-2" = "none" then if "%roar-3" = "none" then return
  1713. if %roartrack > 3 then var roartrack 1
  1714. if %roartrack = 1 then var roar %roar-1
  1715. if %roartrack = 2 then var roar %roar-2
  1716. if %roartrack = 3 then var roar %roar-3
  1717. math roartrack add 1
  1718. if "%roar" = "none" then goto roars
  1719. put roar %roar
  1720. pause 2
  1721. return
  1722.  
  1723. forms:
  1724. if "%barb-forms" = "off" then return
  1725. if "%guild" != "Barbarian" then return
  1726. put form stop all
  1727. forms2:
  1728. pause 0.5
  1729. if matchre("%NextSkill","%weapons") then gosub check-form $0
  1730. return
  1731.  
  1732. check-form:
  1733. var form-array %$1-forms
  1734. if "%form-array" = "off" then return
  1735. if "%form-array" = "none" then return
  1736. eval FormCount count("%form-array","|")
  1737. math FormCount add 1
  1738. if %FormCount = 1 then goto secondary-forms
  1739. var FormTrack 0
  1740. primary-forms:
  1741. if %FormTrack = %FormCount then goto forms-done
  1742. eval NextForm element("%form-array", %FormTrack)
  1743. gosub start-form %NextForm
  1744. math FormTrack add 1
  1745. goto primary-forms
  1746. secondary-forms:
  1747. gosub start-form %form-array
  1748. forms-done:
  1749. return
  1750.  
  1751. start-form:
  1752. var form $0
  1753. if "%form" = "off" then return
  1754. if "%form" = "none" then return
  1755. put form start %form
  1756. pause 2
  1757. pause 1
  1758. return
  1759.  
  1760. set-attacklimit:
  1761. if matchre("%NextSkill","%weapons") then var attack-limit %$0-attack-limit
  1762. return
  1763.  
  1764. thief-khri:
  1765. if "%thief-khri" = "off" then return
  1766. if "%guild" != "Thief" then return
  1767. var oldkhri %khri
  1768. if matchre("%NextSkill","%weapons") then var khri %$0-khri
  1769. if "%khri" = "off" then return
  1770. if "%khri" = "none" then return
  1771. if "%khri" != "%oldkhri" then put khri stop
  1772. pause 0.2
  1773. put khri start %khri
  1774. pause 2
  1775. return
  1776.  
  1777. necro-ritual.p:
  1778. pause 0.5
  1779. necro-rituals:
  1780. if "%guild" != "Necromancer" then return
  1781. if "%necro-rituals" = "off" then return
  1782. if "%ritual-1" = "none" then if "%ritual-2" = "none" then if "%ritual-3" = "none" then return
  1783. if "%ritual-1" = "off" then if "%ritual-2" = "off" then if "%ritual-3" = "off" then return
  1784. if matchre("$roomobjs","(\w+) which appears dead") then var crittername $1
  1785. if %ritual-track > 3 then var ritual-track 1
  1786. if %ritual-track = 1 then var rittype %ritual-1
  1787. if %ritual-track = 2 then var rittype %ritual-2
  1788. if %ritual-track = 3 then var rittype %ritual-3
  1789. if "%rittype" = "none" then math ritual-track add 1
  1790. if "%rittype" = "off" then math ritual-track add 1
  1791. if "%rittype" = "none" then goto necro-rituals
  1792. if "%rittype" = "off" then goto necro-rituals
  1793. if "%rittype" = "arise" then goto necro-arise
  1794. put perform %rittype on %crittername
  1795. matchre necro-ritual.p (type ahead|\.\.\.wait)
  1796. matchre ritual.d (but are unable to discern where to direct your thanatological|A failed or completed|This corpse has already|may only be performed on a corpse|may only be performed on a creature's corpse|do not work upon the undead)
  1797. match ritual-harvest Roundtime
  1798. matchwait
  1799. ritual-harvest.p:
  1800. pause 0.5
  1801. ritual-harvest:
  1802. if "%necro-harvest" != "on" then var reskin 1
  1803. if "%necro-harvest" != "on" then goto ritual.d
  1804. put perform harvest on %crittername
  1805. matchre ritual-harvest.p (type ahead|\.\.\.wait)
  1806. matchre ritual.d (but are unable to discern where to direct your thanatological|unusable for your purposes|already been harvested|may only be performed|A failed or completed|prevents its harvesting|do not work upon the undead|You do not have the knowledge required)
  1807. match ritual.d Roundtime
  1808. matchwait
  1809. ritual.d:
  1810. var necro-skin 1
  1811. math ritual-track add 1
  1812. if "$righthandnoun" = "material" then put empty right
  1813. if "$lefthandnoun" = "material" then put empty left
  1814. pause 0.1
  1815. if "%skill" = "brawl" then if "$righthand" != "Empty" then put stow right
  1816. if "%skill" = "targeted magic" then if "$righthand" != "Empty" then put stow right
  1817. if "%skill" != "brawl" then if "%skill" != "targeted magic" then if "$lefthand" != "Empty" then put stow left
  1818. return
  1819.  
  1820. necro-arise:
  1821. pause 0.5
  1822. put perform preserve on %crittername
  1823. matchre necro-arise (type ahead|\.\.\.wait)
  1824. matchre ritual.d (but are unable to discern where to direct your thanatological|A failed or completed|This corpse has already|may only be performed on a corpse|may only be performed on a creature's corpse|do not work upon the undead)
  1825. match necro-arise-2 Roundtime
  1826. matchwait
  1827. necro-arise-2:
  1828. pause 0.5
  1829. put perform arise on %crittername
  1830. matchre necro-arise-2 (type ahead|\.\.\.wait)
  1831. matchre ritual.d (but are unable to discern where to direct your thanatological|A failed or completed|This corpse has already|may only be performed on a corpse|may only be performed on a creature's corpse|do not work upon the undead)
  1832. match ritual-harvest Roundtime
  1833. matchwait
  1834.  
  1835. necro-selfheal.p:
  1836. pause 0.5
  1837. necro-selfheal:
  1838. if "%necro-selfheal" = "off" then return
  1839. put perform cons on %crittername
  1840. matchre necro-selfheal.p (type ahead|\.\.\.wait)
  1841. matchre necro-selfheal.f (but are unable to discern where to direct your thanatological|may only be performed on|do not work upon the undead)
  1842. match perform-necroheal Roundtime
  1843. matchwait
  1844. necro-selfheal.f:
  1845. return
  1846. perform-necroheal:
  1847. gosub verb prep Consume Flesh
  1848. waitfor fully prep
  1849. put cast %bodypart;release spell
  1850. pause
  1851. return
  1852.  
  1853. bard-screams:
  1854. if "%bard-screams" = "off" then return
  1855. if "%bard-screams" = "none" then return
  1856. if %scream-timer < $gametime then return
  1857. gosub set-scream %NextSkill
  1858. if "%scream" = "none" then return
  1859. if "%scream" = "off" then return
  1860. pause 0.5
  1861. put %scream
  1862. pause
  1863. pause 0.5
  1864. var scream-timer $gametime
  1865. math scream-timer add 60
  1866. return
  1867.  
  1868. set-scream:
  1869. var scream %$1-scream
  1870. return
  1871.  
  1872.  
  1873. module:
  1874. gosub check-mods-cycle
  1875. goto swap-skills
  1876.  
  1877. check-mods-kill:
  1878. if "%modules" != "on" then return
  1879. if matchre("%killmods","%module-1-timing") then if "%module-1-name" != "none" then if "%module-1-name" != "off" then gosub runmodule %module-1-name
  1880. if matchre("%killmods","%module-2-timing") then if "%module-2-name" != "none" then if "%module-2-name" != "off" then gosub runmodule %module-2-name
  1881. if matchre("%killmods","%module-3-timing") then if "%module-3-name" != "none" then if "%module-3-name" != "off" then gosub runmodule %module-3-name
  1882. return
  1883. check-mods-skill:
  1884. if "%modules" != "on" then return
  1885. if matchre("%skillmods","%module-1-timing") then if "%module-1-name" != "none" then if "%module-1-name" != "off" then gosub runmodule %module-1-name
  1886. if matchre("%skillmods","%module-2-timing") then if "%module-2-name" != "none" then if "%module-2-name" != "off" then gosub runmodule %module-2-name
  1887. if matchre("%skillmods","%module-3-timing") then if "%module-3-name" != "none" then if "%module-3-name" != "off" then gosub runmodule %module-3-name
  1888. return
  1889. check-mods-cycle:
  1890. if "%modules" != "on" then return
  1891. if matchre("%cyclemods","%module-1-timing") then if "%module-1-name" != "none" then if "%module-1-name" != "off" then gosub runmodule %module-1-name
  1892. if matchre("%cyclemods","%module-2-timing") then if "%module-2-name" != "none" then if "%module-2-name" != "off" then gosub runmodule %module-2-name
  1893. if matchre("%cyclemods","%module-3-timing") then if "%module-3-name" != "none" then if "%module-3-name" != "off" then gosub runmodule %module-3-name
  1894. return
  1895. runmodule:
  1896. var modulename $0
  1897. echo . [ Running module %modulename ... ]
  1898. put .%modulename
  1899. waitforre (SCRIPT DONE|SCRIPT COMPLETE|MOD DONE|MODULE DONE|MOD COMPLETE|MOD FINISHED|SCRIPT FINISHED|MODULE COMPLETE|MODULE FINISHED)
  1900. pause 0.5
  1901. return
  1902.  
  1903.  
  1904. script-end:
  1905. echo
  1906. echo Time Out!
  1907. echo Exiting Script and Sending you Home
  1908. echo
  1909. put #goto cross
  1910. waitfor YOU HAVE ARRIVED
  1911. put #goto Cross
  1912. waitfor YOU HAVE ARRIVED
  1913. put #goto NTR
  1914. waitfor YOU HAVE ARRIVED
  1915. put #goto Sorrow
  1916. waitfor YOU HAVE ARRIVED
  1917. put #goto Home
  1918. waitfor YOU HAVE ARRIVED
  1919. put unlockdoor;open door;go door
  1920. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement