Spice Loop

xmaveric

New member
Here is a modified version that works:
Code:
void go_fishing_until_worthless()
{
 if ( item_amount( $item[ten-leaf clover]) < 1) 
	{
	while ( item_amount( $item[worthless trinket]) + 
 	item_amount( $item[worthless knick-knack]) + 
    	item_amount( $item[worthless gewgaw])
	< 1)
		{
		buy(1, $item[Chewing gum on a string]);
		adventure(1, $location[Sewer with clovers]);
		}
	}
}

void get_clover()
{
 if( item_amount( $item[ten-leaf clover]) < 1 )
 {
  go_fishing_until_worthless();
  trade_hermit(1, $item[ten-leaf clover]);
 } 
}

void onecycle()
{
 if( item_amount( $item[ten-leaf clover]) < 1 )
   {
    get_clover();
   }
 if( item_amount( $item[chewing gum on a string]) < 1 )
   {
    buy(1, $item[chewing gum on a string]);
   }
 adventure(1, $location[Sewer with clovers]);
}

void main()
{
 while ( my_adventures() > 10 )
 {
  onecycle();
 }
}

( I added the "v" on the first "void"... :) - Daychilde )
 

holatuwol

Developer
Implementing the spice loop with an ASH script is kinda like using a battering ram to handle a nail ... the following is a hypothetical script which should work based on my understanding of how the CLI should work, but a lot has changed lately, and this understanding may be inaccurate.  Replace "*" with however many adventures you actually want to spend doing the spice loop if you don't want to use all your adventures.

Code:
acquire worthless item
set luckySewerAdventure=stolen accordion
set betweenBattleScript=acquire ten-leaf clover
adventure * sewer with clover
set betweenBattleScript=
 
Top