Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- debuglevel 10
- var retryCommandTriggers ^\.\.\.wait|You stop as you realize the throwing hammer is not yours\.|^You are still stunned|^You don't seem to be able to move to do that|^You can't do that while entangled in a web|^You struggle against the shadowy webs to no avail\.|^Sorry, system is slow\. No type ahead allowed\.|^You attempt that, but end up getting caught in an invisible box\.|Sorry, you may only type
- var prepStrings ^You recall the exact details of the|^You begin chanting a mantra|^You close your eyes and breathe deeply,|^You trace an arcane sigil in the air,|^Heatless orange flames blaze between your fingertips|^Your eyes darken to black as a starless night|^You raise your arms skyward, chanting|^You are already preparing|^You struggle against your bindings to prepare
- var stop.playing.first.triggers ^You should stop playing before you do that\.|^You are a bit too busy performing to do that\.|^You are concentrating too much upon your performance to do that\.|^You are concentrating too much upon your performance to do that\.
- action instant put #var lodged.bolts 1 when ^.+lodges itself (.+) into you!
- action instant put #plat WindowError.wav;put exit when $health < 60
- action instant put #var bolt.location $2 when ^.+lodged (shallowly|firmly|deeply|savagely) into your (.+)\.$
- action send path foc cons when ^You so heavily embody the Elemental Plane of Fire that it already threatens your health.
- action instant send stand when $sitting > 0
- action instant send stand when $prone > 0
- action instant put face next;send $lastcommand when ^You are not engaged to anything, so you must specify a target to focus on!|^What do you want to advance towards?
- action send stand when (^must be standing\.|^You are so unbalanced\.|^You should stand up first\.)
- action instant put exit when eval $health < 70
- action send $lastcommand when (^You don't seem to be able to move to do that\.|^You struggle against the shadowy webs to no avail\.|^Sorry, system is slow\.|^You attempt that, but end up getting caught in an invisible box\.|^Sorry, you may only\.|^You try to back away from|^You aren't close enough to attack\.|^You aren't close enough to attack\.|^...wait\.)
- action var People.Room 1 when ^Also here|^You notice \S+'s attempt to remain hidden|^You notice \S+ as \S+ stealthily closes to.*range on a|^You notice \S+ loading|^A howl echoes about you as a wolf calls to his kind!|^With a waver like a mirage, \S+ fades into view.|^\S+ appears to be aiming at|comes out of hiding.|^\S+ leaps from hiding|slips out of the shadows|Someone snipes|attempt to fire from hiding.|^\S+ bursts from hiding and begins to dance about!|^The .*reveals.*, ruining.*hiding attempt!|^\S+ (?:begins to|stops) advanc(?:e|ing) on a|discovers \S+ hiding!
- action var People.Room 1 when ^A howl echoes about you as a wolf calls to his kind\!$
- action var People.Room 1 when ^With a waver like a mirage, \w+ fades into view\.$
- action var People.Room 1 when ^You notice \w+ loading
- action var People.Room 1 when ^\w+ appears to be aiming at
- action var People.Room 1 when ^You notice \w+'s attempt to remain hidden
- action var People.Room 1 when Appearing to have lost sight of its target
- action var People.Room 1 when comes out of hiding\.$
- action var People.Room 1 when ^\w+ leaps from hiding
- action var People.Room 1 when slips out of the shadows
- action var People.Room 1 when Someone snipes
- action var People.Room 1 when attempt to fire from hiding\.$
- action var People.Room 1 when ^You hear
- action var People.Room 1 when Also here\.$
- action var People.Room 1 when You hear the spine-chilling hiss of a S'Kra Mur somewhere in the shadows\.$
- action var People.Room 1 when bursts from hiding and begins to dance about\!$
- action var People.Room 1 when ^You notice \w+ as \w+ stealthily closes to.(melee|missle) on a
- action var People.Room 1 when ^You notice \w+ attempting to stealthily advance upon a
- action var People.Room 1 when ^You hear someone cough\.$
- action var People.Room 1 when ^You hear the voice of \w+ say, "
- action var People.Room 1 when ^\w+ moves into a position to (parry|dodge)\.$
- action var People.Room 1 when ^\w+ coughs\.$
- action var People.Room 1 when ^\w+ says, "
- action var People.Room 1 when ^\w+ gestures at a \w+\.$
- action var Mapp 1 when A sense of calm focus takes hold as the luminous pattern washes over you.
- action var Mapp 0 when The field of silver-blue light dissipates from around you
- action var Mapp 1 when You sense the Major Physical Protection spell upon you
- action var Bene 1 when You sense the Benediction spell upon you
- action var Bene 0 when You feel the divinity seep from your bones as the previous blessing
- action var Sol 1 when You sense the Shield of Light spell upon you
- action var Sol 0 when Your latent Shield of Light spell dissipates
- action var Sol 1 when A fiery blaze covers your shield arm like a vambrace of solid sunlight
- action var Cen 1 when An odd tingling sensation spreads upward from your feet through your entire body
- action var Cen 1 when You sense the Centering spell upon you
- action var Cen 0 when The tingling sensation leaves you.
- action var Mpp 1 when You are bathed in a soft silver glow for a moment
- action var Mpp 1 when You sense the Minor Physical Protection spell upon you
- action var Mpp 0 when The soft silver glow fades from around you.
- action var communeLevel 1 when ^You feel unclean and unworthy
- action var hyhset 1 when Swirls of malefic darkness gather in a wide matrix near your body,
- action var hyhset 0 when The deadening murk around you subsides.
- action var communeLevel 2 when In a moment a vision appears of a barren garden
- action var communeLevel 3 when ^You call out to your god, but there is no answer\.
- action var communeLevel 4 when you sense that your god is barely aware of you\.
- action var communeLevel 5 when you sense that your efforts have not gone unnoticed\.
- action var communeLevel 6 when you sense a distinct link between you and your god\.
- action var communeLevel 7 when you sense that your god is aware of your devotion\.
- action var communeLevel 8 when you sense that your god knows your name\.
- action var communeLevel 9 when you sense that your god is pleased with your devotion
- action var communeLevel 10 when though the visage is cloudy and impossible to make out clearly\.
- action var communeLevel 11 when leaving the feeling that your efforts have been acknowledged\.
- action var communeLevel 12 when radiating forth with a powerful divine brilliance\.
- action var communeLevel 13 when Come here, my child, and I will show you things of wonder\.
- action var communeLevel 14 when My child, though you may not always see my face, I am pleased with thee and thy efforts
- action var communeLevel 15 when Your unwavering faith and devotion pleases me greatly
- action var communeLevel 16 when you feel a clear presence like a warm blanket covering you beneath the shade
- action var communeMeraud 1 when ^You close your eyes and concentrate, letting your mind still and feeling your breathing grow shallow\.
- action var communeMeraud 1 when Meraud's power still holds your attention\.
- action var communeMeraud 1 when ^The area is under the auspices of Meraud\.
- action var communeMeraud 1 when ^The blessing of Meraud is with the area\.
- action var communeMeraud 1 when ^Meraud's influence is woven into the area\.
- action var communeMeraud 1 when ^A spark of Meraud's spirit is within the area\.
- action var communeMeraud 1 when ^The miracle of Meraud has manifested about the area\.
- action var communeMeraud 1 when ^The area is touched by Meraud\.
- action var communeMeraud 1 when ^The area is being favored by Meraud\.
- action var communeMeraud 1 when ^Meraud's benevolent eyes are upon the area\.
- action var communeMeraud 1 when ^Meraud is smiling down on the area\.
- action var communeMeraud 1 when ^The power of Meraud is channeling through the area\.
- action var communeMeraud 1 when ^As you commune you sense that the ground is already
- action var communeMeraud 0 when ^The holy presence in the area fades
- action var communeMeraud 0 when ^You sense your connection to the area you consecrated earlier fade away\.
- action var communeTamsine 1 when A vibrant blue nimbus encloses you before fading away\.
- action var communeTamsine 1 when ^You have been recently enlightened by Tamsine\.
- action var communeTamsine 0 when ^The vibrant blue nimbus of Tamsine's blessing fades from around you\.
- action var communeTamsine 0 when ^You are eager to better understand your relationship with the Immortals\.
- action var communeEluned 1 when ^The waters of Eluned are still in your thoughts\.
- action var communeEluned 0 when ^You are eager to better understand your relationship with the Immortals\.
- action var communeTimer 0 when ^You feel fully prepared to seek assistance from the Immortals once again\.
- action var communeTimer 0 when ^You are eager to better understand your relationship with the Immortals\.
- action var communeTimer 1 when ^You will not be able to open another divine conduit yet\.
- action var defcommuneUp 0;var offcommuneUp 0 when ^You are not a vessel for the gods at present\.
- action var defcommuneUp 1 when Eluned
- action var defcommuneUp 1 when Eluned's
- action var offcommuneUp 1 when Tamsine
- action var offcommuneUp 1 when Tamsine's
- action var offcommuneUp 1 when blue-white nimbus encloses you
- action var offcommuneUp 0 when ^The pale blue nimbus fades from around you\.
- action var defcommuneUp 1 when ^The power of Eluned is channeling through you\.
- action var defcommuneUp 1 when ^You feel the power of your faith surround you like invisible armor\.
- action var defcommuneUp 0 when ^The faint holy aura fades from around you\.
- action var needToRetreat 1 when ^You cannot juggle in combat\.
- action var needToRetreat 1 when closes to (pole weapon|melee) range on you\!|to escape its notice\!
- action var needToRetreat 1 when ^You retreat back to pole range\.|^You try to back away|^You begin to advance|^You close to
- action var needToRetreat 0 when ^You retreat from combat\.
- action var needToRetreat 0 when ^You sneak back out of combat\.
- action var needToRetreat 0 when ^You are already as far away as you can get\!
- action var health 1 when ^You have no significant injuries\.
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger1) $0 when ((, ")(?!F|Say Ahh!|Master|Come|Your|My|Ohiyesa))
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger2) $0 when ^You hear (?!a blood-curdling shriek|Birds chitter)
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger3) $0 when (.*the voice.*)
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger4) $0 when (^.*yells.*)
- action instant put #play WindowError.wav;put #flash;put #echo >log red (ALERT) $0 when ((?!SKILL|CAST|HELLO|CYCLIC|MANA|RELEASE|CANTRIP|SPELL|SCROLLHARNESS|HELP|STOW|RIGHT|LEFT|FAILED|MOVE|DONE|APPRAISE|WEAR|BELCH|HAVE|ARRIVED)\b([A-Z]{3}\w+))
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger5) $0 when A booming voice in your head shouts
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger6) $0 when Please SMILE
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger7) $0 when Toad of Fate
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger8) $0 when W E E P
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger9) $0 when (?!asketine|Askuwheteau)(\b(A|a)sk)
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger12) $0 when SEND
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger13) $0 when Says
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger14) $0 when says
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger15) $0 when Play
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger16) $0 when respond
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger17) $0 when Respond
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger18) $0 when You should
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger19) $0 when you should
- action instant put #play WindowError.wav;put #flash;put #echo >log red (Trigger20) $0 when girl
- ###################################
- ### Set Variables / Do Not Edit ###
- ###################################
- variable defcommuneUp 2
- variable offcommuneUp 2
- variable communeTimer 0
- variable communeEluned 0
- variable communeElunedTime 0
- variable communeElunedStart 0
- variable communeTamsineTime 0
- variable communeTamsineStart 0
- variable communeTamsine 0
- variable communeMeraud 0
- variable communeLevel 0
- variable Commune_Check 0
- variable lastriteTime 0
- variable lastriteStart 605
- variable OmTimer 660
- variable Last_Commune 0
- variable Last_Hunt 0
- variable Last_Anal 0
- variable Last_Loot 0
- variable Last_Armor_Check 0
- variable Last_Appraisal 0
- variable LastOm 0
- variable Last_Pray_Badge 0
- variable PrayBadge 0
- variable hyh defense
- variable Last_Pray_God 0
- evalmath PrayBadge $gametime - %Last_Pray_Badge
- evalmath PrayStart $gametime - %Last_Pray_God
- evalmath Om_Check $gametime - %LastOm
- evalmath Loot_Check $gametime - %Last_Loot
- evalmath Anal_Check $gametime - %Last_Anal
- evalmath Hunt_Check $gametime - %Last_Hunt
- evalmath App_Check $gametime - %Last_Appraisal
- evalmath Armor_Check $gametime - %Last_Armor_Check
- variable lastroom $roomid
- variable armorstoptime 15
- variable armortimer 120
- variable armortype chain
- variable spellcount 1
- variable boxes "coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box"
- variable gems "(waermodi|lantholite|lasmodi) stones|thealstone|agate|alexandrite|amber|amethyst|andalusite|aquamarine,|aquamarine\.|\bbar\b|\bbead\b|beryl|bloodgem|bloodstone|chrysoberyl|chrysoprase|carnelian|chalcedony|crysoprase|citrine|coral|crystal|diamond\.|diamond,|diopside|emerald|egg\b|eggcase|garnet|\bgem,|\bgem\.|goldstone|glossy malachite|(chunk of|some|piece of).*granite|hematite|iolite|ivory|jade|jasper|kunzite|lapis lazuli|malachite stone|minerals|moonstone|morganite|nugget|onyx|opal|pearl|pebble|peridot|quartz|ruby|sapphire|spinel|star-stone|sunstone|talon|tanzanite|tooth\b|topaz|tourmaline|tsavorite|turquoise|turquoise stone|zircon"
- variable box.count 0
- variable currentcycle 0
- TIMER START
- ######################################
- ### Variables / You can edit these ###
- ######################################
- variable lock.newboxlocation backpack
- variable cyclelock 2
- variable Hunt ON
- Variable App ON
- variable heal ON
- variable creature gryphon
- variable creature2 none
- variable loottype treasure
- variable gempouch g pouch
- variable loot.gem ON
- variable loot.box OFF
- variable skin ON
- variable arrange 0
- variable tact ON
- variable app ON
- variable TrainWarding ON
- variable TrainAugmentation ON
- variable TrainUtility ON
- variable TrainTM ON
- variable charactername ohiyesa
- variable fullpouchlocation backpack
- variable newpouchlocation thigh bag
- variable store.scroll backpack
- variable total.box 7
- variable health 0
- #####################################################################
- #####################################################################
- ### Script Control ###
- ### To add a new control follow this template ###
- ### For Melee ###
- ### gosub weaponverb weaponlearningrate howmanymindstates ###
- ### Example: gosub sword Light_Edge.LearningRate 15 ###
- ### For loadable Ranged ###
- ### gosub weaponverb ammo learningrate mindstates ###
- ### Note : After 2 loops all weapons will train to 34/34 ###
- #####################################################################
- #####################################################################
- gosub armorprime
- gosub om
- gosub buffcheck
- start:
- gosub stanceshield
- gosub healthcheck
- evalmath currentcycle %currentcycle + 1
- if %currentcycle >= 3 then {
- send .outofcombat
- exit
- }
- gosub armoroff
- pause .5
- send rel
- pause .5
- gosub stealth
- gosub armoron
- gosub lock.check
- gosub thrown mall Heavy_Thrown.LearningRate 15
- gosub thrown rock Light_Thrown.LearningRate 15
- gosub weapon spear Polearms.LearningRate 15
- gosub stanceparry
- gosub weapon riste Twohanded_Blunt.LearningRate 15
- gosub weapon great Twohanded_Edged.LearningRate 15
- gosub weapon broadsword Large_Edged.LearningRate 15
- start2:
- gosub stanceshield
- gosub weapon brawling Brawling.LearningRate 15
- gosub weapon pasaba Small_Edged.LearningRate 15
- gosub weapon mace Small_Blunt.LearningRate 15
- gosub stanceparry
- gosub weapon hammer Large_Blunt.LearningRate 15
- gosub weapon night Staves.LearningRate 15
- gosub stanceshield
- gosub ranged stonebow shard Crossbow.LearningRate 15
- gosub ranged sling shard Slings.LearningRate 15
- goto start
- ######################
- ## Checks ##
- ######################
- check:
- checks:
- if matchre("$roomobjs","\(young\)|young" then gosub killyoung
- gosub magictrain
- if %Loot_Check >= 20 then {
- if matchre("$roomobjs","\(dead\)|which appears dead" then gosub loot
- }
- evalmath Om_Check $gametime - %LastOm
- evalmath Commune_Check $gametime - %Last_Commune
- if %Commune_Check >= 100 then gosub CommuneTrain
- gosub Pray
- gosub PrayBadge
- if %Om_Check >= %OmTimer then gosub om
- gosub buffcheck2
- if %heal = ON && $bleeding != 0 then gosub heal
- evalmath Loot_Check $gametime - %Last_Loot
- if $monstercount = 0 then gosub collect
- evalmath Armor_Check $gametime - %Last_Armor_Check
- if %Armor_Check >= %armortimer then gosub armor.check
- evalmath Hunt_Check $gametime - %Last_Hunt
- if %Hunt_Check >= 180 then gosub Hunt
- evalmath App_Check $gametime - %Last_Appraisal
- if %App_Check >= 130 && %app = ON then gosub Appraisal
- evalmath Anal_Check $gametime - %Last_Anal
- if %Anal_Check >=120 && %tact = ON then gosub Tactics
- gosub magictrain
- return
- ###################
- ## OM ##
- ###################
- om:
- gosub roundtime
- send rel symb
- gosub roundtime
- send rel
- gosub roundtime
- put prep om
- pause
- send ret;ret
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- put ret;ret
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke fem
- gosub roundtime
- put ret;ret
- pause
- variable LastOm $gametime
- omcast:
- matchre omfull the orb having reached its full capacity|You sense that it cannot accept any more power
- matchre backfire backfire
- match omcast wait
- send cast orb
- matchwait 2
- goto om
- backfire:
- pause
- put rel symb
- pause
- goto om
- omfull:
- variable LastOm $gametime
- gosub hyh%hyh
- return
- ####################
- ## Thrown ##
- ####################
- thrown:
- variable weapon $1
- variable weaponxp $2
- variable weaponstop $3
- if %currentcycle >= %cyclelock then variable weaponstop 33
- goto thrown_start
- thrown_start:
- if $%weaponxp >= %weaponstop then goto thrown_done
- gosub get "%weapon"
- send throw
- gosub roundtime
- if %weapon = hammer then {
- pause 2
- }
- gosub checks
- goto thrown_start
- thrown_done:
- pause .5
- gosub stow "%weapon"
- pause .5
- return
- #######################
- ## Stealth ##
- #######################
- stealth:
- if matchre("$roomobjs","\(young\)|young" then gosub killyoung
- if $monstercount <= 2 then gosub collect
- if $hidden = 0 then gosub hide
- if $Stealth.LearningRate >= 33 then goto stealth.done
- send unhide;hide
- gosub roundtime
- goto stealth
- hide:
- send ret
- pause
- send hide
- gosub roundtime
- if $hidden = 0 then goto hide
- return
- stealth.done:
- send unhide
- gosub roundtime
- gosub hyh%hyh
- return
- #####################
- ## Melee ##
- #####################
- weapon:
- variable weapon $1
- variable weaponxp $2
- variable weaponstop $3
- if %currentcycle >= %cyclelock then variable weaponstop 33
- gosub feint.start
- return
- feint.start:
- pause .5
- gosub get "%weapon"
- pause .5
- put hold %weapon
- pause .5
- if $righthand = Empty then send swap
- pause .5
- feint.kill:
- gosub check
- if $%weaponxp >= %weaponstop then goto feint.done
- if %weapon = brawling then {
- put gouge
- gosub roundtime
- goto feint.kill
- }
- if $righthand = Empty then {
- send get %weapon
- gosub roundtime
- }
- put feint
- gosub roundtime
- goto feint.kill
- feint.done:
- put wear %weapon
- pause .5
- gosub stow "%weapon"
- pause .5
- return
- #######################
- ## Offhand ##
- #######################
- Offhand:
- variable weapon $1
- variable weaponstop $2
- if %currentcycle >= %cyclelock then variable weaponstop 33
- pause
- gosub get "%weapon"
- pause
- put swap
- Offhand2:
- gosub check
- if $Offhand_Weapon.LearningRate >= %weaponstop then goto Offhanddone
- gosub get "%weapon"
- pause
- if $lefthand = Empty then {
- send swap
- pause
- }
- send throw left
- gosub roundtime
- goto Offhand2
- Offhanddone:
- pause
- pause
- gosub stow "%weapon"
- pause
- return
- ######################
- ## Ranged ##
- ######################
- ranged:
- variable weapon $1
- variable weaponxp $3
- variable weaponstop $4
- variable ammo $2
- if %currentcycle >= %cyclelock then variable weaponstop 33
- gosub rangedstart
- return
- rangedstart:
- pause .5
- gosub get "%weapon"
- pause .5
- rangedload:
- gosub check
- if $righthandnoun != %weapon then {
- pause
- send get %weapon
- pause
- }
- if matchre("$roomobjs","\(%ammo\)|%ammo" then gosub stowammo
- if $%weaponxp >= %weaponstop then goto rangeddone
- if $monstercount = 0 then gosub collect
- gosub check
- pause
- put get %ammo
- gosub roundtime
- put load %weapon
- gosub roundtime
- put stow %ammo
- gosub roundtime
- put aim
- pause
- put bob
- gosub roundtime
- put weave
- gosub roundtime
- pause 2
- send fire
- gosub roundtime
- send stow %ammo
- pause .5
- goto rangedload
- stowammo:
- put stow %ammo;stow %ammo
- pause
- send look
- if matchre("$roomobjs","\(%ammo\)|%ammo" then goto stowammo
- return
- rangeddone:
- gosub stowammo
- pause
- gosub stow "%weapon"
- pause
- pause
- return
- #####################
- ## Magic ##
- #####################
- magictrain:
- if $preparedspell != None && $spelltime >= 20 then {
- if $Arcana.LearningRate < 25 && %arcana = ON then {
- pause .5
- put charge my c arm 38
- pause
- pause
- put invoke my c arm
- pause
- pause
- }
- if %harness = ON then {
- put harness %mana
- pause
- pause
- }
- if %symb = ON then {
- pause .5
- send prep symb
- pause .5
- }
- if %cast = area then send cast area
- if %cast = normal then send cast
- if %cast = engaged then send cast engaged
- if %cast = creature then send cast creature
- if %cast = aug then send cast augmentation
- if %cast = uti then send cast utility
- if %cast = deb then send cast debilitation
- gosub roundtime
- send release mana;rel spell
- pause .5
- }
- if $preparedspell != None then return
- goto spell%spellcount
- spell0:
- spell1:
- pause
- if $Utility.LearningRate < 30 and %TrainUtility = ON then {
- var arcana OFF
- var harness OFF
- var mana 0
- var cast normal
- var symb ON
- send prep dr 13
- pause .5
- evalmath spellcount 2
- }
- if %TrainUtility = OFF || $Utility.LearningRate >= 30 then {
- var spellcount 2
- }
- return
- spell2:
- if $Warding.LearningRate < 30 and %TrainWarding = ON then {
- var arcana OFF
- var harness OFF
- var mana 0
- var cast normal
- var symb ON
- send prep pfe 14
- pause .5
- var spellcount 3
- }
- if %TrainWarding = OFF || $Warding.LearningRate >= 30 then {
- var spellcount 3
- }
- return
- spell3:
- pause
- if $Augmentation.LearningRate < 30 and %TrainAugmentation = ON then {
- var arcana OFF
- var harness OFF
- var mana 0
- var cast aug
- var symb ON
- send prep sap 7
- pause .5
- var spellcount 4
- }
- if %TrainAugmentation = OFF || $Augmentation.LearningRate >= 30 then {
- var spellcount 4
- }
- return
- spell4:
- pause
- if $Targeted_Magic.LearningRate < 30 and %TrainTM = ON then {
- var arcana OFF
- var harness OFF
- var mana 10
- var cast normal
- var symb OFF
- send targ ff 15
- pause .5
- var spellcount 1
- }
- if %TrainTM = OFF || $Targeted_Magic.LearningRate >= 30 then {
- var spellcount 1
- }
- return
- ####################
- ## Loot ##
- ####################
- loot:
- pause
- if $preparedspell = "Fists of Faenella" then {
- send face next
- pause .5
- send targ
- pause .5
- }
- var Last_Loot $gametime
- if matchre("$roomobjs","%creature2 which appears dead") then {
- evalmath lastriteStart $gametime - %lastriteTime
- if %lastriteStart >= 605 && if %communeMeraud = 1 then goto LastRite
- if $Skinning.LearningRate > 30 && %t > 12 && %skin = ON then gosub skin
- if $Skinning.LearningRate < 30 && %t > 12 && %skin = ON then {
- goto arrange%arrange
- arrange5:
- send arrange
- gosub roundtime
- arrange4:
- send arrange
- gosub roundtime
- arrange3:
- send arrange
- gosub roundtime
- arrange2:
- send arrange
- gosub roundtime
- arrange1:
- send arrange
- gosub roundtime
- arrange0:
- gosub skin
- }
- }
- noskin:
- gosub LastRite
- if %loottype = normal then {
- send loot
- }
- else {
- send loot %loottype
- }
- pause .5
- if %loot.box = ON then {
- send look
- pause
- gosub boxes
- }
- gosub roundtime
- gosub dead.CollectGems
- gosub scrolls
- return
- skin:
- gosub stow "%weapon"
- TIMER CLEAR
- TIMER START
- skin2:
- match skin2 wait
- send skin
- matchwait 1
- gosub roundtime
- if $righthand != Empty then {
- gosub get "b rope"
- pause
- if $lefthand = Empty then {
- variable skin OFF
- send empty right
- pause
- goto noskin
- }
- send bundle
- pause
- gosub roundtime
- send adjust bundle
- gosub roundtime
- send adjust bundle
- gosub roundtime
- gosub wearbundle
- }
- if $righthand != Empty then {
- echo ####### Right hand is not empty - Skinning sub -
- exit
- }
- gosub roundtime
- gosub get "%weapon"
- gosub roundtime
- return
- boxes:
- if %loot.box = ON && matchre("$roomobjs",%boxes then {
- if %box.count <= %total.box then {
- pause .5
- send stow gem
- pause .5
- send stow box
- pause .6
- send look
- evalmath box.count %box.count + 1
- if matchre("$righthandnoun",%boxes then {
- var loot.box OFF
- var loottype treasure
- send empty right
- }
- if matchre("$lefthandnoun",%boxes then {
- var loot.box OFF
- var loottype treasure
- send empty left
- }
- }
- goto boxes
- }
- if %box.count >= %total.box then {
- var loot.box OFF
- var loottype treasure
- }
- return
- dead.CollectGems:
- if matchre("$roomobjs",%gems ) then {
- matchre pouchcheck any more gems|full to fit|You think the gem pouch|wealth|tie
- matchre coin STOW HELP
- put stow gem
- matchwait 1
- goto dead.CollectGems
- }
- if matchre("$righthand", %gems ) then send empty right hand
- if matchre("$lefthand", %gems ) then send empty left hand
- goto coin
- pouchcheck:
- if matchre("$righthand", %gems ) then send empty right hand
- if matchre("$lefthand", %gems ) then send empty left hand
- pause
- matchre newpouch already been tied off
- matchre loot You
- put tie my %gempouch
- matchwait
- newpouch:
- put hold my %gempouch
- pause
- put put %gempouch in my %fullpouchlocation
- pause
- matchre wearpouch You get
- matchre nopouch What were you
- put get %gempouch from %newpouchlocation
- matchwait
- wearpouch:
- pause
- put wear my %gempouch
- pause
- put store gem in %gempouch
- pause
- put stow right
- pause
- goto loot
- nopouch:
- pause
- setvar loot.gem OFF
- echo ********************************************************************************
- echo ********************* You Have No More Empty Gem Pouches ***********************
- Echo ************************** Get Some More You Bum *******************************
- echo ********************************************************************************
- return
- coin:
- if matchre("$roomobjs","(coin|coins)") then {
- matchre coin You pick up
- matchre return STOW HELP
- put stow coin
- matchwait 1
- goto coin
- }
- return
- scrolls:
- if matchre("$roomobjs"," (tablet|vellum|scroll|bark|map|roll|leaf)") then {
- pause .5
- put stow $1 in my %store.scoll
- pause .5
- return
- }
- else return then {
- pause .5
- put stow $1 in my %store.scoll
- pause .5
- return
- }
- else return
- collect:
- put coll rock
- gosub roundtime
- put kick pile
- pause
- if $monstercount < 1 then goto collect
- return
- #######################
- ## Tactics ##
- #######################
- Tactics:
- anal:
- if %creature2 != none then {
- if matchre("$roomobjs","\(%creature2\)|%creature2" then {
- send anal %creature2
- pause
- pause
- }
- send anal %creature
- pause
- pause
- setvariable Last_Anal $gametime
- return
- }
- if $Tactics.LearningRate >= 30 then {
- setvariable Last_Anal $gametime
- return
- }
- if $monstercount >= 4 then {
- put anal fourth %creature
- pause
- } if $monstercount >= 3 then {
- put anal third %creature
- pause
- } if $monstercount >= 2 then {
- put anal second %creature
- pause
- }
- put anal first %creature
- pause
- setvariable Last_Anal $gametime
- return
- #########################
- ## Appraisal ##
- #########################
- Appraisal:
- send perc
- gosub roundtime
- gosub buffcheck
- gosub roundtime
- if $Appraisal.LearningRate >= 30 then {
- setvariable Last_Appraisal $gametime
- return
- }
- put #send app %creature quick
- pause
- pause
- put #send app second %creature quick
- pause
- pause
- setvariable Last_Appraisal $gametime
- return
- Hunt:
- pause .5
- setvariable Last_Hunt $gametime
- if $Perception.LearningRate >= 30 then return
- matchre Return ^Roundtime|You find yourself unable to hunt in this area.
- pause .2
- put hunt
- matchwait 5
- #########################
- ## Locks ##
- ## Uses disarmed boxes ##
- #########################
- lock.check:
- if $Locksmithing.LearningRate > 10 then return
- locks:
- matchre box (coffer|trunk|chest|strongbox|skippet|caddy|crate|casket|box)
- match return Encumbrance
- put look in my %lock.newboxlocation;enc
- matchwait
- box:
- var box $1
- put get $1 from %lock.newboxlocation
- pick.ret:
- put ret;ret
- pause .5
- pickbox:
- if $Locksmithing.LearningRate > 33 then goto lockdone
- match pick.ret You realize that would be next to impossible while in combat.
- matchre pickbox ^\.\.\.wait|^Sorry, you may only type
- match pickbox You are unable to make
- matchre pickbox2 With a soft click|not even locked|Roundtime
- put pick %box blind
- matchwait
- pickbox2:
- matchre pick.ret locked
- match pick.loot Encumbrance
- put open my %box
- put enc
- matchwait
- pick.loot:
- put fill b pouch with %box
- pause
- put get coin;get coin
- pause .5
- put get coin;get coin
- pause
- pause
- put ret;ret
- pause
- put dismantel %box
- pause
- pause
- put ret;ret
- pause
- pause
- put dismantel %box
- pause
- pause
- if $righthandnoun = %box then send stow %box
- goto locks
- lockdone:
- gosub roundtime
- put stow right in my %lock.newboxlocation
- pause
- pause
- put stow right in my %lock.newboxlocation
- if $Locksmithing.LearningRate > 33 then return
- goto locks
- #####################
- ## Armor ##
- #####################
- armorprime:
- pause
- send hold greav
- pause
- send stow my greav
- pause
- if $lefthand != Empty then send stow left
- if $righthand != Empty then send stow right
- pause
- gosub armor.wear plate Plate_Armor.LearningRate "l greav" "r greav"
- pause
- return
- armoroff:
- var armortimer 6000
- gosub roundtime
- send hold p shirt
- gosub roundtime
- send stow p shirt
- gosub roundtime
- send hold p hood
- gosub roundtime
- send stow hood
- gosub roundtime
- send hold p mask
- gosub roundtime
- send stow mask
- gosub roundtime
- send hold p gloves
- gosub roundtime
- send stow p gloves
- gosub roundtime
- put hold %armorverb
- gosub roundtime
- put stow my greave
- gosub roundtime
- if $lefthand != Empty then send stow left
- if $righthand != Empty then send stow right
- pause
- return
- armoron:
- var armortimer 120
- gosub roundtime
- gosub get "p shirt"
- gosub roundtime
- send wear p shirt
- gosub roundtime
- gosub get "hood"
- gosub roundtime
- send wear hood
- gosub roundtime
- gosub get "p mask"
- gosub roundtime
- send wear mask
- gosub roundtime
- gosub get "p gloves"
- gosub roundtime
- send wear p gloves
- gosub roundtime
- put get %armorverb
- gosub roundtime
- put wear %armorverb
- gosub roundtime
- if $lefthand != Empty then send stow left
- if $righthand != Empty then send stow right
- pause
- return
- armor.check:
- var Last_Armor_Check $gametime
- if $%armorexp >= %armorstop then gosub armor.swap
- return
- armor.swap:
- if $Chain_Armor.LearningRate >= 24 && $Plate_Armor.LearningRate >= 24 && $Brigandine.LearningRate >= 24 then {
- var armortimer 1200
- return
- }
- var armortimer 120
- if %armortype == chain then {
- gosub armor.wear plate Plate_Armor.LearningRate "l greav" "r greav"
- return
- }
- if %armortype == plate then {
- gosub armor.wear brig Brigandine.LearningRate "s greav" "l greav"
- return
- }
- if %armortype == brig then {
- gosub armor.wear chain Chain_Armor.LearningRate "r greav" "s greav"
- return
- }
- return
- armor.wear:
- var armortype $1
- var armorexp $2
- var armorverb $3
- var prevarmorverb $4
- evalmath armorstop $%armorexp + %armorstoptime
- if %armorstop >= 33 then {
- var armorstop 33
- }
- gosub roundtime
- send ret;ret
- gosub roundtime
- send hold %prevarmorverb
- gosub roundtime
- pause
- send stow my greav
- gosub roundtime
- pause
- send get %armorverb
- gosub roundtime
- send wear %armorverb
- gosub roundtime
- return
- #######################
- ## Healing ##
- #######################
- healthcheck:
- if %health != On then return
- var health 0
- send health
- pause .5
- if %health = 0 then goto heal
- return
- heal:
- if $stunned != 0 then {
- pause 5
- goto heal
- }
- pause
- prone:
- if $prone > 0 then {
- send stand
- pause
- pause
- goto prone
- }
- put ret;ret
- pause
- pause
- send stow %weapon
- pause
- pause
- send stow %ammo
- pause
- if $righthandnoun = stonebow || $righthandnounse = sling then {
- send unload
- pause
- pause
- put stow %ammo
- pause
- pause
- send stow %weapon
- pause
- pause
- }
- if $righthand != Empty then send stow right
- if $lefthand != Empty then send stow left
- send stow ammo
- gosub roundtime
- pause
- stuncheck:
- if $stunned > 0 then {
- pause 5
- goto stuncheck
- }
- send stand
- pause
- gosub move 1
- gosub move 216
- gosub move heal
- gosub heal.lay
- gosub heal.wait
- gosub Stand
- gosub move "east gate"
- gosub move 234
- gosub tanner
- gosub move 217
- gosub move 58
- gosub find.room
- return
- tanner:
- gosub put1 "hold bundle" "^You sling a lumpy bundle off|^You remove a lumpy bundle"
- gosub put1 "sell bundle" "^Tremagis separates the bundle and sorts through it carefully"
- gosub put1 "stow b rope" "^You put your rope"
- return
- find.room:
- var firstroom %lastroom
- var secondroom 233
- var thirdroom 244
- var fourthroom 245
- var fifth room 246
- gosub finding.room %firstroom
- if %room == good then return
- gosub finding.room %secondroom
- if %room == good then return
- gosub finding.room %thirdroom
- if %room == good then return
- gosub finding.room %fourthroom
- if %room == good then return
- gosub finding.room %fifthroom
- if %room == good then return
- echo Room's taken
- gosub move 58
- exit
- finding.room:
- variable destination $1
- gosub move %destination
- huntcheck:
- var room bad
- var People.Room empty
- put look
- pause 4
- if %People.Room = 1 then return
- var room good
- return
- heal.lay:
- put look
- pause
- if matchre("$roomplayers","\(lying\)|lying" then {
- pause 15
- goto heal.lay
- }
- send lay
- pause .5
- return
- heal.wait:
- match return Quentin whispers, "Just between you and me and the Queen, I think you don't really need healing. Are you just my friend or something?"
- match return You sit up
- matchwait 30
- goto heal.wait
- move:
- var destination $1
- var currentroom $roomid
- match move FAILED
- match return ARRIVED
- send #goto %destination
- matchwait 35
- goto move
- Return:
- return
- roundtime:
- pause $roundtime
- pause .5
- return
- ########################
- ## Communes ##
- ########################
- CommuneTrain:
- if $Theurgy.LearningRate >= 15 then return
- gosub put1 "commune" "^"
- gosub put1 "commune sense" "^"
- gosub roundtime
- if %communeLevel < 8 then return
- if %communeTimer = 1 then return
- evalmath communeElunedStart $gametime-%communeElunedTime
- if %communeTimer = 0 and %communeElunedStart > 1250 then gosub PerformEluned
- if %communeTimer = 1 then return
- if %communeMeraud = 0 then gosub PerformMeraud
- if %communeTimer = 1 then return
- return
- Pray:
- evalmath PrayStart $gametime - %Last_Pray_God
- if %PrayStart < 605 then return
- gosub put1 "pray huldah" "^You glance at your surroundings before snarling"
- var Last_Pray_God $gametime
- return
- PrayBadge:
- evalmath PrayBadge $gametime - %Last_Pray_Badge
- if %PrayBadge < 3605 then return
- gosub put1 "hold badge" "^You take off a pilgrim's badge"
- gosub put1 "pray badge" "^You think upon the immortals|Roundtime"
- gosub put1 "wear badge" "^You put on a pilgrim's badge"
- var Last_Pray_Badge $gametime
- return
- LastRite:
- evalmath lastriteStart $gametime-%lastriteTime
- if %lastriteStart < 605 || if %communeMeraud = 0 then return
- gosub put1 "Recite Phelim, give me strength for my righteous vengeance.\; Chadatru, guide my sword to swing in justice.\; Everild, give me the power to conquer my enemies.\; Truffenyi, let me not lose sight of compassion and mercy\; Else, I will become like those I despise.\; Urrem'tier, receive into your fetid grasp these wicked souls\; May the Tamsine's realms never know their evil ways again" "You lift your voice|^You recite"
- gosub put1 "pray %creature" "^Quietly touching your|^You bend over the corpse|Roundtime"
- var lastriteTime $gametime
- gosub Stand
- return
- PerformMeraud:
- if %communeMeraud = 1 then return
- gosub StanceShield
- var stowedItemRMC none
- var stowedItemLMC none
- if "$righthandnoun" != "" then
- {
- var stowedItemRMC $righthandnoun
- if "%stowedItemRMC" = "ball and chain" then var stowedItemRMC ball
- if $righthandnoun = stonebow then gosub UnloadLX
- if $righthandnoun = sling then gosub UnloadLX
- gosub stowright right
- gosub stow shard
- }
- if "$lefthandnoun" != "" then
- {
- var stowedItemLMC $lefthandnoun
- gosub stow left
- }
- gosub get incense
- gosub drop incense
- gosub get great
- gosub get flint
- gosub put1 "light incense with my flint" "^You strike a piece of|But the fragrant incense is already lit\."
- gosub stowleft left
- gosub get incense
- gosub put1 "wave incense at %charactername" "^You wave some"
- gosub put1 "snuff incense" "You snuff out|^But that"
- gosub stow incense
- gosub get vial
- gosub put1 "sprinkle vial on %charactername" "^You sprinkle yourself"
- gosub stow vial
- gosub Retreat
- gosub Retreat
- gosub put1 "commune meraud" "You feel the power of|^You close your eyes and concentrate|^As you commune you sense that the ground is already"
- var communeTimer 1
- gosub stand
- gosub stow great
- if %stowedItemRMC != "none" then gosub get %stowedItemRMC
- if %stowedItemLMC != "none" then gosub get %stowedItemLMC
- return
- PerformEluned:
- if %trainingTM = 1 then return
- gosub StanceShield
- var stowedItemREC none
- var stowedItemLEC none
- if "$righthandnoun" != "" then
- {
- var stowedItemREC $righthandnoun
- if "%stowedItemREC" = "ball and chain" then var stowedItemREC ball
- if $righthandnoun = stonebow then gosub UnloadLX
- if $righthandnoun = sling then gosub UnloadLX
- gosub stowright right
- }
- if "$lefthandnoun" != "" then
- {
- var stowedItemLEC $lefthandnoun
- gosub stow left
- }
- pause 5
- gosub Retreat
- gosub Retreat
- gosub put1 "forage dirt" "^You cannot forage|^You manage|^Roundtime"
- gosub Retreat
- gosub get jar
- gosub put1 "commune eluned" "^You grind some dirt in|You don't seem to have the right ritual matierial|^You feel like you have completed this commune too recently"
- var communeElunedTime $gametime
- gosub stow jar
- if "$righthandnoun" = "dirt" then send empty right
- if "%stowedItemREC" != "none" then gosub get %stowedItemREC
- if "%stowedItemLEC" != "none" then gosub get %stowedItemLEC
- if "$righthandnoun" = "stonebow" then gosub Load my shard
- return
- ###############################
- ## Everything Else ##
- ###############################
- Put1:
- var firstCommand $1
- var waitString $2
- var humReturnLabel Putting1
- var retryString NULLNULLNULLNULL
- if "$3" != "" then var retryString $3
- Putting1:
- matchre PausePutting1 %retryCommandTriggers|%retryString
- matchre StopPlayingFirst %stop.playing.first.triggers
- matchre Return %waitString
- put %firstCommand
- matchwait
- PausePutting1:
- pause .2
- goto Putting1
- Put2:
- var firstCommand $1
- var secondCommand $2
- var waitString $3
- var humReturnLabel Putting2
- if $charactername = Copernicus then gosub status.check
- var retryString NULLNULLNULLNULL
- if "$4" != "" then var retryString $4
- Putting2:
- matchre PausePutting2 %retryCommandTriggers|%retryString
- matchre StopPlayingFirst %stop.playing.first.triggers
- matchre Return %waitString
- put %firstCommand
- put %secondCommand
- matchwait
- PausePutting2:
- pause .3
- goto Putting2
- Put3:
- var firstCommand $1
- var secondCommand $2
- var thirdCommand $3
- var waitString $4
- var humReturnLabel Putting3
- if $charactername = Copernicus then gosub status.check
- var retryString NULLNULLNULLNULL
- if "$5" != "" then var retryString $5
- Putting3:
- matchre PausePutting3 %retryCommandTriggers|%retryString
- matchre StopPlayingFirst %stop.playing.first.triggers
- matchre Return %waitString
- put %firstCommand
- put %secondCommand
- put %thirdCommand
- matchwait
- PausePutting3:
- pause .4
- goto Putting3
- Put4:
- var firstCommand $1
- var secondCommand $2
- var thirdCommand $3
- var fourthCommand $4
- var waitString $5
- var humReturnLabel Putting4
- if $charactername = Copernicus then gosub status.check
- var retryString NULLNULLNULLNULL
- if "$6" != "" then var retryString $6
- Putting4:
- matchre PausePutting4 %retryCommandTriggers|%retryString
- matchre StopPlayingFirst %stop.playing.first.triggers
- matchre Return %waitString
- put %firstCommand
- put %secondCommand
- put %thirdCommand
- put %fourthCommand
- matchwait
- PausePutting4:
- pause .5
- goto Putting4
- WaitRoundtime:
- waitforre ^Roundtime:
- pause .1
- return
- WaitFatigue:
- if $stamina > $1 then return
- pause .5
- goto WaitFatigue
- WaitMana:
- if $mana > $1 then return
- pause .5
- goto WaitMana
- Prep:
- gosub ReleaseSpell
- var spellReady 0
- gosub Put1 "prepare $0" "%prepStrings"
- return
- Harness:
- gosub Put1 "harness $1" "^Roundtime:|^You strain, but cannot harness that much power\.|^You can't harness that much mana\!"
- return
- Cast:
- gosub Put1 "cast $0" "^You gesture|^You reach with both your hands|^You point a crooked finger at|^You make a ruthless lashing gesture|^You can't cast|^You make a holy gesture and intone|have a spell prepared\!|^A warm sensation of security|^You strike your heel against the ground|^Your spell pattern collapses|^Wisps of spectral flame|^With a flick of your wrist,"
- var spellReady 0
- return
- Release:
- gosub Put1 "release spell" "^Type RELEASE HELP for more options\.|^You let your concentration|^You aren"
- return
- ReleaseSpell:
- if "$preparedspell" = "None" then return
- gosub Put1 "release spell" "^You let your concentration lapse and feel the spell's energies dissipate\.|^The deadening murk|^You aren't preparing a spell\."
- return
- ReleaseMana:
- gosub Put1 "release mana" "^You release the mana you were holding\.|^You aren't holding any mana\."
- return
- Perceive:
- Power:
- gosub Put1 "power" "^Roundtime:"
- return
- Focus:
- gosub Put1 "invoke my $0 spell" "^Roundtime:|^Your link to .+ is intact."
- return
- #Need more matches here, and for focus as well
- Charge:
- gosub Put1 "charge my $0" "^Roundtime:"
- return
- Forage:
- gosub Put1 "forage $0" "^Roundtime:|^You really need to have at least one hand free to forage properly\."
- return
- WaitForT:
- var pause.time $1
- var waitForString $2
- put #var waitTriggerFALSE
- action put #var waitTriggered TRUE when %waitForString
- var timePaused 0
- #echo waiting for %wait.string for %pause.time seconds
- WaitingForText:
- pause .2
- math timePaused add .2
- if %timePaused > %pauseTime then return
- if $waitTriggered = TRUE then return
- goto WaitingForText
- Moving:
- matchre StandThenMove ^You must be standing to do that\.
- matchre PauseThenMove %retryCommandTriggers
- matchre RetreatFromMeleeThenMove ^You are engaged to .+ melee range\!|do that while engaged\!
- matchre RetreatFromPoleThenMove ^You are engaged to .+ at pole weapon range\!
- matchre Return ^Obvious|^It's pitch dark
- put %moveDirection
- matchwait
- StandThenMove:
- gosub Stand
- goto Moving
- PauseThenMove:
- pause .2
- goto Moving
- RetreatFromMeleeThenMove:
- put retreat
- RetreatFromPoleThenMove:
- put retreat
- goto Moving
- Drop:
- gosub Put1 "drop $0" "^You drop|^What were you referring to\?|^But you aren't holding that\."
- return
- Aim:
- gosub Put1 "aim" "You begin to target|^There is nothing else|^You shift your target to|^You are already targetting that\!|^You need both hands in order to aim\.|^At what are you trying to aim\?|^Your .+ isn't loaded\!|^But the .+ in your right hand isn't a ranged weapon\!|^You don't have a ranged weapon to aim with\!"
- return
- Load:
- gosub Put1 "load $0" "^Roundtime|^Your .+ is already loaded|^What weapon are you trying to load\?|^You don't have the proper ammunition readily available for your|^You can't load .+, silly\!"
- return
- Stand:
- if $standing then return
- gosub Put1 "stand" "^You stand back up\.|^You stand up|^You are already standing\.|^You are so unbalanced you cannot manage to stand\.|^You are overburdened and cannot manage to stand\.|^The weight of all your possessions prevents you from standing\."
- pause .1
- goto Stand
- Awaken:
- if $sleepState = 0 then return
- gosub Put1 "awaken" "^You awaken from your reverie|^But you are not sleeping"
- return
- CheckToAwaken:
- if "$sleeping" = "TRUE" then gosub Awaken
- return
- Sleep:
- if $sleepState = 1 then return
- gosub Put1 "sleep" "^You relax and allow your mind to enter a state of rest\.|^You are already resting your mind\!"
- return
- CheckToSleep:
- if "$sleeping" = "FALSE" then gosub Sleep
- return
- Exp:
- return
- gosub Put1 "exp" "^EXP HELP"
- return
- Stowleft:
- if $lefthand = Empty then return
- gosub Put1 "stow $0" "^Stow what\?|^You put your .+ in your|^But that is already in your inventory\."
- return
- Stowright:
- if $righthand = Empty then return
- gosub Put1 "stow $0" "^Stow what\?|^You put your .+ in your|^But that is already in your inventory\."
- return
- Wear:
- gosub Put1 "wear $0" "^You slip some|^You sling|^You attach|^You put.+on|^You strap|^You work your way into|^You slide your left arm through|^You hang|^You drape|^You put .+ around|^You slide|^You are already wearing that\.|^Wear what\?|^You can't wear any more items like that\."
- return
- Remove:
- gosub Put1 "remove my $0" "^You pull off|^You remove|^You loosen the straps securing|^You take.+off|^You slide|^You sling|^You work your way out of|^You aren't wearing that\.|^Remove what\?|^What were you referring to\?"
- return
- StopHumming:
- if %humming = 0 then return
- gosub Put1 "stop hum" "^You stop playing your song\.|^In the name of love\?"
- return
- StartHumming:
- if $Vocals.LearningRate > 9 then return
- if %humming = 1 then return
- gosub Put1 "hum %song %songStyle" "^You begin to hum|^You fumble slightly as you begin to hum|^You struggle to begin to hum|^You continue to hum|^You are already performing something\."
- return
- RunScript:
- put .$0
- waitforre ^$1 done@
- return
- ConvertToOrdinal:
- var ordinalVarName $1
- var ordinalVarValue $2
- echo $1 $2
- if %ordinalVarValue = 1 then
- {
- var %ordinalVarName first
- return
- }
- if %ordinalVarValue = 2 then
- {
- var %ordinalVarName second
- return
- }
- if %ordinalVarValue = 3 then
- {
- var %ordinalVarName third
- return
- }
- if %ordinalVarValue = 4 then
- {
- var %ordinalVarName fourth
- return
- }
- if %ordinalVarValue = 5 then
- {
- var %ordinalVarName fifth
- return
- }
- if %ordinalVarValue = 6 then
- {
- var %ordinalVarName sixth
- return
- }
- if %ordinalVarValue = 7 then
- {
- var %ordinalVarName seventh
- return
- }
- if %ordinalVarValue = 8 then
- {
- var %ordinal.var.name eighth
- return
- }
- if %ordinalVarValue = 9 then
- {
- var %ordinalVarName ninth
- return
- }
- if %ordinalVarValue = 10 then
- {
- var %ordinalVarName tenth
- return
- }
- var %ordinalVarName eleventh
- return
- Unhide:
- gosub Put1 "unhide" "^"
- return
- Search:
- gosub Put1 "search $0" "^You search|^It's already been picked clean|^It's not dead yet\!|^I could not find what you were referring to\."
- return
- CheckMindstate:
- gosub Put1 "mind" "^Overall"
- return
- Retreat:
- if %needToRetreat = 0 then return
- if "$standing" = "0" then gosub stand
- put retreat
- waitforre ^You retreat|^You try to|^\.\.\.wait|^You stop advancing|^You are already|^You sneak back out|You can't do that while entangled
- goto Retreat
- hyhoffense:
- variable hyh offense
- send rel
- pause .5
- put prep hyh 10
- pause 12
- castoffense:
- variable hyh offense
- if $preparedspell = None then goto hyhoffense
- put cast male offense
- gosub roundtime
- if $preparedspell != None then goto castoffense
- return
- hyhdefense:
- variable hyh defense
- send rel
- pause .5
- put prep hyh 10
- pause 12
- castdefense:
- if $preparedspell = None then goto hyhdefense
- put cast male defense
- gosub roundtime
- if $preparedspell != None then goto castdefense
- return
- stanceshield:
- send stance shield
- gosub roundtime
- return
- stanceparry:
- send stance parry
- gosub roundtime
- return
- stanceevasion:
- send stance evasion
- gosub roundtime
- return
- buffcheck:
- var Sol 0
- var Bene 0
- var Mpp 0
- var Mapp 0
- var Cen 0
- pause .5
- put perc self
- gosub roundtime
- pause .5
- buffcheck2:
- if %Sol = 0 then gosub buffsol
- if %Bene = 0 then gosub buffbene
- if %Mapp = 0 then {
- gosub buffmapp
- gosub buffmpp
- gosub buffcen
- }
- if %Mpp = 0 then gosub buffmpp
- if %Cen = 0 then gosub buffCen
- if %hyhset = 0 then gosub hyh%hyh
- return
- buffsol:
- gosub roundtime
- send rel
- gosub roundtime
- put prep sol
- pause
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke my fem
- gosub roundtime
- pause 5
- put touch orb
- gosub roundtime
- return
- buffbene:
- gosub roundtime
- send rel
- gosub roundtime
- send prep bene
- pause
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke my fem
- gosub roundtime
- pause 10
- send touch my orb
- gosub roundtime
- return
- buffmapp:
- gosub roundtime
- send rel
- gosub roundtime
- send rel symb
- send prep mapp
- pause
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke my fem
- gosub roundtime
- pause 3
- send cast
- gosub roundtime
- if %Mapp = 0 then goto buffmapp
- return
- buffmpp:
- gosub roundtime
- send rel
- gosub roundtime
- send rel symb
- send prep mpp 10
- pause
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke my fem
- gosub roundtime
- send harness 5
- gosub roundtime
- send cast
- gosub roundtime
- return
- buffcen:
- gosub roundtime
- send rel
- gosub roundtime
- send prep cen
- pause
- pause
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send charge my fem 5
- gosub roundtime
- send invoke my fem
- gosub roundtime
- send cast
- gosub roundtime
- return
- UnloadLX:
- gosub put1 "unload" "^But your|^You unload|^Round|^You don't have|^You can't unload"
- if $lefthand != "cambrinth armband" then gosub stowleft left
- gosub stowright right
- return
- wearbundle:
- pause
- send pull my bund
- pause
- send wear my bund
- pause
- if $lefthand != Empty || $righthand != Empty then {
- evalmath bundlecount %bundlecount + 1
- if %bundlecount >= 5 then {
- send #echo Something went wrong with bundling, exiting
- send exit
- }
- goto wearbundle
- }
- return
- killyoung:
- send rel spell
- pause
- send ret;ret
- pause
- send face young gryphon
- pause .5
- killyoung2:
- send prep ff 10
- pause .5
- send targ
- pause 8
- send har 5
- pause
- pause
- send har 5
- pause
- pause
- send cast
- pause
- pause
- if matchre("$roomobjs","\(dead\)|which appears dead" then {
- gosub loot
- return
- }
- goto killyoung2
- stow:
- variable stowweapon $1
- stow.weapon2:
- match stow.weapon2 Sorry, you may only type ahead 1 command.
- match stow.weapon2 wait
- matchre unload ^You need to unload the
- matchre unload ^You should unload
- match return Stow what?
- match return You put your
- send stow %stowweapon
- matchwait 2
- goto stow.weapon2
- unload:
- match unload wait
- match unload Sorry, you may only type ahead 1 command.
- match stow.all You unload
- match stow.all You don't have a ranged
- match stow.right But your
- send unload $righthandnoun
- matchwait 2
- goto unload
- stow.right:
- match stow.right wait
- match stow.right Sorry, you may only type ahead 1 command.
- match return You put your
- match reutrn Stow what?
- send stow right
- matchwait 2
- goto stow.right
- stow.all:
- stow.left:
- match stow.left wait
- match stow.left Sorry, you may only type ahead 1 command.
- match stow.right Stow what?
- match stow.right You put your
- send stow left
- matchwait 2
- goto stow.left
- get:
- var get $1
- get1:
- matchre get1 ^Sorry|wait
- matchre return ^.*you get a.*$
- matchre return ^You get
- matchre return ^You pull
- matchre return ^You pick up
- matchre return ^You stop as you realize
- matchre return ^What were you referring to\?
- matchre return ^You are already holding that\.
- matchre stow.all ^You need a free hand to pick that up\.
- matchre return ^But that is already in your inventory\.
- matchre return ^You fade in for a moment as you pick up
- matchre return ^You are not strong enough to pick that up\!
- put get %get
- matchwait 2
- goto get1
- BaseEnd:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement