Heres an idea on how to do this with less coding.
Allow people to spawn a merchant who has their name.
They add items to the merchant by targetted their merchant, grabbing a item on their cursor and issuing a command like #sell <sell price> The server takes the item off the guys cursor, puts it on the vendor at price listed.
The money gets put directly into that persons bank.
To remove items, their merchant sell to the owner at 0 cost.
This sounds like it would be a lot easier to code and work quite well.
|