YASSE Boxes (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
m (updated to 2.0)
Line 5: Line 5:
}}
}}


==Description==
Based on Marmic's disarm script and adapted with his permission.
Disarms and picks boxes. Values determined by [[YASSE Global Variables (script)]]. Based on Marmic's disarm script and adapted with his permission.
Version 1.1.


==Syntax==
Note: This will dump anything in boxes other than coins and gems.
Run as .scriptname. Relies upon the [[YASSE Armor (script)]] to remove armor.


==Updates==
Last Updated:
*'''04/12/2011''': Revision 2.0


===Notes===
<pre>
This script currently dumps anything in boxes other than coins or gems.
Echo Based on Marmic's disarm script
Echo Additional usage for YASSE provided by Kraggur
pause 1
echo For armor removing functionality use the armor script.
pause 2


==Script==


<pre>
Set predefined on
boxmessage Based on Marmic's disarm script. \nAdditional usage for YASSE provided by Kraggur. \nFor armor removing functionality use Kraggur's armor script.


set predefined on
setvariable boxcont backpack

setvariable dismantle focus
#Local Variables
setvariable lockpickcont backpack
setvariable gem [purple pouch]
setvariable gem2 [purple pouch]
setvariable dismantlewords You close your eyes
setvariable disarmdifficulty careful
setvariable disarmdifficulty careful
setvariable pickdifficulty careful
setvariable pickdifficulty careful


match armoroff You aren't wearing
put inv armor
matchwait 05


callwith armor off
callwith armor off


armoroff:
lockpickring:
goto lockpickstorage
match lockworn Your lockpick ring is worn on your body.

match getlock %lockpickcont
lockpickstorage:
match lockworn Your $lockpick$ is worn on your body.
match getlock2 You can't seem to find anything that looks like that.
match getlock2 You can't seem to find anything that looks like that.
put inv search lockpick
put inv search $lockpick$
matchwait
matchwait 10 goto getlock


getlock:
getlock:
pause
pause
put get lockpick ring from my %lockpickcont
put get $lockpick$ from my $lockpickcontainer$
pause
pause


getlockwear:
getlockwear:
match getlockpause You can't wear any more items like that.
match getlockpause You can't wear any more items like that.
match lockworn You attach a lockpick ring to your belt.
match lockworn to your belt.
put wear my lockpick ring
put wear my $lockpick$
matchwait
matchwait


getlock2:
getlock2:
echo Ending script, no lockpick ring.
boxmessage Ending script, no lockpick ring.
goto end2
goto end2


getlockpause:
getlockpause:
echo Can't wear a lockpick ring, you're wearing too many belt items.
boxmessage Can't wear a $lockpick$, you're wearing too many belt items. \nWhich item would you like to remove?
echo Which item would you like to remove?
put inv belt
put inv belt
getline
getline
pause 2
pause
put rem my %l
put rem my %l
pause 2
pause
put stow my %l
put stow my %l
goto getlockwear
goto getlockwear


lockworn:
lockworn:
echo Lockpick ring located.




getbox:
getbox:
Line 74: Line 76:
match setbox and see an
match setbox and see an
match nobox nothing in there like that
match nobox nothing in there like that
put rummage /b %boxcont
put rummage /b $mainpack$
matchwait
matchwait


Line 86: Line 88:
match trap_ident You are already holding that.
match trap_ident You are already holding that.
match nobox nothing in there like that
match nobox nothing in there like that
put get my %box
put get my $box$
matchwait
matchwait


Line 114: Line 116:
match lock_ident Roundtime: 3 sec.
match lock_ident Roundtime: 3 sec.
match trap_disarm Somebody has already located
match trap_disarm Somebody has already located
put disarm my %box iden
put disarm my $box$ iden
matchwait
matchwait


Line 151: Line 153:
#****************************************************
#****************************************************


put disarm my %box %disarmdifficulty
put disarm my $box$ $disarmdifficulty$
matchwait
matchwait


Line 178: Line 180:
match notdisarmed Roundtime: 14 sec.
match notdisarmed Roundtime: 14 sec.
match notdisarmed Roundtime: 15 sec.
match notdisarmed Roundtime: 15 sec.
put disarm my %box iden
put disarm my $box$ iden
matchwait
matchwait


