question

modny-games avatar image
modny-games asked

Can the user give a timer when purchasing an item?

Hi.

I have a few questions.

in my game, If a user purchases an item, it can be used after a certain amount of time.

1. Can I save time in Catalog Item?

2. Can I be registered in the user inventory after that time?

Help me. Plz

Player Inventory
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

·
Hernando avatar image
Hernando answered

PlayFab does not directly provide this feature for now.

You can put a timestamp as the item instance data via Server. UpdateUserInventoryItemCustomData in the CloudScript when the user purchases an item. And check the timestamp when the player sends a consuming request.

For more security, you can also store the info of the item to be unlocked and the timestamp into the User ReadOnly Data, and not actually add the item to the player inventory until the right amount of time has elapsed.

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.