buyprice
Posted: Tue Mar 18, 2008 12:16 am
Since .buyprice is read/write on an item you can set it to be anything you like for sale to merchants.
What I didn't realise was that you can combine stacks of items with different buyprices and that results in a single stack with the existing_stack value retained which messes up all the buyprices.
I don't want to refuse the insert or move with caninsert because it would mess up crafting. Crafting sets a buyprice.
I don't really want to use the oninsert script because there is no opportunity to keep the stack split as the inserttype is already set.
What am I missing? I am sure this has been solved by someone or other!
I'd hate to resort to cprops to keep the stacks separate.
What I didn't realise was that you can combine stacks of items with different buyprices and that results in a single stack with the existing_stack value retained which messes up all the buyprices.
I don't want to refuse the insert or move with caninsert because it would mess up crafting. Crafting sets a buyprice.
I don't really want to use the oninsert script because there is no opportunity to keep the stack split as the inserttype is already set.
What am I missing? I am sure this has been solved by someone or other!
I'd hate to resort to cprops to keep the stacks separate.