Advertisement
Guest User

Untitled

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