Advertisement
Guest User

Untitled

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