17-07-2006, 01:27 AM
Wouldnt this be easier to just use an INI file?
Say, player 1 puts item up for sale.
Write to INI:
Player 1 Name
Item Number
Item Quantity
Item Price
And a sold boolean, set to no
Then, player 1 logs out.
Player 2 comes along and buys the item
Write to INI:
Sold Boolean, set to yes. The rest can stay the same.
Then, player 1 logs in.
If player 1's name is in the INI file, say Market.INI, and the sold boolean = true, then we reward player 1 with the Item Price.
May be a lot of work but it I think this might be a good route to go.
EDIT: Nvm, just saw spoon's tut. Thats easier lol.
Say, player 1 puts item up for sale.
Write to INI:
Player 1 Name
Item Number
Item Quantity
Item Price
And a sold boolean, set to no
Then, player 1 logs out.
Player 2 comes along and buys the item
Write to INI:
Sold Boolean, set to yes. The rest can stay the same.
Then, player 1 logs in.
If player 1's name is in the INI file, say Market.INI, and the sold boolean = true, then we reward player 1 with the Item Price.
May be a lot of work but it I think this might be a good route to go.
EDIT: Nvm, just saw spoon's tut. Thats easier lol.