question

Jung Ho June avatar image
Jung Ho June asked

In Game Post mail to give item to player

how can i make InGamePostmail that player can claim kind of reward?

2 comments
10 |1200

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

Citrus Yan avatar image Citrus Yan commented ·

May I know more details about this "InGamePostmail" feature you're trying to implement? Like what's the basic flow you're designing, so that we provide proper suggestions on how to use PlayFab to achieve that, thanks!

0 Likes 0 ·
Jung Ho June avatar image Jung Ho June Citrus Yan commented ·

give InGame item such as virtucal currency to player when claim by clicking the inbox mail button. that InGameItem comes from my manual control.

0 Likes 0 ·

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Here is one way to do it:

1. Put item id(s) a player can claim in its Player Internal Data.

2. Send In-Game Mail to the player with item(s) waiting to be claimed.

3. When clicking the "claim" button, execute a cloudscript function with the item id(s), and in the function, first check whether the player has corresponding item id(s) in its Player Internal Data, if so, grant him the item(s) and erase the item id(s) from Internal Data; else, return "claim failured".

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.