Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Give Items to a offline player
#8
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)