Line 193: Line 195:
no_lockpick:
no_lockpick:
pause 1
pause 1
echo Unable to locate your lockpick ring, aborting script
echo Unable to locate your $lockpick$, aborting script
goto end2
goto end2


Line 221: Line 223:
match no_lockpick Find a more appropriate tool and try again!
match no_lockpick Find a more appropriate tool and try again!
match lock_pick Somebody has already inspected
match lock_pick Somebody has already inspected
put pick my %box iden
put pick my $box$ iden
matchwait
matchwait


Line 239: Line 241:
match lock_pick_s With a soft click,
match lock_pick_s With a soft click,
match lock_pick_f You are unable to make any progress
match lock_pick_f You are unable to make any progress
put pick my %box %pickdifficulty
put pick my $box$ $pickdifficulty$
matchwait
matchwait


Line 256: Line 258:
match open You open the
match open You open the
match lock_ident It is locked.
match lock_ident It is locked.
put open my %box
put open my $box$
matchwait
matchwait


Line 264: Line 266:
match fill looking for gems and see
match fill looking for gems and see
match coins nothing in there like that
match coins nothing in there like that
put rummage /g my %box
put rummage /g my $box$
matchwait
matchwait


Line 276: Line 278:
match getcoins and see some
match getcoins and see some
match getcoins and see a
match getcoins and see a
put rummage /c coin my %box
put rummage /c coin my $box$
matchwait
matchwait


Line 283: Line 285:
match getcoins You pick up
match getcoins You pick up
match coins What were you referring to?
match coins What were you referring to?
put get coin from my %box
put get coin from my $box$
goto coins
goto coins


getcoins2:
getcoins2:
pause
pause
put get coin from my %box
put get coin from my $box$
goto getcoins
goto getcoins


Line 299: Line 301:
match fill_full You'll need to tie it up before
match fill_full You'll need to tie it up before
match fill_s There aren't any gems
match fill_s There aren't any gems
put fill my %gem with my %box
put fill my $gemcontainer$ with my $box$
matchwait
matchwait


fill_full:
fill_full:
gosub tiepouch
put rem my %gem
pause
waitfor You remove
put fill my $gemtied$ with my $gemcontainer$
put tie my %gem
boxmessage Waiting to fill $gemtied$ with $gemcontainer$
waitfor You tie
put stow my pouch
waitfor pouch
gosub tiepouch2
waitfor You put
pause
match fill_full_new You get
goto open
match end What were you referring to?
put get %gem2 from my boot
matchwait


tiepouch:
fill_full_new:
pause 1
pause
put stow my $box$
pause 1
put get my $gemtied$ from my $gemtiedcontainer$
put open my %gem2
waitfor pouch
put wear my %gem2
return
waitfor You attach

goto fill
tiepouch2:
put put my $gemtied$ in my $gemtiedcontainer$
waitfor you put
put get my $box$
return


fill_s:
fill_s:
goto coins
goto coins



dismantleit:
dismantleit:
Line 330: Line 334:
match doubledismantle 15 seconds
match doubledismantle 15 seconds
match end Roundtime:
match end Roundtime:
put disman my %box %dismantle
put disman my $box$ $dismantle$
matchwait
matchwait


Line 336: Line 340:
boxmessage *** DUMPING BOX ***
boxmessage *** DUMPING BOX ***
pause
pause
put disman my %box %dismantle
put dismantle my $box$ $dismantle$
echo Extra items inside, dumping them.
echo Extra items inside, dumping them.
goto end
goto end
Line 346: Line 350:


out:
out:
boxmessage OUT OF LOCKPICKS
echo ***************************************
echo ********** OUT OF LOCKPICKS! **********
echo ***************************************
goto end2
goto end2


nobox:
nobox:
echo No boxes in your %boxcont.
boxmessage No boxes in your $mainpack$.
goto end2
goto end2


end:
end:
pause 1
pause 1
pause 1
goto getbox
goto getbox
Line 363: Line 364:
end2:
end2:
pause
pause
put rem my lock ring
put rem my $lockpick
pause
pause
put put my lock ring in my %lockpickcont
put put my $lockpick$ in my $ockpickcontainer$
pause
pause
callwith armor on
callwith armor on

</pre>
</pre>

Revision as of 13:53, 12 April 2011

YASSE Boxes (script)
Category utility
Front-end YASSE
Author Hithrael and Marmic


