Quest
Call the following methods when a user accomplishes a quest and gets a reward.
Quest completed
Call PlayQuest
when the player receives a quest or completes a quest to collect data of players and the quests they choose to play.
Put a pre-defined enum value in |
Method | Parameter | Type | Required | Notes |
---|---|---|---|---|
player_uuid |
string |
Required |
||
character_uuid |
string |
Required |
|
|
quest_slug |
string |
Required |
|
|
quest_status |
string |
Required |
|
|
quest_category_slug |
string |
Optional |
|
Quest rewarded
Call the following methods when a player is given a reward for completing a quest depending on the reward type.
-
If the player receives a currency as a reward, call
GetCurrency
.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
TentuPlayKeyword._DUMMY_CHARACTER_ID_
currency_slug
string
Required
gold
currency_quantity
float
Required
100000
currency_total_quantity
float
Optional
99999999
from_entity
Optional
entity.PlayQuest
from_category_slug
string
Optional
Challenge Quest
from_slug
string
Optional
Who wants to be a millionaire?
-
If a player receives an object as a reward by a certain probability, call
GetRandomBox
,OpenRandomBox
, andGet{ Object }
depending on the object type.The following example assumes that a user has acquired an equipment as a reward for completing a quest.
Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
TentuPlayKeyword._DUMMY_CHARACTER_ID_
item_slug
string
Required
Random Box
item_quantity
float
Required
1
from_entity
Optional
entity.PlayQuest
from_category_slug
string
Optional
Challenge Quest
from_slug
string
Optional
Who wants to be a millionaire?
Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
TentuPlayKeyword._DUMMY_CHARACTER_ID_
item_slug
string
Required
Random Box
item_quantity
float
Required
1
Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
TentuPlayKeyword._DUMMY_CHARACTER_ID_
item_slug
string
Required
1 Star Robe of Piece
item_quantity
float
Required
1
from_entity
Optional
entity.OpenRandomBox
from_category_slug
string
Optional
Random Box
from_slug
string
Optional
Random Box