PDA

View Full Version : Help with script!



tyilo
01-26-2008, 09:07 AM
Why doesn't this script work?

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
01-26-2008, 11:39 AM
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
01-26-2008, 01:05 PM
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.

efilnikufecin
01-26-2008, 02:36 PM
Why doesn't this script work?

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);


make that

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.