Closed jpcsupplies closed 8 years ago
Ok, if i understand this correctly, this should be essentially the same logic as "sell" but we are swapping += with -= and vice versa. Only change is inventory overflow checks to drop item at players feet.
are we able to expand on the sell command here with a few if(buying) type checks to swap the buyer and seller uids to buy back from the server ? @midspace Actually in retrospect that wouldnt work, the player isnt a market, but reversing the quantities might ?
Basically the reverse of selling.
Item gets added to your inventory, value gets deducted from your bank balance
funds also should be paid to the npc charater too
should also track the amount sold for later global market