Help with script!

tyilo

Member
Why doesn't this script work?
Code:
use( item_amount( $item[disassembled clover]), $item[disassembled clover]);
adventure( item_amount( $item[Ten-leaf clover]), $location[Lemon Party]);
repeat
{
     put_shop( 4000, 0, $item[big rock]);
}
until ( item_amount( $item[big rock]) = 0);
 

macman104

Member
Do you think you coudl eb a little mroe descriptive about "doesn't work"? That might actually alloows someone to help you firgure out the issue...
 

Miser

New member
put_shop will mallsell all of the item in your inventory, so the loop is unnecessary.
Also, you used = instead of == in the loop condition.
 
[quote author=tyilo link=topic=1475.msg6834#msg6834 date=1201342061]
Why doesn't this script work?
Code:
use( item_amount( $item[disassembled clover]), $item[disassembled clover]);
adventure( item_amount( $item[Ten-leaf clover]), $location[Lemon Party]);
repeat
{
     put_shop( 4000, 0, $item[big rock]);
}
until ( item_amount( $item[big rock]) = 0);
[/quote]

make that
Code:
use( item_amount( $item[disassembled clover]), $item[disassembled clover]);
adventure( item_amount( $item[Ten-leaf clover]), $location[Lemon Party]);
put_shop( 4000, 0, $item[big rock]);
where 4000 is the price, 0 is the limit per day, and kolmafia puts all in by default.

You are saving the file with a .ash extension aren't you?

I didn't know repeat statements were possible.
 
Top