Description

Disarms and picks boxes. Values determined by YASSE Global Variables (script). Based on Marmic's disarm script and adapted with his permission.

Syntax

Run as .scriptname. Relies upon the YASSE Armor (script) to remove armor.

Updates

Last Updated:

  • 04/12/2011: Revision 2.0

Notes

This script currently dumps anything in boxes other than coins or gems.

Script

boxmessage Based on Marmic's disarm script. \nAdditional usage for YASSE provided by Kraggur. \nFor armor removing functionality use Kraggur's armor script.

set predefined on

#Local Variables
setvariable disarmdifficulty careful
setvariable pickdifficulty careful


match armoroff You aren't wearing
put inv armor
matchwait 05

callwith armor off

armoroff:
goto lockpickstorage

lockpickstorage:
match lockworn Your $lockpick$ is worn on your body.
match getlock2 You can't seem to find anything that looks like that.
put inv search $lockpick$
matchwait 10 goto getlock

getlock:
pause
put get $lockpick$ from my $lockpickcontainer$
pause

getlockwear:
match getlockpause You can't wear any more items like that.
match lockworn to your belt.
put wear my $lockpick$
matchwait

getlock2:
boxmessage Ending script, no lockpick ring.
goto end2

getlockpause:
boxmessage Can't wear a $lockpick$, you're wearing too many belt items. \nWhich item would you like to remove?
put inv belt
getline
pause
put rem my %l
pause
put stow my %l
goto getlockwear

lockworn:

getbox:
match setbox and see a
match setbox and see an
match nobox nothing in there like that
put rummage /b $mainpack$
matchwait

setbox:
getwordfrom "." -1
setvariable box %w

getbox:
pause
match trap_ident You get
match trap_ident You are already holding that.
match nobox nothing in there like that
put get my $box$
matchwait


trap_ident:
pause 1
match trap_ident_f fails to reveal to you what type of trap protects it.
match trap_ident_s You think this trap is precisely at your skill level.
match trap_ident_s good shot at disarming
match trap_ident_s You have some chance of being
match trap_ident_s The odds are against you,
match trap_ident_s with only minor troubles.
match trap_ident_s long with your skills.
match trap_ident_s You have an amazingly minimal
match trap_ident_s Prayer would be a good start
match trap_ident_s simple matter for you to disarm.
match trap_ident_s which you can take down any time.
match trap_ident_s would be a longshot.
match trap_ident_s An aged grandmother could open this in her sleep.
match trap_ident_s you could do it blindfolded!
match trap_ident_s An aged grandmother could

#****************************************************
#******** add additional success lines above ********
#****************************************************

match lock_ident Roundtime: 3 sec.
match trap_disarm Somebody has already located
put disarm my $box$ iden
matchwait

trap_ident_s:
pause 1
pause 1
goto trap_disarm

trap_ident_f:
pause 1
pause 1
goto trap_ident

trap_disarm:
pause 1
match trap_disarm_f unable to make any progress.
match trap_disarm_s After wiggling the milky-white tube
match trap_disarm_s Working slowly, you carefully
match trap_disarm_s Carefully, you pry the bronze face away
match trap_disarm_s Careful not to jostle
match trap_disarm_s With the precision and grace 
match trap_disarm_s With sweat forming on your brow,
match trap_disarm_s You cautiously pry
match trap_disarm_s With precise control,
match trap_disarm_s With a smirk you wedge
match trap_disarm_s stopping it up and disarming the trap.
match trap_disarm_s You manage to work the contact fibers away
match trap_disarm_s Working with extreme care,
match trap_disarm_s Following a few moments of effort,
match trap_disarm_s bend it away from any
match trap_disarm_s After carefully pushing at the sharp blade
match trap_disarm_s able to pry the crusty scarab off

#****************************************************
#******** add additional success lines above ********
#****************************************************

put disarm my $box$ $disarmdifficulty$
matchwait

trap_disarm_s:
pause 1
pause 1
goto trap_morecheck

trap_disarm_f:
pause 1
pause 1
goto trap_disarm

