question

Dhruv Sharma avatar image
Dhruv Sharma asked

Trading inside game (Trade APIs & purchase APIs)

While trading between 2 players from APIs, the items can be successfully tradeable from one player to another however the virtual currency is not subtracting or adding automatically in this case. So should I have to add & subtract the virtual currency by using the Add virtual user currency API & subtract virtual user currency API along with the trade APIs to do that or is there any other way of doing the same?

apisTrading
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

·
Seth Du avatar image
Seth Du answered

Trade only accepts Item instance exchange. A workaround is to create a stackable container in the catalog that contains VC. For example, Bundle A contains 1 gold.

You may implement a Cloud Script/ Azure Function that will automatically transfer VC to a bunch of containers for players to trade with other items.

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.