AlvitrValkyrie
Member
Basically it. I have a pretty basic buff script in the work that retrieve_items a lot of crap. I'd rather not have to type the use command for each and every one
foreach x in $items[cyclops eyedrops, sorority brain, polka pop, pressurized potion of perception, black snowcone, pumpkin juice, potion of the litterbox, knob goblin eyedrops, resolution: be happier, eyedrops of the ocelot, off-white paisley oyster egg, eyedrops of the ermine, irradiated pet snacks, Knob Goblin pet-buffing spray, resolution: be kinder, disintegrating spiky collar, half-orchid]
{
retrieve_item( x, 1 );
use( x, 1 );
}
Function 'retrieve_item( item, int )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (hobopolisbuff.ash, line 31)
> ashref retrieve
boolean retrieve_item( int, item )
How do I fix that?
foreach itm in $items[ cyclops eyedrops,
sorority brain,
polka pop,
pressurized potion of perception,
black snowcone,
pumpkin juice,
potion of the litterbox,
knob goblin eyedrops,
resolution: be happier,
eyedrops of the ocelot,
off-white paisley oyster egg,
eyedrops of the ermine,
irradiated pet snacks,
Knob Goblin pet-buffing spray,
resolution: be kinder,
disintegrating spiky collar,
half-orchid ]
{
if ( retrieve_item( 1, itm ) || ( itm.is_tradeable() && buy( 1, itm ) ) )
{
use( 1, itm );
}
}