question

Jung Ho June avatar image
Jung Ho June asked

Sometime Virtual currency minus

Sometime Virtual currency minus

whats this happen?

i made Gacha Root Box which can purchase virtual currency

and there's 2 sec cooltime for wait server request

but still sometimes virtual currency can be minus

how can i prevent this?

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

You may implement a Cloud Script/Azure Function to handle the purchase action, where you may also add verification code to check the Virtual Currency before the purchase.

May I have your title ID and a player ID that has this issue?

1 comment
10 |1200

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

Jung Ho June avatar image Jung Ho June commented ·

i already recovered player's virtual currency.

my solution is just caching the VC value from result inventory data to

local client variable and compare with local variable first.

i used the api PurchaseItem(int currency) i thought it has same effect with

my own custom cloud script

0 Likes 0 ·

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.