tmichael suggested an idea · Oct 19, 2016 at 05:09 PM · CloudScriptapisPlayer Inventory
There's actually multiple walls here with multiple solutions... allowing PurchaseItem from the server api is just one of them.
core problem:
- I need store item customdata to be copied over to the inventory item customdata on grant
solutions:
- call a client.PurchaseItem that has a new parameter to copy over the customdata for me
- call a cloudscript that calls a new server.PurchaseItem and then copies over the customdata
- call a cloudscript that calls a new server.GetStoreItems and does all the purchase item stuff manually and copies over the customdata
the best hack I can figure out in the meantime:
- call a cloudscript that uses an http.request to call the client.PurchaseItem api followed by copying over the customdata
We would love to know what you need. Submit your ideas and upvote others to help us prioritize.
server.EvaluateRandomResultTableRequest() to accept multiple TableIds.
ClientAPI for changing DisplayName of inventory ItemInstances
Enhance results from GrantItemsToUser().
Is Friend Online ? Provide API to get last player activity timestamp.
Return all ResultTables with GetRandomResultTables().
Update the Server API to allow UpdateUserTitleDisplayName
Add PurchaseItem to the Server API
Improve GrantItemsToUsers to support item grants from multiple catalogs in a single call