question

luitelrubin avatar image
luitelrubin asked

Number of api calls to grant items/currency

Hi,

I have a system where a player can complete a mission and is granted items, currency from the server side. I was wondering if I could this with one api call, instead of multiple api calls. Multiple api calls would be to get the mission reward data, then grant a single item, then grant the currency. Total of 3 api calls. Is there a way to reduce this?

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.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

If you are using Economy V1, the three steps are required. If you are using Economy V2, since the Currency is also an Item, you could call ExecuteInventoryOperations API to add currency and another item to the player’s inventory together.

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.