PDA

View Full Version : need help the a treasure part in my zombie script



Hilts
09-26-2010, 06:09 PM
ok so when im running the script and it finds a strongbox it tries goes retarded and tries to pick up a box instead, ive looked at it over and over and over and cant figure it out.. and it does it with with amulets and crystals. when it finds a amulet it tries to get a crystal but i think i fixed that part but i dunno if i did it right. just came back after a long break from gs and im rusty on alot of things.. anyone mind checking it out?



checktre:
match getbox box
match gettopaz topaz
match getwand wand
match getring gold ring
match getmother mother-of-pearl
match getcrys crystal
match getam crystal amulet
match getcube cube
match geteme emerald
match getstrong strongbox
match getsapp sapphire
match gettrunk trunk
match getpearl pearl
match getruby ruby
match getcoff coffer
match getchest chest
match getstat statue
match getopal opal
match getdiamond diamond
match aftertreasure still alive
match aftertreasure I could not find what you were referring to.
match aftertreasure oblivion.
match aftertreasure decomposes before your eyes.
matchwait

standup:
put stand
goto start

getcoral:
save coral
goto gettreasure1

getcrys:
save crystal
goto gettreasure1

getring:
save ring
goto gettreasure1

getmother:
save mother
goto gettreasure1

getstat:
save statue
goto gettreasure

getwand:
save wand
goto gettreasure

getam:
save "crystal amulet"
goto gettreasure1

getpearl:
save pearl
goto gettreasure1

getcube:
save cube
goto gettreasure

gettopaz:
save topaz
goto gettreasure1

getstrong:
save strongbox
goto gettreasure

geteme:
save emerald
goto gettreasure1

getsapp:
save sapphire
goto gettreasure1

gettrunk:
save trunk
goto gettreasure

getruby:
save ruby
goto gettreasure1

getcoff:
save coffer
goto gettreasure

getchest:
save chest
goto gettreasure

getbox:
save box
goto gettreasure

getopal:
save opal
goto gettreasure1

getdiamond:
save diamond
goto gettreasure1

gettreasure:
put put my %weapon in my %sheath
put get %s
match treasurefinal I could not find
match continuetre You pick up
matchwait

gettreasure1:
put put my %weapon in my %sheath
put get %s
match treasurefinal I could not find
match continuetre1 You pick up
matchwait

continuetre:
put put %s in my backpack
waitfor You put
goto treasurefinal

continuetre1:
open my %container
waitfor you
put put %s in my %container
waitfor You put
put close my %container
goto treasurefinal

treasurefinal:
put get %weapon from my %sheath
goto aftertreasure

aftertreasure:
pause 1
put look
match filter1 zombie
match R%c Obvious
matchwait

Darcthundar
11-09-2010, 02:35 PM
I think if you put an additional space between "getbox" and "box" might work. I think that way it will look for <space> box instead of strongbox

but that is just my best guess

Afk
11-19-2010, 09:42 AM
or you can just switch box and strongbox's positions in your match table

Alorn15
11-19-2010, 10:20 AM
start_script 'sloot'
wait_while { running? 'sloot' }


Sorry, couldn't resist.