YASSE Hitbasic-Loot (script): Difference between revisions
Jump to navigation
Jump to search
m (The script template only supports one category per script; combat scripts are labeled combat, even if they also train skills.) |
m (changed category to "Utility" (there is no combat involved in this script)) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Script |
{{Script |
||
|cat= |
|cat=Utility |
||
|fe=YASSE |
|fe=YASSE |
||
|auth=[[User:Hithrael|Hithrael]] |
|auth=[[User:Hithrael|Hithrael]] |
||
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. |
|||
==Updates== |
==Updates== |
||
Last Updated: |
Last Updated: |
||
*'''10/10/2011''': Revision 2.3, added support for the [[Mechanical Spider Parts|four major Spider]] parts. |
|||
*'''04/01/2011''': Revision 2.2, fixed a nasty hang when jadeite or kyanite stones were dropped. |
|||
*'''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 |
*'''03/14/2011''': Revision 1.1, added additional functionality |
||
*'''11/20/2010''': Revision 1.0 |
*'''11/20/2010''': Revision 1.0 |
||
Line 21: | Line 29: | ||
#Change these to no if you do not want to collect. |
#Change these to no if you do not want to collect. |
||
⚫ | |||
setvariable boxes yes |
setvariable boxes yes |
||
⚫ | |||
setvariable collectables yes |
setvariable collectables yes |
||
setvariable gems yes |
setvariable gems yes |
||
setvariable magic yes |
setvariable magic yes |
||
setvariable moonie yes |
setvariable moonie yes |
||
setvariable fest yes |
|||
#Containers |
|||
setvariable magiccontainer [thigh bag] |
|||
setvariable gemtiedcontainer belt |
|||
setvariable gemcontainer [black pouch] |
|||
⚫ | |||
lootit: |
lootit: |
||
Line 41: | Line 46: | ||
#Pick up this stuff |
#Pick up this stuff |
||
batch1: |
|||
if $moonie$ eq yes |
if $moonie$ eq yes |
||
begin |
begin |
||
Line 46: | Line 53: | ||
if %youalsosee contains [kyanite stone] gosub stowenchant stone |
if %youalsosee contains [kyanite stone] gosub stowenchant stone |
||
if %youalsosee contains [ju'uladan oil] gosub stowenchant oil |
if %youalsosee contains [ju'uladan oil] gosub stowenchant oil |
||
⚫ | |||
batch2: |
|||
if $ammo$ eq yes |
|||
⚫ | |||
if %youalsosee contains [quadrello] gosub stowammo quadrello |
|||
if %youalsosee contains [basilisk head arrow] gosub stowammo arrow |
|||
if %youalsosee contains [cane arrow] gosub stowammo arrow |
|||
end |
end |
||
Line 64: | Line 79: | ||
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 |
||
⚫ | |||
if $fest$ eq yes |
|||
⚫ | |||
if %youalsosee contains [flarmencrank] gosub stow flarmencrank |
|||
if %youalsosee contains [glarmencoupler] gosub stow glarmencoupler |
|||
if %youalsosee contains [rackensprocket] gosub stow rackensprocket |
|||
if %youalsosee contains [spangleflange] gosub stow spangleflange |
|||
end |
|||
if $collectables$ eq yes |
if $collectables$ eq yes |
||
Line 86: | Line 110: | ||
if $gems$ eq yes |
if $gems$ eq yes |
||
begin |
begin |
||
if %youalsosee contains agate gosub |
if %youalsosee contains agate gosub stow agate |
||
if %youalsosee contains alexandrite gosub |
if %youalsosee contains alexandrite gosub stow alexandrite |
||
if %youalsosee contains amber gosub |
if %youalsosee contains amber gosub stow amber |
||
if %youalsosee contains amethyst gosub |
if %youalsosee contains amethyst gosub stow amethyst |
||
if %youalsosee contains andalusite gosub |
if %youalsosee contains andalusite gosub stow andalusite |
||
if %youalsosee contains aquamarine gosub |
if %youalsosee contains aquamarine gosub stow aquamarine |
||
if %youalsosee contains beryl gosub |
if %youalsosee contains beryl gosub stow beryl |
||
if %youalsosee contains bloodstone gosub |
if %youalsosee contains bloodstone gosub stow bloodstone |
||
if %youalsosee contains bar gosub |
if %youalsosee contains bar gosub stow bar |
||
if %youalsosee contains carnelian gosub |
if %youalsosee contains carnelian gosub stow carnelian |
||
if %youalsosee contains chalcedony gosub |
if %youalsosee contains chalcedony gosub stow chalcedony |
||
if %youalsosee contains chrysoberyl gosub |
if %youalsosee contains chrysoberyl gosub stow chrysoberyl |
||
if %youalsosee contains chrysoprase gosub |
if %youalsosee contains chrysoprase gosub stow chrysoprase |
||
if %youalsosee contains citrine gosub |
if %youalsosee contains citrine gosub stow citrine |
||
if %youalsosee contains coral gosub |
if %youalsosee contains coral gosub stow coral |
||
if %youalsosee contains crystal gosub |
if %youalsosee contains crystal gosub stow crystal |
||
if %youalsosee contains diamond gosub |
if %youalsosee contains diamond gosub stow diamond |
||
if %youalsosee contains diopside gosub |
if %youalsosee contains diopside gosub stow diopside |
||
if %youalsosee contains emerald gosub |
if %youalsosee contains emerald gosub stow emerald |
||
if %youalsosee contains garnet gosub |
if %youalsosee contains garnet gosub stow garnet |
||
if %youalsosee contains jade gosub |
if %youalsosee contains jade gosub stow jade |
||
if %youalsosee contains jasper gosub |
if %youalsosee contains jasper gosub stow jasper |
||
if %youalsosee contains hematite gosub |
if %youalsosee contains hematite gosub stow hematite |
||
if %youalsosee contains iolite gosub |
if %youalsosee contains iolite gosub stow iolite |
||
if %youalsosee contains ivory gosub |
if %youalsosee contains ivory gosub stow ivory |
||
if %youalsosee contains kunzite gosub |
if %youalsosee contains kunzite gosub stow kunzite |
||
if %youalsosee contains lazuli gosub |
if %youalsosee contains lazuli gosub stow lazuli |
||
if %youalsosee contains moonstone gosub |
if %youalsosee contains moonstone gosub stow moonstone |
||
if %youalsosee contains morganite gosub |
if %youalsosee contains morganite gosub stow morganite |
||
if %youalsosee contains nugget gosub |
if %youalsosee contains nugget gosub stow nugget |
||
if %youalsosee contains onyx gosub |
if %youalsosee contains onyx gosub stow onyx |
||
if %youalsosee contains opal gosub |
if %youalsosee contains opal gosub stow opal |
||
if %youalsosee contains pearl gosub |
if %youalsosee contains pearl gosub stow pearl |
||
if %youalsosee contains peridot gosub |
if %youalsosee contains peridot gosub stow peridot |
||
if %youalsosee contains quartz gosub |
if %youalsosee contains quartz gosub stow quartz |
||
if %youalsosee contains ruby gosub |
if %youalsosee contains ruby gosub stow ruby |
||
if %youalsosee contains sapphire gosub |
if %youalsosee contains sapphire gosub stow sapphire |
||
if %youalsosee contains spinel gosub |
if %youalsosee contains spinel gosub stow spinel |
||
if %youalsosee contains star-stone gosub |
if %youalsosee contains star-stone gosub stow star-stone |
||
if %youalsosee contains sunstone gosub |
if %youalsosee contains sunstone gosub stow sunstone |
||
if %youalsosee contains tanzanite gosub |
if %youalsosee contains tanzanite gosub stow tanzanite |
||
if %youalsosee contains topaz gosub |
if %youalsosee contains topaz gosub stow topaz |
||
if %youalsosee contains tourmaline gosub |
if %youalsosee contains tourmaline gosub stow tourmaline |
||
if %youalsosee contains tsavorite gosub |
if %youalsosee contains tsavorite gosub stow tsavorite |
||
if %youalsosee contains turquoise gosub |
if %youalsosee contains turquoise gosub stow turquoise |
||
if %youalsosee contains sunstone gosub |
if %youalsosee contains sunstone gosub stow sunstone |
||
if %youalsosee contains zircon gosub |
if %youalsosee contains zircon gosub stow zircon |
||
end |
end |
||
if $coins$ eq yes |
|||
begin |
|||
if %youalsosee contains coin gosub getcoin |
|||
end |
|||
if %youalsosee contains [worn and tattered map] gosub map |
|||
exit |
exit |
||
map: |
|||
put stow map |
|||
return |
|||
getcoin: |
|||
match getcoin You pick up |
|||
match return referring to? |
|||
put get coin |
|||
matchwait |
|||
stow: |
stow: |
||
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 |
match return stow what? |
||
match stow you put |
match stow you put |
||
match stow you open |
|||
match return That can't be picked up. |
match return That can't be picked up. |
||
put stow %w |
put stow %w |
||
Line 148: | Line 188: | ||
stowenchant: |
stowenchant: |
||
match return |
match return stow what? |
||
match stowenchant2 pick up |
match stowenchant2 pick up |
||
match stowenchant3 you get |
|||
match return That can't be picked up. |
match return That can't be picked up. |
||
put get stone |
put get stone |
||
Line 156: | Line 197: | ||
stowenchant2: |
stowenchant2: |
||
pause |
pause |
||
match return |
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 |
|||
stowenchant3: |
|||
put put stone in $magiccontainer$ |
|||
goto batch2 |
|||
stowammo: |
|||
⚫ | |||
match stowammo you put |
|||
match return stow what? |
|||
match return That can't be picked up. |
|||
put stow %w |
|||
matchwait |
matchwait |
||
Line 168: | Line 221: | ||
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 174: | Line 228: | ||
end |
end |
||
boxmessage |
boxmessage Second gem pouch is full, ending loot script. |
||
exit |
exit |
||
tiepouch: |
tiepouch: |
||
pause |
pause |
||
⚫ | |||
if %lefthanditem contains knife |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
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 |
|||
⚫ | |||
⚫ | |||
pause |
|||
put swap |
|||
pause |
|||
⚫ | |||
return |
return |
||
Line 203: | Line 242: | ||
put put my $gemtied$ in my $gemtiedcontainer$ |
put put my $gemtied$ in my $gemtiedcontainer$ |
||
waitfor you put |
waitfor you put |
||
⚫ | |||
return |
return |
||
return: |
|||
Return: |
|||
return |
return |
||
</pre> |
</pre> |
||
[[Category:Scripts]] |
Latest revision as of 13:09, 23 May 2016
YASSE Hitbasic-Loot (script) | |
---|---|
Category | Utility |
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:
- 10/10/2011: Revision 2.3, added support for the four major Spider parts.
- 04/01/2011: Revision 2.2, fixed a nasty hang when jadeite or kyanite stones were dropped.
- 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 #Change these to no if you do not want to collect. setvariable ammo yes setvariable boxes yes setvariable coins yes setvariable collectables yes setvariable gems yes setvariable magic yes setvariable moonie yes setvariable fest yes lootit: put loot pause 4 put look nextroom pause #Pick up this stuff batch1: 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 batch2: if $ammo$ eq yes begin if %youalsosee contains [quadrello] gosub stowammo quadrello if %youalsosee contains [basilisk head arrow] gosub stowammo arrow if %youalsosee contains [cane arrow] gosub stowammo arrow 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 $fest$ eq yes begin if %youalsosee contains [flarmencrank] gosub stow flarmencrank if %youalsosee contains [glarmencoupler] gosub stow glarmencoupler if %youalsosee contains [rackensprocket] gosub stow rackensprocket if %youalsosee contains [spangleflange] gosub stow spangleflange 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 if $coins$ eq yes begin if %youalsosee contains coin gosub getcoin end if %youalsosee contains [worn and tattered map] gosub map exit map: put stow map return getcoin: match getcoin You pick up match return referring to? put get coin matchwait 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 stow you open match return That can't be picked up. put stow %w matchwait stowenchant: match return stow what? match stowenchant2 pick up match stowenchant3 you get 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 stowenchant3: put put stone in $magiccontainer$ goto batch2 stowammo: pause match stowammo you put match return stow what? match return That can't be picked up. put stow %w 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 $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 return: return