diff --git a/Config/config.ini b/Config/config.ini index f1c3124..badffb5 100644 --- a/Config/config.ini +++ b/Config/config.ini @@ -7,6 +7,8 @@ displayName=LawinServer [Profile] # If this is set to true, every BR and StW seasonal quest will be on complete. Works for Battle Royale from Season 3 to Season 21 and for Save the World from Season 2 to Season X. bCompletedSeasonalQuests=false +# If this is set to true, you will receive all founder's pack rewards upon logging into StW if the account didn't claim them yet. +bGrantFoundersPacks=false # If this is set to true, all Save the World events will be displayed in lobby. bAllSTWEventsActivated=false diff --git a/README.md b/README.md index 04c7f0f..3bb8314 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ - CloudStorage and ClientSettings (Settings saving) - Llama purchasing and opening with random loot - Every Hero, Weapon, Defender and Resource +- All Founder's Packs rewards screen (togglable in the config) - Crafting items in Backpack - Transferring items to and from Storage - Modifying and upgrading Schematic perks diff --git a/profiles/campaign.json b/profiles/campaign.json index dfc8621..580d6db 100644 --- a/profiles/campaign.json +++ b/profiles/campaign.json @@ -375,27 +375,6 @@ }, "quantity": 1 }, - "2515b182-e065-4521-9616-e27bf092fbcd": { - "templateId": "Quest:foundersquest_getrewards_0_1", - "attributes": { - "level": -1, - "item_seen": false, - "completion_questcomplete_outpostquest_t1_l1": 0, - "sent_new_notification": true, - "challenge_bundle_id": "", - "xp_reward_scalar": 1, - "challenge_linked_quest_given": "", - "quest_pool": "", - "quest_state": "Claimed", - "last_state_change_time": "2020-01-25T19:10:38.959Z", - "challenge_linked_quest_parent": "", - "max_level_bonus": 0, - "completion_questcomplete_homebaseonboardingafteroutpost": 1, - "xp": 0, - "favorite": false - }, - "quantity": 1 - }, "7b37f893-1b40-43ba-b4a6-81eb177f3939": { "templateId": "Worker:workerbasic_uc_t01", "attributes": { @@ -3905,27 +3884,6 @@ }, "quantity": 1 }, - "4ccba65b-7221-4391-b562-8e4098693876": { - "templateId": "Quest:foundersquest_getrewards_1_2", - "attributes": { - "level": -1, - "item_seen": false, - "completion_questcomplete_outpostquest_t1_l1": 0, - "sent_new_notification": true, - "challenge_bundle_id": "", - "xp_reward_scalar": 1, - "challenge_linked_quest_given": "", - "quest_pool": "", - "quest_state": "Claimed", - "last_state_change_time": "2020-01-25T19:10:49.382Z", - "challenge_linked_quest_parent": "", - "max_level_bonus": 0, - "completion_questcomplete_homebaseonboardingafteroutpost": 1, - "xp": 0, - "favorite": false - }, - "quantity": 1 - }, "6441c8bd-4f42-4cf8-baac-a07e67d5e6cd": { "templateId": "Quest:genericquest_killmistmonsters_repeatable", "attributes": { @@ -6615,26 +6573,6 @@ }, "quantity": 1 }, - "9dc86b38-6b37-4e98-a7be-38dc30275821": { - "templateId": "Quest:foundersquest_getrewards_2_3", - "attributes": { - "level": -1, - "item_seen": false, - "completion_questcomplete_outpostquest_t1_l1": 1, - "sent_new_notification": false, - "challenge_bundle_id": "", - "xp_reward_scalar": 1, - "challenge_linked_quest_given": "", - "quest_pool": "", - "quest_state": "Claimed", - "last_state_change_time": "2020-07-13T19:16:00.695Z", - "challenge_linked_quest_parent": "", - "max_level_bonus": 0, - "xp": 0, - "favorite": false - }, - "quantity": 1 - }, "44a35ac7-b556-4b36-af64-4999a3c716c9": { "templateId": "Quest:reactivequest_supplyrun", "attributes": { diff --git a/profiles/profile0.json b/profiles/profile0.json index 813bdc8..8225d94 100644 --- a/profiles/profile0.json +++ b/profiles/profile0.json @@ -145,20 +145,6 @@ }, "quantity": 1 }, - "agresdarti48ut387t8bgbgfuckaa": { - "templateId": "Quest:FoundersQuest_GetRewards_0_1", - "attributes": { - "quest_state": "Claimed", - "last_state_change_time": "2017-08-29T21:05:57.087Z", - "max_level_bonus": 0, - "level": -1, - "item_seen": false, - "xp": 0, - "sent_new_notification": true, - "favorite": false - }, - "quantity": 1 - }, "1fakfgrughfaitcudghudhgdughdughudhgug": { "templateId": "gadget:g_commando_goincommando", "attributes": { @@ -655,21 +641,6 @@ }, "quantity": 1 }, - "2d4ea84f-b6d7-42dc-b193-98bb9a31b3aa": { - "templateId": "Quest:foundersquest_getrewards_0_1", - "attributes": { - "quest_state": "Claimed", - "last_state_change_time": "2017-08-29T21:19:45.200Z", - "max_level_bonus": 0, - "completion_questcomplete_homebaseonboardingafteroutpost": 1, - "level": -1, - "item_seen": false, - "xp": 0, - "sent_new_notification": true, - "favorite": false - }, - "quantity": 1 - }, "d3fa9aa6-df5f-406d-ac40-e884e6b832f3": { "templateId": "Worker:managertrainer_uc_t01", "attributes": { diff --git a/responses/Campaign/rewards.json b/responses/Campaign/rewards.json new file mode 100644 index 0000000..a2e77ce --- /dev/null +++ b/responses/Campaign/rewards.json @@ -0,0 +1,1160 @@ +{ + "author": "This list was created by PRO100KatYT", + "catalog": { + "f5c0e8ab6c9a4530999041e89e9b6934": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + } + ] + }, + "9aa9f44cd8c24652953a1b204755b193": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + } + ] + }, + "e2f25dae43604a839dd6f2c21b675d5e": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_0_1", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_1", + "quantity": 1 + } + ] + }, + "d2da86026c71429a9cf5e76dfd89a1d3": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_3_4", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_chooseherobundle", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_4", + "quantity": 1 + } + ] + }, + "e852b1940299435884365cec7dc3a608": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_4_5", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_herobundle_nochoice", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_5", + "quantity": 1 + } + ] + }, + "35759d71512b47e5b2825669f1d9166a": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + } + ] + }, + "c8319a037f9840e8b7549de480efb9c7": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_0_1", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_1", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + } + ] + }, + "f05c43f7c1d24f5fbb1a6fa5a5a60edb": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_3_4", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_chooseherobundle", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_4", + "quantity": 1 + } + ] + }, + "57f0419c4e4a4ea4858b2f37a98d5315": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_3_4", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_chooseherobundle", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_4", + "quantity": 1 + } + ] + }, + "41134f4ff35a45a4923604cbb15e487d": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_0_1", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_1", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + } + ] + }, + "85125898f3914946a9443bcce4667660": { + "rewards": [ + { + "templateId": "Quest:foundersquest_getrewards_0_1", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_1_2", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_2_3", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_getrewards_3_4", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_chooseherobundle", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_1", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_2", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_3", + "quantity": 1 + }, + { + "templateId": "Token:founderspack_4", + "quantity": 1 + } + ] + } + }, + "quest": { + "quest:foundersquest_chooseherobundle": { + "rewards": [], + "selectableRewards": [ + { + "rewards": [ + { + "templateId": "Hero:hid_constructor_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + } + ] + }, + { + "rewards": [ + { + "templateId": "Hero:hid_ninja_starsassassin_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + } + ] + }, + { + "rewards": [ + { + "templateId": "Hero:hid_outlander_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + } + ] + }, + { + "rewards": [ + { + "templateId": "Hero:hid_commando_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_lmg_drum_founders_sr_ore_t01", + "quantity": 1 + } + ] + } + ] + }, + "quest:foundersquest_constructor_weaponupgrade_sr": { + "rewards": [ + { + "templateId": "Schematic:sid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_constructor_weaponupgrade_vr": { + "rewards": [ + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_sr", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_vr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_0_1": { + "rewards": [ + { + "templateId": "DailyRewardScheduleToken:founderspackdailyrewardtoken", + "quantity": 7 + }, + { + "templateId": "HomebaseBannerIcon:foundertier1banner1", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier1banner2", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier1banner3", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier1banner4", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_1_2": { + "rewards": [ + { + "templateId": "AccountResource:voucher_cardpack_bronze", + "quantity": 5 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost", + "quantity": 10 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost_gift", + "quantity": 10 + }, + { + "templateId": "Token:accountinventorybonus", + "quantity": 50 + }, + { + "templateId": "Hero:hid_commando_grenadegun_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_guntough_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_hammertank_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_rushbase_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_slashtail_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_punchphase_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_zoneharvest_r_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_auto_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_standard_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_sniper_boltaction_scope_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Trap:tid_floor_spikes_r_t01", + "quantity": 5 + }, + { + "templateId": "Weapon:wid_pistol_rapid_founders_vr_ore_t01", + "quantity": 1 + }, + { + "templateId": "DailyRewardScheduleToken:founderspackdailyrewardtoken", + "quantity": 21 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner1", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner2", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner3", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner4", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner5", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier2banner6", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_auto_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_standard_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_sniper_boltaction_scope_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_floor_spikes_r_t01", + "quantity": 5 + }, + { + "templateId": "Schematic:sid_pistol_rapid_founders_vr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_2_3": { + "rewards": [ + { + "templateId": "ConsumableAccountItem:smallxpboost", + "quantity": 10 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost_gift", + "quantity": 10 + }, + { + "templateId": "Token:accountinventorybonus", + "quantity": 50 + }, + { + "templateId": "Buff:partyxpbuff", + "quantity": 1 + }, + { + "templateId": "Token:founderchatunlock", + "quantity": 1 + }, + { + "templateId": "DailyRewardScheduleToken:founderspackdailyrewardtoken", + "quantity": 14 + }, + { + "templateId": "ConsumableAccountItem:foundersfriendcode", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier3banner1", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier3banner2", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier3banner3", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier3banner4", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier3banner5", + "quantity": 1 + }, + { + "templateId": "Defender:did_defenderassault_founders_vr_t01", + "quantity": 1 + }, + { + "templateId": "Defender:did_defenderpistol_founders_vr_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_3_4": { + "rewards": [ + { + "templateId": "AccountResource:voucher_cardpack_bronze", + "quantity": 10 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost", + "quantity": 20 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost_gift", + "quantity": 20 + }, + { + "templateId": "Token:worldinventorybonus", + "quantity": 10 + }, + { + "templateId": "Token:accountinventorybonus", + "quantity": 100 + }, + { + "templateId": "DailyRewardScheduleToken:founderspackdailyrewardtoken", + "quantity": 42 + }, + { + "templateId": "ConsumableAccountItem:foundersfriendcode", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier4banner1", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier4banner2", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier4banner3", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier4banner4", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier4banner5", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_4_5": { + "rewards": [ + { + "templateId": "AccountResource:voucher_cardpack_bronze", + "quantity": 10 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost", + "quantity": 40 + }, + { + "templateId": "ConsumableAccountItem:smallxpboost_gift", + "quantity": 40 + }, + { + "templateId": "Token:worldinventorybonus", + "quantity": 10 + }, + { + "templateId": "Token:accountinventorybonus", + "quantity": 100 + }, + { + "templateId": "Weapon:wid_assault_auto_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "ConversionControl:cck_hero_core_unlimited_vr", + "quantity": 1 + }, + { + "templateId": "ConversionControl:cck_melee_core_unlimited_vr", + "quantity": 1 + }, + { + "templateId": "ConversionControl:cck_ranged_core_unlimited_vr", + "quantity": 1 + }, + { + "templateId": "ConversionControl:cck_worker_core_unlimited_vr", + "quantity": 1 + }, + { + "templateId": "DailyRewardScheduleToken:founderspackdailyrewardtoken", + "quantity": 42 + }, + { + "templateId": "ConsumableAccountItem:foundersfriendcode", + "quantity": 2 + }, + { + "templateId": "HomebaseBannerIcon:foundertier5banner1", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier5banner2", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier5banner3", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier5banner4", + "quantity": 1 + }, + { + "templateId": "HomebaseBannerIcon:foundertier5banner5", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_auto_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_preorder": { + "rewards": [ + { + "templateId": "Weapon:wid_launcher_rocket_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_launcher_grenade_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_break_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Ammo:ammodatashells", + "quantity": 500 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_getrewards_sony": { + "rewards": [ + { + "templateId": "Hero:hid_commando_sony_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_sony_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_sony_r_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_sony_r_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_herobundle_nochoice": { + "rewards": [ + { + "templateId": "Hero:hid_constructor_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_lmg_drum_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_herobundle_noconstructor": { + "rewards": [ + { + "templateId": "Hero:hid_ninja_starsassassin_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_lmg_drum_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_herobundle_noninja": { + "rewards": [ + { + "templateId": "Hero:hid_constructor_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_lmg_drum_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_herobundle_nooutlander": { + "rewards": [ + { + "templateId": "Hero:hid_constructor_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_commando_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_assault_lmg_drum_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_herobundle_nosoldier": { + "rewards": [ + { + "templateId": "Hero:hid_constructor_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_constructor_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_shotgun_tactical_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_constructor_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_shotgun_tactical_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_ninja_starsassassin_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersm_sr_t01", + "quantity": 1 + }, + { + "templateId": "Hero:hid_outlander_008_foundersf_sr_t01", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_r_ore_t01", + "quantity": 1 + }, + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_vr", + "quantity": 1 + }, + { + "templateId": "Weapon:wid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_ninja_weaponupgrade_sr": { + "rewards": [ + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_ninja_weaponupgrade_vr": { + "rewards": [ + { + "templateId": "Quest:foundersquest_ninja_weaponupgrade_sr", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_edged_sword_medium_laser_founders_vr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_outlander_weaponupgrade_sr": { + "rewards": [ + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_outlander_weaponupgrade_vr": { + "rewards": [ + { + "templateId": "Quest:foundersquest_outlander_weaponupgrade_sr", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_pistol_autoheavy_founders_vr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_soldier_weaponupgrade_sr": { + "rewards": [ + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_sr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + }, + "quest:foundersquest_soldier_weaponupgrade_vr": { + "rewards": [ + { + "templateId": "Quest:foundersquest_soldier_weaponupgrade_sr", + "quantity": 1 + }, + { + "templateId": "Schematic:sid_assault_surgical_drum_founders_vr_ore_t01", + "quantity": 1 + } + ], + "selectableRewards": [] + } + } +} \ No newline at end of file diff --git a/responses/Campaign/survivorData.json b/responses/Campaign/survivorData.json index f9e5c6a..57faa7d 100644 --- a/responses/Campaign/survivorData.json +++ b/responses/Campaign/survivorData.json @@ -1,4 +1,5 @@ { + "author": "This list was created by PRO100KatYT", "fixedAttributes": { "Worker:managerdoctor_c_t01": { "managerSynergy": "Homebase.Manager.IsDoctor" diff --git a/structure/mcp.js b/structure/mcp.js index 7a0b513..6b2f416 100644 --- a/structure/mcp.js +++ b/structure/mcp.js @@ -914,6 +914,53 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", async (r QuestCount += 1; } } + + // Grant completed founder's pack quests. + if (config.Profile.bGrantFoundersPacks == true) { + var QuestsToGrant = [ + "Quest:foundersquest_getrewards_0_1", + "Quest:foundersquest_getrewards_1_2", + "Quest:foundersquest_getrewards_2_3", + "Quest:foundersquest_getrewards_3_4", + "Quest:foundersquest_chooseherobundle", + "Quest:foundersquest_getrewards_4_5", + "Quest:foundersquest_herobundle_nochoice" + ] + + for (var i in QuestsToGrant) { + var bSkipThisQuest = false; + for (var key in profile.items) { + if (profile.items[key].templateId.toLowerCase() == QuestsToGrant[i].toLowerCase()) { + bSkipThisQuest = true; + } + } + if (bSkipThisQuest == true) { + continue; + } + + var ItemID = functions.MakeID(); + var Item = { + "templateId": QuestsToGrant[i], + "attributes": { + "creation_time": "min", + "quest_state": "Completed", + "last_state_change_time": new Date().toISOString(), + "level": -1, + "sent_new_notification": true, + "quest_rarity": "uncommon", + "xp_reward_scalar": 1 + }, + "quantity": 1 + } + profile.items[ItemID] = Item + ApplyProfileChanges.push({ + "changeType": "itemAdded", + "itemId": ItemID, + "item": Item + }) + StatChanged = true; + } + } } if (req.query.profileId == "athena") { @@ -1852,14 +1899,132 @@ express.post("/fortnite/api/game/v2/profile/*/client/AssignWorkerToSquadBatch", // Claim STW quest reward express.post("/fortnite/api/game/v2/profile/*/client/ClaimQuestReward", async (req, res) => { const profile = require(`./../profiles/${req.query.profileId || "campaign"}.json`); + const common_core = require("./../profiles/common_core.json"); + const theater0 = require("./../profiles/theater0.json"); + var Rewards = require("./../responses/Campaign/rewards.json").quest; // do not change any of these or you will end up breaking it var ApplyProfileChanges = []; + var MultiUpdate = []; + var Notifications = []; var BaseRevision = profile.rvn || 0; var QueryRevision = req.query.rvn || -1; var StatChanged = false; + var TheaterStatChanged = false; + var CommonCoreStatChanged = false; if (req.body.questId) { + var questTemplateId = []; + for (var key in profile.items) { + if (req.body.questId.toLowerCase() == key.toLowerCase()) { + questTemplateId = profile.items[key].templateId.toLowerCase(); + } + } + + if (questTemplateId && Rewards.hasOwnProperty(questTemplateId)) { + if (req.body.selectedRewardIndex != -1 && Rewards[questTemplateId].selectableRewards) { + Rewards = Rewards[questTemplateId].selectableRewards[req.body.selectedRewardIndex].rewards; + } + else { + Rewards = Rewards[questTemplateId].rewards; + } + + MultiUpdate.push({ + "profileRevision": theater0.rvn || 0, + "profileId": "theater0", + "profileChangesBaseRevision": theater0.rvn || 0, + "profileChanges": [], + "profileCommandRevision": theater0.commandRevision || 0, + }) + + if (req.query.profileId == "campaign") { + MultiUpdate.push({ + "profileRevision": common_core.rvn || 0, + "profileId": "common_core", + "profileChangesBaseRevision": common_core.rvn || 0, + "profileChanges": [], + "profileCommandRevision": common_core.commandRevision || 0, + }) + } + + Notifications.push({ + "type": "questClaim", + "primary": true, + "questId": questTemplateId, + "loot": { + "items": [] + } + }) + + for (var i in Rewards) { + const ID = functions.MakeID(); + const templateId = Rewards[i].templateId.toLowerCase(); + + if (templateId.startsWith("weapon:") || templateId.startsWith("trap:") || templateId.startsWith("ammo:")) { + var Item = {"templateId":Rewards[i].templateId,"attributes":{"clipSizeScale": 0,"loadedAmmo": 999,"level": 1,"alterationDefinitions": [],"baseClipSize": 999,"durability": 375,"itemSource": "", "item_seen": false},"quantity":Rewards[i].quantity}; + + theater0.items[ID] = Item; + + MultiUpdate[0].profileChanges.push({ + "changeType": "itemAdded", + "itemId": ID, + "item": theater0.items[ID] + }) + + Notifications[0].loot.items.push({ + "itemType": Rewards[i].templateId, + "itemGuid": ID, + "itemProfile": "theater0", + "quantity": Rewards[i].quantity + }) + + TheaterStatChanged = true; + } + else if (req.query.profileId == "campaign" && (templateId.startsWith("homebasebannericon:") || templateId == "token:founderchatunlock")) { + var Item = {"templateId":Rewards[i].templateId,"attributes":{"max_level_bonus":0,"level":1,"item_seen":false,"xp":0,"favorite":false},"quantity":Rewards[i].quantity}; + + common_core.items[ID] = Item; + + MultiUpdate[1].profileChanges.push({ + "changeType": "itemAdded", + "itemId": ID, + "item": common_core.items[ID] + }) + + Notifications[0].loot.items.push({ + "itemType": Rewards[i].templateId, + "itemGuid": ID, + "itemProfile": "common_core", + "quantity": Rewards[i].quantity + }) + + CommonCoreStatChanged = true; + } + else { + var Item = {"templateId":Rewards[i].templateId,"attributes":{"legacy_alterations":[],"max_level_bonus":0,"level":1,"refund_legacy_item":false,"item_seen":false,"alterations":["","","","","",""],"xp":0,"refundable":false,"alteration_base_rarities":[],"favorite":false},"quantity":Rewards[i].quantity}; + + if (templateId.startsWith("quest:")) { + Item.attributes.quest_state = "Active"; + } + + profile.items[ID] = Item; + + ApplyProfileChanges.push({ + "changeType": "itemAdded", + "itemId": ID, + "item": profile.items[ID] + }) + + Notifications[0].loot.items.push({ + "itemType": Rewards[i].templateId, + "itemGuid": ID, + "itemProfile": req.query.profileId, + "quantity": Rewards[i].quantity + }) + } + } + } + profile.items[req.body.questId].attributes.quest_state = "Claimed"; profile.items[req.body.questId].attributes.last_state_change_time = new Date().toISOString(); StatChanged = true; @@ -1869,6 +2034,24 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClaimQuestReward", async (r profile.rvn += 1; profile.commandRevision += 1; + if (TheaterStatChanged == true) { + theater0.rvn += 1; + theater0.commandRevision += 1; + MultiUpdate[0].profileRevision = theater0.rvn || 0; + MultiUpdate[0].profileCommandRevision = theater0.commandRevision || 0; + + fs.writeFileSync("./profiles/theater0.json", JSON.stringify(theater0, null, 2)); + } + + if (CommonCoreStatChanged == true) { + common_core.rvn += 1; + common_core.commandRevision += 1; + MultiUpdate[1].profileRevision = common_core.rvn || 0; + MultiUpdate[1].profileCommandRevision = common_core.commandRevision || 0; + + fs.writeFileSync("./profiles/common_core.json", JSON.stringify(common_core, null, 2)); + } + ApplyProfileChanges.push({ "changeType": "itemAttrChanged", "itemId": req.body.questId, @@ -1899,8 +2082,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClaimQuestReward", async (r "profileId": req.query.profileId || "campaign", "profileChangesBaseRevision": BaseRevision, "profileChanges": ApplyProfileChanges, + "notifications": Notifications, "profileCommandRevision": profile.commandRevision || 0, "serverTime": new Date().toISOString(), + "multiUpdate": MultiUpdate, "responseVersion": 1 }) res.end();