How to make items?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

n3rdygamer
Posts: 2
Joined: 22 Jan 2012, 09:29

How to make items?

Postby n3rdygamer » 22 Jan 2012, 09:34

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
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 22 Jan 2012, 18:51

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
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 24 Jan 2012, 09:01

This message is not related to OpenSpace (and actually not much to SFS too). Moving to another forum.
Paolo Bax
The SmartFoxServer Team

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 22 guests