Jonty
01-26-2004, 02:28 PM
You'll need to set your container variable and your shield variable if you use one for this script to run correctly.
#search
first:
if_1 goto start
AddToHighlightStrings string=".search <critter>" foreColor=14 highlightEntireLine=True /quiet
echo Usage is: .search <critter>
DeleteFromHighlightStrings string=".search <critter>"
AddToHighlightStrings string=".search <critter> <critter> etc...." foreColor=14 highlightEntireLine=True /quiet
echo
echo Or for multiple critters: .search <critter> <critter> etc....
DeleteFromHighlightStrings string=".search <critter> <critter> etc...."
def:
save def
match end You are now in a defensive stance.
match wait ...wait
put stance defensive
matchwait
wait:
wait
goto %s
start:
save start
counter set 1
match search You are now in a defensive stance.
match wait ...wait
put stance defensive
matchwait
search:
wait
match wand wand
match orb orb
match lockpick lockpick
match scroll scroll
match amulet amulet
match diamond diamond
match emerald emerald
match lapis lapis lazuli
match opal opal
match pearl pearl
match ruby ruby
match sapphire sapphire
match shell shell
match topaz topaz
match coral coral
match amber amber
match amethyst amethyst
match bloodstone bloodstone
match garnet garnet
match gem gem
match crystal crystal
match jasper jasper
match moonstone moonstone
match glimaerstone glimaerstone
match stone stone
match check%c Try looking in, on, behind or under it. Or examining it.
match check%c nothing of interest
match check%c nothing else
match check%c What were you referring to?
match check%c with it!
match check%c You're not in any condition to be searching around!
match check%c Geez! It's still alive! Not a good time for that.
put search %1
matchwait
lockpick:
save lockpick
Goto get%c
amulet:
save amulet
Goto get%c
wand:
save wand
Goto get%c
scroll:
save scroll
Goto get%c
diamond:
save diamond
Goto get%c
emerald:
save emerald
Goto get%c
lapis:
save lapis
Goto get%c
opal:
save opal
Goto get%c
pearl:
save pearl
Goto get%c
ruby:
save ruby
Goto get%c
shell:
save shell
Goto get%c
sapphire:
save sapphire
Goto get%c
topaz:
save topaz
Goto get%c
coral:
save coral
Goto get%c
amber:
save amber
Goto get%c
amethyst:
save amethyst
Goto get%c
bloodstone:
save bloodstone
Goto get%c
garnet:
save garnet
Goto get%c
gem:
save gem
Goto get%c
jasper:
save jasper
Goto get%c
crystal:
save crystal
Goto get%c
quartz:
save quartz
Goto get%c
spinel:
save spinel
Goto get%c
stone:
save stone
Goto get%c
tourmaline:
save tourmaline
Goto get%c
zircon:
save zircon
Goto get%c
orb:
save orb
Goto get%c
glimaerstone:
save glimaerstone
Goto get%c
moonstone:
save moonstone
Goto get%c
get1:
counter set 2
wait
match open you
match open Wear what?
put wear my %shield
matchwait
open:
wait
match get2 you
match get2 Ok, it opened.
match get2 That is already open.
put open my %container
matchwait
get2:
wait
put get %s
waitfor You pick up
put put my %s in my %container
waitfor You put
check2:
shift
if_1 goto search
put close my %container
check1:
shift
if_1 goto search
end:
[Edited on 1-31-2004 by Jonty]
#search
first:
if_1 goto start
AddToHighlightStrings string=".search <critter>" foreColor=14 highlightEntireLine=True /quiet
echo Usage is: .search <critter>
DeleteFromHighlightStrings string=".search <critter>"
AddToHighlightStrings string=".search <critter> <critter> etc...." foreColor=14 highlightEntireLine=True /quiet
echo
echo Or for multiple critters: .search <critter> <critter> etc....
DeleteFromHighlightStrings string=".search <critter> <critter> etc...."
def:
save def
match end You are now in a defensive stance.
match wait ...wait
put stance defensive
matchwait
wait:
wait
goto %s
start:
save start
counter set 1
match search You are now in a defensive stance.
match wait ...wait
put stance defensive
matchwait
search:
wait
match wand wand
match orb orb
match lockpick lockpick
match scroll scroll
match amulet amulet
match diamond diamond
match emerald emerald
match lapis lapis lazuli
match opal opal
match pearl pearl
match ruby ruby
match sapphire sapphire
match shell shell
match topaz topaz
match coral coral
match amber amber
match amethyst amethyst
match bloodstone bloodstone
match garnet garnet
match gem gem
match crystal crystal
match jasper jasper
match moonstone moonstone
match glimaerstone glimaerstone
match stone stone
match check%c Try looking in, on, behind or under it. Or examining it.
match check%c nothing of interest
match check%c nothing else
match check%c What were you referring to?
match check%c with it!
match check%c You're not in any condition to be searching around!
match check%c Geez! It's still alive! Not a good time for that.
put search %1
matchwait
lockpick:
save lockpick
Goto get%c
amulet:
save amulet
Goto get%c
wand:
save wand
Goto get%c
scroll:
save scroll
Goto get%c
diamond:
save diamond
Goto get%c
emerald:
save emerald
Goto get%c
lapis:
save lapis
Goto get%c
opal:
save opal
Goto get%c
pearl:
save pearl
Goto get%c
ruby:
save ruby
Goto get%c
shell:
save shell
Goto get%c
sapphire:
save sapphire
Goto get%c
topaz:
save topaz
Goto get%c
coral:
save coral
Goto get%c
amber:
save amber
Goto get%c
amethyst:
save amethyst
Goto get%c
bloodstone:
save bloodstone
Goto get%c
garnet:
save garnet
Goto get%c
gem:
save gem
Goto get%c
jasper:
save jasper
Goto get%c
crystal:
save crystal
Goto get%c
quartz:
save quartz
Goto get%c
spinel:
save spinel
Goto get%c
stone:
save stone
Goto get%c
tourmaline:
save tourmaline
Goto get%c
zircon:
save zircon
Goto get%c
orb:
save orb
Goto get%c
glimaerstone:
save glimaerstone
Goto get%c
moonstone:
save moonstone
Goto get%c
get1:
counter set 2
wait
match open you
match open Wear what?
put wear my %shield
matchwait
open:
wait
match get2 you
match get2 Ok, it opened.
match get2 That is already open.
put open my %container
matchwait
get2:
wait
put get %s
waitfor You pick up
put put my %s in my %container
waitfor You put
check2:
shift
if_1 goto search
put close my %container
check1:
shift
if_1 goto search
end:
[Edited on 1-31-2004 by Jonty]