Page 1 of 1

How to make items?

Posted: 22 Jan 2012, 09:34
by n3rdygamer
Im using Smartfoxserver pro As2, Avatar chat.
So I was wondering how we could make 'items and inventory'
Items for example- a hat, shirt, shoes. So my avatar can wear them
Inventory for example- When someone buys something the items will be in their inventory..
Can somebody help me??? Thanks :D

Posted: 22 Jan 2012, 18:51
by rjgtav
Hi.

You have to use a database to store the inventory and you can use UserVariables to store the clothes a player is currently wearing. For the buy/selling system you can use server-side extensions or some other technology that enabes you to communicate with the database (like for example PHP).

Regarding how to make the system itself, I'm sorry but that's out of the scope of these forums and so we can't help you much further, as that's a general game development question. I suggest you to ask Google about that.

For more information about how the server works and its features, I suggest you to start by reading the docs at http://www.smartfoxserver.com/docs

Posted: 24 Jan 2012, 09:01
by Bax
This message is not related to OpenSpace (and actually not much to SFS too). Moving to another forum.