trap_morecheck:
match disarmed Roundtime: 3 sec.
match notdisarmed Roundtime: 4 sec.
match notdisarmed Roundtime: 5 sec.
match notdisarmed Roundtime: 6 sec.
match notdisarmed Roundtime: 7 sec.
match notdisarmed Roundtime: 8 sec.
match notdisarmed Roundtime: 9 sec.
match notdisarmed Roundtime: 10 sec.
match notdisarmed Roundtime: 11 sec.
match notdisarmed Roundtime: 12 sec.
match notdisarmed Roundtime: 13 sec.
match notdisarmed Roundtime: 14 sec.
match notdisarmed Roundtime: 15 sec.
put disarm my $box$ iden
matchwait

disarmed:
pause 1
pause 1
goto lock_ident

notdisarmed:
pause 1
pause 1
goto trap_ident

no_lockpick:
pause 1
echo Unable to locate your $lockpick$, aborting script
goto end2

lock_ident:
pause 1
match notdisarmed making any chance of picking it unlikely.
match lock_ident_f fails to teach you anything about the lock guarding it.
match lock_ident_s You have some chance
match lock_ident_s The lock has the edge on you,
match lock_ident_s The odds are against you,
match lock_ident_s You think this lock is precisely at your skill level.
match lock_ident_s with only minor troubles.
match lock_ident_s should not take long with your skills.
match lock_ident_s You really don't have any chance
match lock_ident_s You have an amazingly minimal
match lock_ident_s The lock is a trivially constructed
match lock_ident_s simple matter for you to unlock.
match lock_ident_s Prayer would be a good start
match lock_ident_s would be a longshot.
match lock_ident_s This lock is a laughable matter,
match lock_ident_s An aged grandmother could

#****************************************************
#******** add additional success lines above ********
#****************************************************

match no_lockpick Find a more appropriate tool and try again!
match lock_pick Somebody has already inspected
put pick my $box$ iden
matchwait

lock_ident_s:
pause 1
pause 1
goto lock_pick

lock_ident_f:
pause 1
pause 1
goto lock_ident

lock_pick:
pause 1
match get_lockpick Find a more appropriate tool and try again!
match lock_pick_s With a soft click,
match lock_pick_f You are unable to make any progress
put pick my $box$ $pickdifficulty$
matchwait

lock_pick_s:
pause 1
pause 1
goto lock_morecheck

lock_pick_f:
pause 1
pause 1
goto lock_pick

lock_morecheck:
pause 1
match open You open the 
match lock_ident It is locked.
put open my $box$
matchwait

open:
gemcheck:
pause
match fill looking for gems and see
match coins nothing in there like that
put rummage /g my $box$
matchwait

coins:
pause
match dismantleit nothing in there like that
match getcoins2 coin, some
match getcoins2 coins, some
match getcoins2 coin, a
match getcoins2 coins, a
match getcoins and see some
match getcoins and see a
put rummage /c coin my $box$
matchwait

getcoins:
pause
match getcoins You pick up
match coins What were you referring to? 
put get coin from my $box$
goto coins

getcoins2:
pause
put get coin from my $box$
goto getcoins


fill:
match fill_s You take
match fill_s You fill
match fill_s You open your
match fill_full You can't fit anything else
match fill_full You'll need to tie it up before
match fill_s There aren't any gems
put fill my $gemcontainer$ with my $box$
matchwait

fill_full:
gosub tiepouch
pause
put fill my $gemtied$ with my $gemcontainer$
boxmessage Waiting to fill $gemtied$ with $gemcontainer$
waitfor pouch
gosub tiepouch2
pause
goto open

tiepouch:
pause
put stow my $box$
put get my $gemtied$ from my $gemtiedcontainer$
waitfor pouch
return

tiepouch2:
put put my $gemtied$ in my $gemtiedcontainer$
waitfor you put
put get my $box$
return

fill_s:
goto coins

dismantleit:
pause 1
match doubledismantle 15 seconds
match end Roundtime:
put disman my $box$ $dismantle$
matchwait

doubledismantle:
boxmessage *** DUMPING BOX ***
pause
put dismantle my $box$ $dismantle$
echo Extra items inside, dumping them.
goto end

notdisarmed:
pause 1
pause 1
goto trap_ident

out:
boxmessage OUT OF LOCKPICKS
goto end2

nobox:
boxmessage No boxes in your $mainpack$.
goto end2

end:
pause 1
goto getbox


end2:
pause
put rem my $lockpick
pause
put put my $lockpick$ in my $ockpickcontainer$
pause
callwith armor on