Theraze
Active member
Oh, I didn't say it was a bug in the message you quoted. I was just pointing out that it was doing exactly what the script was telling it to, based on available_amount, and if you wanted to avoid it, you could, either by turning off stocking, or satisfy with stash.
Edit: For a constructive suggestion, how about you try to replace this line in stock:
with this:
Since it's using retrieve_item, which works based on available_amount, that should actually work properly to get more items. Unless it's supposed to pull from the clan stash to stock, in which case you'd want to replace this line
with this:
The big thing is that you just have to call the same function for both... either you use full_amount top and bottom and it will pull items from clan stash, or you use available_amount top and bottom and it will actually get new stuff for you.
Edit: For a constructive suggestion, how about you try to replace this line in stock:
Code:
tot = full_amount(it);
Code:
tot = available_amount(it);
Code:
if(tot < stock[it].q && !retrieve_item(stock[it].q - tot + available_amount(it), it)) {
Code:
if(tot < stock[it].q && !retrieve_item(stock[it].q - tot + full_amount(it), it)) {
The big thing is that you just have to call the same function for both... either you use full_amount top and bottom and it will pull items from clan stash, or you use available_amount top and bottom and it will actually get new stuff for you.
Last edited: