YASSE Hitbasic-Loot (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
m (updated to Version 2.0 -- also, if anyone has the TAP desc for a dropped treasure map, please leave under discussion)
Line 9: Line 9:


==Syntax==
==Syntax==
Set global variables through [[YASSE Global Variables (script)]], set the local variables in this script (at the top) and see note for those using ranged (lodging) weapons.
Replace the various finds under ammo to pick up the appropriate ammo (under the first area under #Pick up this stuff and after the first stow area).



==Updates==
==Updates==
Last Updated:
Last Updated:
*'''03/30/2011''': Revision 2, now uses global variables for multi-character support and ease of use, fixed bug with first gem pouch being full and not being able to fill the secondary pouch.
:: No support for treasure maps, since I haven't seen one drop yet.
:: Replace the various finds under ammo to pick up the appropriate ammo (under the first area under #Pick up this stuff and after the first stow area).
*'''03/21/2011''': Revision 1.1b, added limited support for ammunition
*'''03/21/2011''': Revision 1.1b, added limited support for ammunition
*'''03/14/2011''': Revision 1.1, added additional functionality
*'''03/14/2011''': Revision 1.1, added additional functionality
Line 21: Line 25:
<pre>
<pre>
set predefined on
set predefined on

action [You find nothing of interest.] goto end


#Change these to no if you do not want to collect.
#Change these to no if you do not want to collect.
Line 29: Line 35:
setvariable moonie yes
setvariable moonie yes
setvariable ammo yes
setvariable ammo yes


#Containers
setvariable magiccontainer [thigh bag]
setvariable gemtiedcontainer belt
setvariable gemcontainer [black pouch]
setvariable gemtied [gem pouch]


lootit:
lootit:
Line 47: Line 46:
if $ammo$ eq yes
if $ammo$ eq yes
begin
begin
if %youalsosee contains [leafhead bolt] gosub stowammo bolt
if %youalsosee contains [quadrello] gosub stowammo bolt
end
end


Line 73: Line 72:
if %youalsosee contains [wax tablet] gosub stow tablet
if %youalsosee contains [wax tablet] gosub stow tablet
if %youalsosee contains [faded vellum] gosub stow vellum
if %youalsosee contains [faded vellum] gosub stow vellum
end


if $collectables$ eq yes
if $collectables$ eq yes
Line 95: Line 95:
if $gems$ eq yes
if $gems$ eq yes
begin
begin
if %youalsosee contains agate gosub Stow agate
if %youalsosee contains agate gosub stow agate
if %youalsosee contains alexandrite gosub Stow alexandrite
if %youalsosee contains alexandrite gosub stow alexandrite
if %youalsosee contains amber gosub Stow amber
if %youalsosee contains amber gosub stow amber
if %youalsosee contains amethyst gosub Stow amethyst
if %youalsosee contains amethyst gosub stow amethyst
if %youalsosee contains andalusite gosub Stow andalusite
if %youalsosee contains andalusite gosub stow andalusite
if %youalsosee contains aquamarine gosub Stow aquamarine
if %youalsosee contains aquamarine gosub stow aquamarine
if %youalsosee contains beryl gosub Stow beryl
if %youalsosee contains beryl gosub stow beryl
if %youalsosee contains bloodstone gosub Stow bloodstone
if %youalsosee contains bloodstone gosub stow bloodstone
if %youalsosee contains bar gosub Stow bar
if %youalsosee contains bar gosub stow bar
if %youalsosee contains carnelian gosub Stow carnelian
if %youalsosee contains carnelian gosub stow carnelian
if %youalsosee contains chalcedony gosub Stow chalcedony
if %youalsosee contains chalcedony gosub stow chalcedony
if %youalsosee contains chrysoberyl gosub Stow chrysoberyl
if %youalsosee contains chrysoberyl gosub stow chrysoberyl
if %youalsosee contains chrysoprase gosub Stow chrysoprase
if %youalsosee contains chrysoprase gosub stow chrysoprase
if %youalsosee contains citrine gosub Stow citrine
if %youalsosee contains citrine gosub stow citrine
if %youalsosee contains coral gosub Stow coral
if %youalsosee contains coral gosub stow coral
if %youalsosee contains crystal gosub Stow crystal
if %youalsosee contains crystal gosub stow crystal
if %youalsosee contains diamond gosub Stow diamond
if %youalsosee contains diamond gosub stow diamond
if %youalsosee contains diopside gosub Stow diopside
if %youalsosee contains diopside gosub stow diopside
if %youalsosee contains emerald gosub Stow emerald
if %youalsosee contains emerald gosub stow emerald
if %youalsosee contains garnet gosub Stow garnet
if %youalsosee contains garnet gosub stow garnet
if %youalsosee contains jade gosub Stow jade
if %youalsosee contains jade gosub stow jade
if %youalsosee contains jasper gosub Stow jasper
if %youalsosee contains jasper gosub stow jasper
if %youalsosee contains hematite gosub Stow hematite
if %youalsosee contains hematite gosub stow hematite
if %youalsosee contains iolite gosub Stow iolite
if %youalsosee contains iolite gosub stow iolite
if %youalsosee contains ivory gosub Stow ivory
if %youalsosee contains ivory gosub stow ivory
if %youalsosee contains kunzite gosub Stow kunzite
if %youalsosee contains kunzite gosub stow kunzite
if %youalsosee contains lazuli gosub Stow lazuli
if %youalsosee contains lazuli gosub stow lazuli
if %youalsosee contains moonstone gosub Stow moonstone
if %youalsosee contains moonstone gosub stow moonstone
if %youalsosee contains morganite gosub Stow morganite
if %youalsosee contains morganite gosub stow morganite
if %youalsosee contains nugget gosub Stow nugget
if %youalsosee contains nugget gosub stow nugget
if %youalsosee contains onyx gosub Stow onyx
if %youalsosee contains onyx gosub stow onyx
if %youalsosee contains opal gosub Stow opal
if %youalsosee contains opal gosub stow opal
if %youalsosee contains pearl gosub Stow pearl
if %youalsosee contains pearl gosub stow pearl
if %youalsosee contains peridot gosub Stow peridot
if %youalsosee contains peridot gosub stow peridot
if %youalsosee contains quartz gosub Stow quartz
if %youalsosee contains quartz gosub stow quartz
if %youalsosee contains ruby gosub Stow ruby
if %youalsosee contains ruby gosub stow ruby
if %youalsosee contains sapphire gosub Stow sapphire
if %youalsosee contains sapphire gosub stow sapphire
if %youalsosee contains spinel gosub Stow spinel
if %youalsosee contains spinel gosub stow spinel
if %youalsosee contains star-stone gosub Stow star-stone
if %youalsosee contains star-stone gosub stow star-stone
if %youalsosee contains sunstone gosub Stow sunstone
if %youalsosee contains sunstone gosub stow sunstone
if %youalsosee contains tanzanite gosub Stow tanzanite
if %youalsosee contains tanzanite gosub stow tanzanite
if %youalsosee contains topaz gosub Stow topaz
if %youalsosee contains topaz gosub stow topaz
if %youalsosee contains tourmaline gosub Stow tourmaline
if %youalsosee contains tourmaline gosub stow tourmaline
if %youalsosee contains tsavorite gosub Stow tsavorite
if %youalsosee contains tsavorite gosub stow tsavorite
if %youalsosee contains turquoise gosub Stow turquoise
if %youalsosee contains turquoise gosub stow turquoise
if %youalsosee contains sunstone gosub Stow sunstone
if %youalsosee contains sunstone gosub stow sunstone
if %youalsosee contains zircon gosub Stow zircon
if %youalsosee contains zircon gosub stow zircon
end
end


Line 150: Line 150:
match checkpouch You've already got a wealth of gems in there!
match checkpouch You've already got a wealth of gems in there!
match checkpouch You can't fit anything else
match checkpouch You can't fit anything else
match return Stow what?
match return stow what?
match stow you put
match stow you put
match return That can't be picked up.
match return That can't be picked up.
put stow %w
put stow %w
matchwait

stowammo:
pause
match stowammo you put
match return Stow what?
match return That can't be picked up.
put stow bolt
matchwait
matchwait


stowenchant:
stowenchant:
match return Stow what?
match return stow what?
match stowenchant2 pick up
match stowenchant2 pick up
match return That can't be picked up.
match return That can't be picked up.
Line 173: Line 165:
stowenchant2:
stowenchant2:
pause
pause
match return Stow what?
match return stow what?
match stowenchant you put
match stowenchant you put
match return That can't be picked up.
match return That can't be picked up.
put put stone in $magiccontainer$
put put stone in $magiccontainer$
matchwait

stowammo:
pause
match stowammo you put
match return stow what?
match return That can't be picked up.
put stow quad
matchwait
matchwait


Line 185: Line 185:
pause
pause
put fill my $gemtied$ with my $gemcontainer$
put fill my $gemtied$ with my $gemcontainer$
boxmessage Waiting to fill $gemtied$ with $gemcontainer$
waitfor pouch
waitfor pouch
gosub tiepouch2
gosub tiepouch2
Line 191: Line 192:
end
end


boxmessage Gem pouch is full.
boxmessage Second gem pouch is full, ending loot script.
exit
exit



tiepouch:
tiepouch:
pause
pause
put sheath my $huntingweapon$
if %lefthanditem contains knife
begin
setvariable unsheathe yes
put sheath $knife$
end
pause
if %righthanditem contains knife
put sheath $knife$
pause
put get my $gemtied$ from my $gemtiedcontainer$
put get my $gemtied$ from my $gemtiedcontainer$
boxmessage Waiting to get pouch from $gemtiedcontainer$
waitfor pouch
waitfor pouch
if $unsheath$ contains yes
begin
put wield $knife$
pause
put swap
pause
end
return
return


Line 220: Line 206:
put put my $gemtied$ in my $gemtiedcontainer$
put put my $gemtied$ in my $gemtiedcontainer$
waitfor you put
waitfor you put
put wield my $huntingweapon$
return
return


end:

exit

Return:
return


</pre>
</pre>

Revision as of 16:34, 30 March 2011

YASSE Hitbasic-Loot (script)
Category combat
Front-end YASSE
Author Hithrael


Description

This is part of the YASSE Combat Package.

Syntax

Set global variables through YASSE Global Variables (script), set the local variables in this script (at the top) and see note for those using ranged (lodging) weapons.


Updates

Last Updated:

  • 03/30/2011: Revision 2, now uses global variables for multi-character support and ease of use, fixed bug with first gem pouch being full and not being able to fill the secondary pouch.
No support for treasure maps, since I haven't seen one drop yet.
Replace the various finds under ammo to pick up the appropriate ammo (under the first area under #Pick up this stuff and after the first stow area).
  • 03/21/2011: Revision 1.1b, added limited support for ammunition
  • 03/14/2011: Revision 1.1, added additional functionality
  • 11/20/2010: Revision 1.0

Script

set predefined on

action [You find nothing of interest.] goto end

#Change these to no if you do not want to collect.
setvariable boxes yes
setvariable collectables yes
setvariable gems yes
setvariable magic yes
setvariable moonie yes
setvariable ammo yes

lootit:
put loot
pause 4
put look
nextroom
pause

#Pick up this stuff
if $ammo$ eq yes
	begin
	if %youalsosee contains [quadrello] gosub stowammo bolt
	end

if $moonie$ eq yes
	begin
	if %youalsosee contains [jadeite stone] gosub stowenchant stone
	if %youalsosee contains [kyanite stone] gosub stowenchant stone
	if %youalsosee contains [ju'uladan oil] gosub stowenchant oil
	end

if $magic$ eq yes
	begin
	if %youalsosee contains [hhr'lav'geluhh bark] gosub stow bark
	if %youalsosee contains [seishaka leaf] gosub stow leaf
	if %youalsosee contains [ostracon] gosub stow ostracon
	if %youalsosee contains [tattered papyrus] gosub stow papyrus
	if %youalsosee contains [smudged parchment] gosub stow parchment
	if %youalsosee contains [papyrus roll] gosub stow roll
	if %youalsosee contains [fine scroll] gosub stow scroll
	if %youalsosee contains [illuminated scroll] gosub stow scroll
	if %youalsosee contains [moldering scroll] gosub stow scroll
	if %youalsosee contains [tattered scroll] gosub stow scroll
	if %youalsosee contains [yellowed scroll] gosub stow scroll
	if %youalsosee contains [clay tablet] gosub stow tablet
	if %youalsosee contains [wax tablet] gosub stow tablet
	if %youalsosee contains [faded vellum] gosub stow vellum
	end

if $collectables$ eq yes
	begin
	if %youalsosee contains card gosub stow card
	if %youalsosee contains dira gosub stow dira
	end

if $boxes$ eq yes
	begin
	if %youalsosee contains skippet gosub stow skippet
	if %youalsosee contains casket gosub stow casket
	if %youalsosee contains crate gosub stow crate
	if %youalsosee contains coffer gosub stow coffer
	if %youalsosee contains chest gosub stow chest
	if %youalsosee contains trunk gosub stow trunk
	if %youalsosee contains caddy gosub stow caddy
	if %youalsosee contains [ box] gosub stow box
	if %youalsosee contains strongbox gosub stow strongbox
	end

if $gems$ eq yes
	begin
	if %youalsosee contains agate gosub stow agate
	if %youalsosee contains alexandrite gosub stow alexandrite
	if %youalsosee contains amber gosub stow amber
	if %youalsosee contains amethyst gosub stow amethyst
	if %youalsosee contains andalusite gosub stow andalusite
	if %youalsosee contains aquamarine gosub stow aquamarine
	if %youalsosee contains beryl gosub stow beryl
	if %youalsosee contains bloodstone gosub stow bloodstone
	if %youalsosee contains bar gosub stow bar
	if %youalsosee contains carnelian gosub stow carnelian
	if %youalsosee contains chalcedony gosub stow chalcedony
	if %youalsosee contains chrysoberyl gosub stow chrysoberyl
	if %youalsosee contains chrysoprase gosub stow chrysoprase
	if %youalsosee contains citrine gosub stow citrine
	if %youalsosee contains coral gosub stow coral
	if %youalsosee contains crystal gosub stow crystal
	if %youalsosee contains diamond gosub stow diamond
	if %youalsosee contains diopside gosub stow diopside
	if %youalsosee contains emerald gosub stow emerald
	if %youalsosee contains garnet gosub stow garnet
	if %youalsosee contains jade gosub stow jade
	if %youalsosee contains jasper gosub stow jasper
	if %youalsosee contains hematite gosub stow hematite
	if %youalsosee contains iolite gosub stow iolite
	if %youalsosee contains ivory gosub stow ivory
	if %youalsosee contains kunzite gosub stow kunzite
	if %youalsosee contains lazuli gosub stow lazuli
	if %youalsosee contains moonstone gosub stow moonstone
	if %youalsosee contains morganite gosub stow morganite
	if %youalsosee contains nugget gosub stow nugget
	if %youalsosee contains onyx gosub stow onyx
	if %youalsosee contains opal gosub stow opal
	if %youalsosee contains pearl gosub stow pearl
	if %youalsosee contains peridot gosub stow peridot
	if %youalsosee contains quartz gosub stow quartz
	if %youalsosee contains ruby gosub stow ruby
	if %youalsosee contains sapphire gosub stow sapphire
	if %youalsosee contains spinel gosub stow spinel
	if %youalsosee contains star-stone gosub stow star-stone
	if %youalsosee contains sunstone gosub stow sunstone
	if %youalsosee contains tanzanite gosub stow tanzanite
	if %youalsosee contains topaz gosub stow topaz
	if %youalsosee contains tourmaline gosub stow tourmaline
	if %youalsosee contains tsavorite gosub stow tsavorite
	if %youalsosee contains turquoise gosub stow turquoise
	if %youalsosee contains sunstone gosub stow sunstone
	if %youalsosee contains zircon gosub stow zircon
	end


exit

stow:
match checkpouch You've already got a wealth of gems in there!
match checkpouch You can't fit anything else
match return stow what?
match stow you put
match return That can't be picked up.
put stow %w
matchwait

stowenchant:
match return stow what?
match stowenchant2 pick up
match return That can't be picked up.
put get stone
matchwait

stowenchant2:
pause
match return stow what?
match stowenchant you put
match return That can't be picked up.
put put stone in $magiccontainer$
matchwait

stowammo:
pause
match stowammo you put
match return stow what?
match return That can't be picked up.
put stow quad
matchwait

checkpouch:
if $gems$ eq yes
	begin
	gosub tiepouch
	pause
	put fill my $gemtied$ with my $gemcontainer$
	boxmessage Waiting to fill $gemtied$ with $gemcontainer$
	waitfor pouch
	gosub tiepouch2
	pause
	goto stow
	end

boxmessage Second gem pouch is full, ending loot script.
exit

tiepouch:
pause
put sheath my $huntingweapon$
put get my $gemtied$ from my $gemtiedcontainer$
boxmessage Waiting to get pouch from $gemtiedcontainer$
waitfor pouch
return

tiepouch2:
put put my $gemtied$ in my $gemtiedcontainer$
waitfor you put
put wield my $huntingweapon$
return

end:
exit