TPStashEvent.LevelUpPet
public int LevelUpPet(
string player_uuid,
string character_uuid,
string item_slug,
int item_level_to,
[int? item_level_from=null]
);
Description
LevelUpPet collects the events that occur when the character raises a pet’s level.
|
It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:
|
Parameters
Name | Description | Required | ||
---|---|---|---|---|
player_uuid |
Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID |
Required |
||
character_uuid |
Player’s character’s unique lD
|
Required |
||
item_slug |
Unique identifier of the item (for example, "weapon_sword_dagger" and "shield_kite_rare") |
Required |
||
item_level_to |
Character’s item’s level after the level up |
Required |
||
item_level_from |
Character’s item’s level before the level up |
Optional |