question

xigmasuji avatar image
xigmasuji asked

economy v2 - how do we grant items to players from an authoritative server

we want to give player with some initial deposite. it was available in the earlier version. also in certain event we want to grant items to player.

any alternatives?

In-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

Also, we recently added an Add inventory item (V2) action, so you should be able to grant the initial items directly from the automation system without having to use an Azure Function. You'll need to enable Economy V2 before the action will appear in the dropdown.

6703-image.png


image.png (107.2 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Neils Shi avatar image
Neils Shi answered

You can use the API AddInventoryItems or ExecuteInventoryOperations, it allows your server to add items to player’s PlayFab inventory. And if you want to give new players some initial deposit in Economy v2, you can create a rule which triggered by the event “player_added_title”, then set the action that adding Economy v2 items via calling AddInventoryItems or ExecuteInventoryOperations API in Azure Function.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.