Skip to main content

Rewards Sample

The LI PASS reward function can automatically deliver in-game rewards to players, when they link their game accounts to LI PASS under specified conditions.

The following scenarios help users better understand the usage and system logic of the reward function.

The linking reward is provided to players who link their game account to LI PASS for the first time. Since the reward logic is already implemented in the LI PASS Account Center, the game client only needs to set extraJson using the SetRewardExtraJson method.

When logging in with an account that has not been linked to LI PASS:

  1. The LI PASS linking popup will appear inside Account Center, guiding the player to link to LI PASS. Image: Link 1

  2. The player clicks Go to open up the Link Account page, where the required imformation can be entered. Image: Link 2

  3. After completing the LI PASS account link, a Linked successfully popup will be shown. Image: Link 3

  4. The link rewards will be sent, and players can check their in-game mailboxes to receive the rewards.

First login rewards

The first login reward is for players who register for an LI PASS and successfully log into the game for the first time.

The LI PASS resources include embedded logic to determine whether a player is eligible for this reward. Developers can directly call SetRewardExtraJson then followed by SendBindReward after a player enters the lobby with a newly created charater. Eligible players will automatically receive their first login reward in their in-game mailbox.

Image