PDA

View Full Version : Treasure Hunt Script



Bobmuhthol
02-07-2004, 03:58 PM
I wrote this quickly, it works, but you need to buy your own shovels when you're out. Also have a container set for STOW. Start it with a shovel in your right hand.

Start:
match Noshov Maybe you should try digging in the sand with a shovel, or try switching hands.
match Damn You begin
match Damn You continue
match w00t treasure
put dig sand
matchwait

Damn:
goto Start

w00t:
match shit You glance down at your empty hands.
match cask cask in your right hand
match coffer coffer in your right hand
match slat slat-crate in your right hand
match trunk trunk in your right hand
match box box in your right hand
match chest chest in your right hand
put glance
matchwait

trunk:
save trunk
goto awesome

chest:
save chest
goto awesome

shit:
put get shovel
goto Start

cask:
save cask
goto awesome

coffer:
save coffer
goto awesome

slat:
save slat-crate
goto awesome

box:
save box
goto awesome

awesome:
put open my %s
waitfor You open
put get pin from my %s
waitfor You
put stow pin
waitfor You
goto check

check:
match no There is nothing in there.
match yes you see
put look in my %s
matchwait

no:
put put %s in chute
wait
put get shovel
wait
goto Start

yes:
put stow my %s
wait
put get shovel
wait
goto Start

Noshov:
echo SHIT YOU ARE OUT OF SHOVELS GO GET MORE
echo Type PUNCH when you have shovels and one is in your right hand.
waitfor Punch what?
goto Start

[Edited on 2-7-2004 by Bobmuhthol]