jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

TODO: allow players to buy items from the server #32

Closed jpcsupplies closed 8 years ago

jpcsupplies commented 9 years ago

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

jpcsupplies commented 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.

jpcsupplies commented 8 years ago

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 ?