Adding Inventory Item via code

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

gwills
Posts: 5
Joined: 27 Oct 2011, 18:06

Adding Inventory Item via code

Postby gwills » 27 Oct 2011, 18:16

Is it possible to add items to a map (similar to how dragInventoryItem does it) via code.

The use case is that I want to store the details of inventory items that were added to a users "home" map in a DB in case the maps template changes and we want to recreate the map with the inventory items.

Bascially what I'd love is a kind of "addInventoryItem" method. Is anything like this possible?
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 29 Oct 2011, 05:01

At the moment this is feature is not available.
We will evaluate it for future releases.
Paolo Bax
The SmartFoxServer Team
gwills
Posts: 5
Joined: 27 Oct 2011, 18:06

Postby gwills » 29 Oct 2011, 14:45

Thanks bax, will make do for now storing in map file but this method would be very handy.

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 34 guests