Quest

When a user finishes a quest and gets a reward, call the following method.

Finishing a Quest

To collect data of players and the quests they choose to play, call the PlayQuest method when the player receives a quest or finishes a quest as shown below. PlayQuest method’s quest_status value should be set as questStatus.Accept, questStatus.Clear, etc by how much progress has been made. For more details, please refer to the TPStashEvent.PlayQuest page.

PlayQuest

player_uuid

{ player_uuid }

character_uuid

TentuPlayKeyword.DUMMY_CHARACTER_ID

quest_slug

{ Who wants to be a millionaire? }

quest_status

questStatus.Clear

quest_category_slug

{ Challenge Quest }

Quest Rewards

  • If the player receives currency as a reward for completing a quest, call the GetCurrency method in the way shown below.

    GetCurrency

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    currency_slug

    { Gold }

    currency_quantity

    100000

    currency_total_quantity

    99999999

    from_entity

    entity.PlayQuest

    from_category_slug

    { Challenge Quest }

    from_slug

    { Who wants to be a millionaire? }

  • If, as a reward for finishing a quest, the player receives an Object following specific odds, call the methods GetRandomBox, OpenRandomBox, and Get{ Object Type }. The example below is of a hypothetical situation where the player receives Equipment and therefore calls the GetEquipment method.

    GetRandomBox

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    item_slug

    { Random Box }

    item_quantity

    1

    from_entity

    entity.PlayQuest

    from_category_slug

    { Challenge Quest }

    from_slug

    { Who wants to be a millionaire? }

    OpenRandomBox

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    item_slug

    { Random Box }

    item_quantity

    1

    GetEquipment

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    item_slug

    { 1 Star Robe of Piece }

    item_quantity

    1

    from_entity

    entity.OpenRandomBox

    from_category_slug

    { Random Box }

    from_slug

    { Random Box }