Wrayth-box-picking-script

From Elanthipedia
Revision as of 16:24, 7 October 2025 by AUBREYJG (talk | contribs) (Created page with "{{Script |cat=Utility |fe=Wrayth |auth=Elore }} Read the notes, set the variables, it should handle the rest. As always, these are just meant to save yourself some typing, always monitor to make sure nothing gets hung up. <pre> ##To run, do ".pick <container> <trash>" ##For example, ".pick lootsack bin" ##This script assumes you are near a trash receptacle (bin, statue, etc.) that you can dump stuff INTO ##For example, a bucket or a bin. It won't work...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Wrayth-box-picking-script
Category Utility
Front-end Wrayth
Author Elore


Read the notes, set the variables, it should handle the rest. As always, these are just meant to save yourself some typing, always monitor to make sure nothing gets hung up.

##To run, do ".pick <container> <trash>"
##For example, ".pick lootsack bin"

##This script assumes you are near a trash receptacle (bin, statue, etc.) that you can dump stuff INTO 
##For example, a bucket or a bin. It won't work with a gelapod that you hand stuff TO
##If you are not near a receptable the script will hang when trying to dump the box out.
##This script assumes you're wearing a lockpick.
##Toggle on AUTOBOX and it'll automatically pull coins from boxes when you open them.

#----------BEGINNING OF THINGS TO EDIT

    #These will let the script know whether you want to KEEP or TRASH nuggets and bars, collectable cards and collectable dira
    #These need to be set as EXACTLY 'trash' or 'keep'.

SETVARIABLE keepnugs keep
SETVARIABLE keepcard keep
SETVARIABLE keepdira keep

    #Please edit this to show the adjective of your gem pouch, so that we know where to dump gems
    #The "dangerous box container" is where you'd like to put boxes that are a difficulty of 10 and up.

SETVARIABLE gempouchadjective black
SETVARIABLE dangerous_box_container backpack

#----------END OF THINGS TO EDIT

COUNTER SET 0

glance:
    MATCH start You glance down at your empty hands.
    MATCHre caddy /caddy./
    MATCHre casket /casket./
    MATCHre chest /chest./
    MATCHre coffer /coffer./
    MATCHre crate /crate./
    MATCHre strongbox /strongbox./
    MATCHre skippet /skippet./
    MATCHre trunk /trunk./
    MATCHre (?<!strong)box /(?<!strong)box./
    MATCH end There is nothing in there.
        put glance
        MATCHWAIT

        coffer:
        setvariable B coffer
        GOTO get_box
        crate:
        setvariable B crate
        GOTO get_box
        chest:
        setvariable B chest
        GOTO get_box
        strongbox:
        setvariable B strongbox
        GOTO get_box
        box:
        setvariable B box
        GOTO get_box
        skippet:
        setvariable B skippet
        GOTO get_box
        casket:
        setvariable B casket
        GOTO get_box
        trunk:
        setvariable B trunk
        GOTO get_box
        caddy:
        setvariable B caddy
        GOTO get_box

start:
    MATCHre caddy /caddy./
    MATCHre casket /casket./
    MATCHre chest /chest./
    MATCHre coffer /coffer./
    MATCHre crate /crate./
    MATCHre strongbox /strongbox./
    MATCHre skippet /skippet./
    MATCHre trunk /trunk./
    MATCHre box /(?<!strong)box./
    MATCH end There is nothing in there.
        put look in %1
        MATCHWAIT

        coffer:
        setvariable B coffer
        GOTO get_box
        crate:
        setvariable B crate
        GOTO get_box
        chest:
        setvariable B chest
        GOTO get_box
        strongbox:
        setvariable B strongbox
        GOTO get_box
        box:
        setvariable B box
        GOTO get_box
        skippet:
        setvariable B skippet
        GOTO get_box
        casket:
        setvariable B casket
        GOTO get_box
        trunk:
        setvariable B trunk
        GOTO get_box
        caddy:
        setvariable B caddy
        GOTO get_box

get_box:
    COUNTER ADD 1
    ECHO ******************
    ECHO ** Box Count: %c
    ECHO ******************
        put get %B from in %1
        goto disarm_identify

disarm_identify:
#    MATCH dangerous Squinting slightly to see better, you notice the crate's keyhole is packed tightly with a powder around the insides of the lock.
    MATCH end What were you referring to?
    MATCHRE disarmquick /\((1|2)\/17\)/
    MATCHRE disarm /\((3|4|5|6)\/17\)/
    MATCHRE disarmcareful /\((7|8|9|10)\/17\)/
    MATCHRE dangerous /\((11|12|13|14|15|16|17)\/17\)/
    MATCH disarm_identify ...wait 
    MATCH disarm_identify fails to reveal to you what type of trap protects it.
    MATCH disarm Somebody has already located and identified the current trap on the
    MATCH pick_identify You guess it is already disarmed.
    MATCH pick_identify rendering the trap harmless.
    MATCH pick_identify A thin metal circle of bright crimson has been peeled away from the hinges
    MATCH pick_identify It appears, however, that the dart has been moved too far out of position for the mechanism to function properly.
    MATCH pick_identify An incredibly sharp blade rests off to the side
    MATCH pick_identify indicating the trap is no longer a danger.
    MATCH pick_identify The seal has been pried away from the lid.
    MATCH pick_identify It is no longer attached to a razor-sharp scythe blade within the gap.
    MATCH pick_identify There is a stain near a small notch on the front of the 
    MATCH pick_identify Additionally, a tiny metal lever has been bent away from the casing.
    MATCH pick_identify Someone has unhooked the stopper, rendering it harmless.
    MATCH pick_identify as if something had been poured out the hole.
    MATCH pick_identify You notice a some type of animal bladder and a disconnected string near the lock.
    MATCH pick_identify It seems far enough away from the lock to be harmless.
    MATCH pick_identify It looks like there used to be something in them, but whatever it was has been pried out.
    MATCH pick_identify Still grinning ridiculously is a tiny bronze face, loosened from the wood.  Behind this metallic visage rests a small deflated bladder.
    MATCH pick_identify have been bent in such a way that they no longer will function.
    MATCH pick_identify The leading edge near the lock itself has been pulled away and whatever was inside, removed.
    MATCH pick_identify It seems a small portion of the trap has been removed.
    MATCH pick_identify A bent needle sticks harmlessly out from its hidden compartment near the lock.
    MATCH pick_identify It looks safe enough.
    MATCH pick_identify have been bent away from each other.
    MATCH pick_identify has been peeled away from the hinges
    MATCH pick_identify the remnants of some type of powder.
    MATCH pick_identify indicate that some sort of apparatus, previously attached, was picked apart 
    MATCH pick_identify You deem it quite safe.
    MATCH pick_identify are sealed with dirt, blocking whatever would have come out.
    MATCH pick_identify It seems harmless.
        pause 2
        put disarm identify
        matchwait

    disarm:
        MATCH disarm_identify ...wait
        MATCH youblewit The sand devil spins and whirls, rapidly growing in intensity until it reaches the size of several Humans.  As the stinging winds die down, they leave in their place several very angry vykathi reapers standing right beside you!
        MATCH youblewit You make a small hole in the side of the box and take deep breath to blow the powder free, but a hint of smoke causes you to stare at the keyhole in amazement.  With a sudden "Kaboom!" 
        MATCH youblewit shatters in your face and sends tiny projectiles slamming into you!
        MATCH youblewit a blinding flash explodes around you
        MATCH youblewit An acrid stream of sulfurous air
        MATCH youblewit less than successful
        MATCH youblewit Nothing happened.  Maybe it was a dud.
        MATCH youblewit sharp snap
        MATCH youblewit There is a sudden flash of greenish light
        MATCH youblewit A tiny dart lodges
        MATCH youblewit Almost immediately, you grow dizzy
        MATCH youblewit A black cloud of ash and soot explodes out
        MATCH youblewit emits a sound like tormented souls being freed
        MATCH youblewit until you collapse to the ground as a grotesquely swollen husk with shattered bones.
        MATCH youblewit shatters in your face and sends tiny projectiles slamming into you!
        MATCH youblewit You are stunned!
        MATCH youblewit You are still stunned.
            pause 3
            put disarm
            waitfor roundtime
            goto disarm_identify

    disarmquick:
        MATCH disarm_identify ...wait
        MATCH youblewit a blinding flash explodes around you
        MATCH youblewit An acrid stream of sulfurous air
        MATCH youblewit less than successful
        MATCH youblewit Nothing happened.  Maybe it was a dud.
        MATCH youblewit sharp snap
        MATCH youblewit There is a sudden flash of greenish light
        MATCH youblewit A tiny dart lodges
        MATCH youblewit Almost immediately, you grow dizzy
        MATCH youblewit A black cloud of ash and soot explodes out
        MATCH youblewit emits a sound like tormented souls being freed
        MATCH youblewit You are stunned!
        MATCH youblewit You are still stunned.
            pause 3
            put disarm quick
            waitfor roundtime
            goto disarm_identify

    disarmcareful:
        MATCH disarm_identify ...wait
        MATCH youblewit a blinding flash explodes around you
        MATCH youblewit An acrid stream of sulfurous air
        MATCH youblewit less than successful
        MATCH youblewit Nothing happened.  Maybe it was a dud.
        MATCH youblewit sharp snap
        MATCH youblewit There is a sudden flash of greenish light
        MATCH youblewit A tiny dart lodges
        MATCH youblewit Almost immediately, you grow dizzy
        MATCH youblewit A black cloud of ash and soot explodes out
        MATCH youblewit emits a sound like tormented souls being freed
        MATCH youblewit You are stunned!
        MATCH youblewit You are still stunned.
            pause 3
            put disarm careful
            waitfor roundtime
            goto disarm_identify

            dangerous:
                put my %B in my %dangerous_box_container
                ECHO ****************************
                ECHO Oooh this one's a doozy!
                ECHO Moving it to %dangerous_box_container
                ECHO ****************************
                goto start

pick_identify:
    MATCHRE pick /\((0|1|2|3|4|5|6|7|8|9|10)\/17\)/
    MATCHRE dangerous /\((11|12|13|14|15|16|17)\/17\)/
    MATCH pick_identify ...wait 
    MATCH pick_identify fails to teach you anything about the lock guarding it.
    MATCH pick Somebody has already inspected the current lock 
    MATCH stow you'd better have an empty hand first.
    MATCH open It's not even locked, why bother?
        pause 3
        put pick identify
        matchwait

pick:
    MATCH pick ...wait 
    MATCH pick_identify You discover another lock protecting 
    MATCH pick You are unable to make any progress towards opening the lock.
    MATCH open It's not even locked, why bother?
        pause 3
        put pick
        waitfor roundtime
        goto pick_identify

open:
    MATCH pick_identify It is locked.
        put open my %B
        put fill my %gempouchadjective pouch with my %B
        pause
        goto lootbox

lootbox:
    MATCHre getcoin /(copper|bronze|silver|gold|platinum) coin(s)?/
    MATCH getscroll scroll
    MATCH getparchment parchment
    MATCH getleaf leaf
    MATCH getbark bark
    MATCH getvellum vellum
    MATCH gettablet tablet
    MATCH getroll roll
    MATCH getmap map
    MATCHre checkbar  /(?<!deo)bar./
    MATCHre checknug /nugget./
    MATCH checkcard card
    MATCH checkdira dira
    MATCH dismantle What were you referring to?
    MATCH dismantle There is nothing in there.
    MATCHre check_trash_bin /you see (a|an|some|the)/
    pause
    put look in my %B
    matchwait

    getcoin:
        MATCHre getcoin /(copper|bronze|silver|gold|platinum) coin(s)?/
        put get coin from my %B
        pause
        put get coin from my %B
        pause
        put l in my %B
        goto lootbox

    getmap:
        put get map from my %B
        put stow map
        pause 2
        goto lootbox

    getscroll:
        get scroll from my %B
        put stow scroll
        goto lootbox
    getparchment:
        get parchment from my %B
        put stow parchment
        goto lootbox
    getleaf:
        get leaf from my %B
        put stow leaf
        goto lootbox
    getbark:
        get bark from my %B
        put stow bark
        goto lootbox
    getvellum:
        get vellum from my %B
        put stow vellum
        goto lootbox
    gettablet:
        get tablet from my %B
        put stow tablet
        goto lootbox
    getroll:
        get roll from my %B
        put stow roll
        goto lootbox

    checknug:
    put get nug from my %B
    GOTO nug%keepnugs
        nugkeep:
            put stow nugget
            pause 2
            goto lootbox
        nugtrash:
            put put nugget in %2
            pause 2
            goto lootbox

    checkbar:
    put get bar from my %B
    GOTO bar%keepnugs
        barkeep:
            put stow bar
            pause 2
            goto lootbox
        bartrash:
            put put bar in %2
            pause 2
            goto lootbox

    checkcard:
    put get card from my %B
    GOTO card%keepcard
        cardkeep:
            put stow card
            pause 2
            goto lootbox
        cardtrash:
            put put card in %2
            pause 2
            goto lootbox

    checkdira:
    put get dira from my %B
    GOTO dira%keepdira
        dirakeep:
            put stow dira
            pause 2
            goto lootbox
        diratrash:
            put put dira in %2
            pause 2
            goto lootbox
                
stow:
    put stow left
    goto pick_identify

check_trash_bin:
    MATCH trash_bin_found You see
    MATCH trash_bin_not_found I could not find what you were referring to.
    put look %2
    matchwait
        
    trash_bin_found:
        MATCH trash_bin_found You must CONFIRM this command by resubmitting it
        MATCH dismantle You dump
        MATCH check_trash_bin into what?
        put stand
        put dump my %B in %2
        matchwait

    trash_bin_not_found:
        ECHO ************************
        ECHO I don't see a trash can.
        ECHO Dispose of the things inside the box
        ECHO then type "1" to continue to dismantling it
        ECHO ************************
        MATCH dismantle 1
        goto dismantle

dismantle:
    put sit
    put dismantle my %B
    pause 2
    Echo Good work! Onto the next
    goto start


youblewit:
ECHO ****************************
ECHO Well, that went poorly!
ECHO Seek medical attention if you need it!
ECHO ****************************
exit

end:
put stand 
ECHO ************************
ECHO All done!
ECHO DON'T FORGET YOUR ARMOR!
ECHO ************************