I will post bugs I find although I am not sure you read this forum anymore..
There is a problem with the sell bag command. If you have a stack of items, the stack will sell for the price of one item.
merchant_sell_bag.src
line 104 ff
- Code: Select all
if (itemprice)
if (DestroyItem (item))
totalsale := totalsale + (itemprice * item.amount);
You are destroying the stack but still expecting to know the .amount
This could read:
- Code: Select all
if (itemprice)
itemamount := item.amount;
if (DestroyItem (item))
totalsale := totalsale + (itemprice * itemamount);
For the sake of being complete, also include this at line 98:
- Code: Select all
var itemamount;