PDA

View Full Version : Functional Digging Script



Inspire
04-16-2011, 01:49 PM
# You must have a backpack!


goto "START"

Start:
match "Dig", "You remove"
match "Restock", "Get what?"
fput "get shovel from back"
matchwait

Restock:
start_script 'go2', [ 'bank' ]
waitfor "First Elanith Bank, Teller"
fput "withdraw 20000 silver"
kill_script 'go2'
start_script 'go2', [ '19133' ]
waitfor "Treasure Hunt, Seaside"
goto "FINDSHOVELS"

FINDSHOVELS:
match "BUYSHOVELS", "grey-haired"
match "NE", "Obvious exits"
fput "look"
matchwait

NE:
fput "ne"
goto "FINDSHOVELS2"

FINDSHOVELS2:
match "BUYSHOVELS", "grey-haired"
match "W", "Obvious exits"
fput "look"
matchwait

W:
fput "w"
goto "FINDSHOVELS3"

FINDSHOVELS3:
match "BUYSHOVELS", "grey-haired"
match "W2", "Obvious exits"
fput "look"
matchwait

W2:
fput "w"
goto "FINDSHOVELS4"

FINDSHOVELS4:
match "BUYSHOVELS", "grey-haired"
match "NE2", "Obvious exits"
fput "look"
matchwait

NE2:
fput "ne"
goto "FINDSHOVELS5"

FINDSHOVELS5:
match "BUYSHOVELS", "grey-haired"
match "S2", "Obvious exits"
fput "look"
matchwait

S2:
fput "south", "south"
goto "FINDSHOVELS"

BUYSHOVELS:
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
multifput "give halfling 2000", "stow right"
goto "START"


Dig:
waitrt?
match "dig", "...wait"
match "dig", "Roundtime:"
match "cask", "cask from the sand. Brushing"
match "crate", "crate from the sand. Brushing"
match "chest", "chest from the sand. Brushing"
match "coffer", "coffer from the sand. Brushing"
match "trunk", "trunk from the sand. Brushing"
match "strongbox", "strongbox from the sand. Brushing"
match "box", "box from the sand. Brushing"
match "Start", "You reach down to see what destroyed your shovel but find only a clump of sand!"
match "Start", "You reach down to see what destroyed your shovel but find only a rock!"
match "Start", "You reach down to see what destroyed your shovel but find only a shard of metal!"
fput "dig sand"
matchwait

Box:
fput "open my box"
fput "get coins"
waitrt?
match "box", "...wait"
fput "empty box in my backpack"
pause
waitrt?
match "box", "...wait"
match "Start", "box into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my box in chute"
matchwait

cask:
fput "open my cask"
fput "get coins"
waitrt?
match "cask", "...wait"
fput "empty cask in my backpack"
pause
waitrt?
match "cask", "...wait"
match "Start", "cask into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my cask in chute"
matchwait

crate:
fput "open my crate"
fput "get coins"
waitrt?
match "crate", "...wait"
fput "empty crate in my backpack"
pause
waitrt?
match "crate", "...wait"
match "Start", "crate into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my crate in chute"
matchwait

chest:
fput "open my chest"
fput "get coins"
waitrt?
match "chest", "...wait"
fput "empty chest in my backpack"
pause
waitrt?
match "chest", "...wait"
match "Start", "chest into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my chest in chute"
matchwait

coffer:
fput "open my coffer"
fput "get coins"
waitrt?
match "coffer", "...wait"
fput "empty coffer in my backpack"
pause
waitrt?
match "coffer", "...wait"
match "Start", "coffer into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my coffer in chute"
matchwait

trunk:
fput "open my trunk"
fput "get coins"
waitrt?
match "trunk", "...wait"
fput "empty trunk in my backpack"
pause
waitrt?
match "trunk", "...wait"
match "Start", "trunk into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my trunk in chute"
matchwait

strongbox:
fput "open my strongbox"
fput "get coins"
waitrt?
match "strongbox", "...wait"
fput "empty strongbox in my backpack"
pause
waitrt?
match "strongbox", "...wait"
match "Start", "strongbox into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my strongbox in chute"
matchwait

box:
fput "open my box"
fput "get coins"
waitrt?
match "box", "...wait"
fput "empty box in my backpack"
pause
waitrt?
match "box", "...wait"
match "Start", "box into a wall-mounted trash chute you feel pleased with yourself at having cleaned up the surrounding area."
fput "put my box in chute"
matchwait