I want to refresh a certain currency at 12 midnight server time. Is that possible?
I want to refresh a certain currency at 12 midnight server time. Is that possible?
You can create a CloudScript function that calls the server API AddUserVirtualCurrency on CloudScrip, then use PlayFab Scheduled Task to run the action to execute this function to implement this feature. Please navigate to the docs -- Scheduled tasks quickstart for the quick start of using Scheduled Tasks with CloudScript. Besides, there is a sample of RegeneratingCurrency on our sample page. You can check the CloudScript code in this sample for references.
2 People are following this question.