Merge pull request #58 from PRO100KatYT/main

stw stuff and one thing for both modes
This commit is contained in:
Lawin0129
2022-02-01 16:57:16 +00:00
committed by GitHub
3 changed files with 276 additions and 81 deletions

View File

@@ -1704,7 +1704,7 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
var randomNumber = Math.floor(Math.random() * QuestIDS.length);
for (var key in profile.items) {
while (QuestIDS[randomNumber].toLowerCase() == profile.items[key].templateId.toLowerCase()) {
while (QuestIDS[randomNumber].templateId.toLowerCase() == profile.items[key].templateId.toLowerCase()) {
randomNumber = Math.floor(Math.random() * QuestIDS.length);
}
}
@@ -1715,10 +1715,9 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
delete profile.items[req.body.questId];
profile.items[NewQuestID] = {
"templateId": QuestIDS[randomNumber],
"templateId": QuestIDS[randomNumber].templateId,
"attributes": {
"creation_time": new Date().toISOString(),
"completion_complete": 0,
"level": -1,
"item_seen": false,
"playlists": [],
@@ -1739,6 +1738,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
"quantity": 1
};
for (var objective in QuestIDS[randomNumber].objectives) {
profile.items[NewQuestID].attributes[`completion_${QuestIDS[randomNumber].objectives[objective]}`] = 0
}
StatChanged = true;
}
@@ -1766,7 +1769,7 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
Notifications.push({
"type": "dailyQuestReroll",
"primary": true,
"newQuestId": QuestIDS[randomNumber]
"newQuestId": QuestIDS[randomNumber].templateId
})
fs.writeFileSync(`./profiles/${req.query.profileId || "athena"}.json`, JSON.stringify(profile, null, 2));
@@ -1905,16 +1908,15 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", async (r
var randomNumber = Math.floor(Math.random() * QuestIDS.length);
for (var key in profile.items) {
while (QuestIDS[randomNumber].toLowerCase() == profile.items[key].templateId.toLowerCase()) {
while (QuestIDS[randomNumber].templateId.toLowerCase() == profile.items[key].templateId.toLowerCase()) {
randomNumber = Math.floor(Math.random() * QuestIDS.length);
}
}
profile.items[NewQuestID] = {
"templateId": QuestIDS[randomNumber],
"templateId": QuestIDS[randomNumber].templateId,
"attributes": {
"creation_time": new Date().toISOString(),
"completion_complete": 0,
"level": -1,
"item_seen": false,
"playlists": [],
@@ -1934,6 +1936,11 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", async (r
},
"quantity": 1
};
for (var objective in QuestIDS[randomNumber].objectives) {
profile.items[NewQuestID].attributes[`completion_${QuestIDS[randomNumber].objectives[objective]}`] = 0
}
profile.stats.attributes.quest_manager.dailyLoginInterval = new Date().toISOString();
ApplyProfileChanges.push({
@@ -6411,6 +6418,7 @@ function getTheater(req) {
try {
if (seasondata.season >= 16 || seasondata.build == 15.30 || seasondata.build == 15.40 || seasondata.build == 15.50) {
theater = theater.replace(/\/Game\//ig, "\/SaveTheWorld\/");
theater = theater.replace(/\"DataTable\'\/SaveTheWorld\//ig, "\"DataTable\'\/Game\/");
}
} catch (err) {}

View File

@@ -182,44 +182,44 @@
"slots": {
"Pickaxe": {
"items": [
"AthenaPickaxe:Pickaxe_ID_041_PajamaParty"
"AthenaPickaxe:pickaxe_id_stw001_tier_1"
]
},
"ItemWrap": {
"items": [
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
"AthenaItemWrap:Wrap_237_NeonPulse",
null
"",
"",
"",
"",
"",
"",
"",
""
]
},
"LoadingScreen": {
"items": [
"AthenaLoadingScreen:LSID_026_S4Cumulative8"
""
]
},
"Dance": {
"items": [
"AthenaDance:EID_JumpStyleDance",
"AthenaDance:EID_CrazyFeet",
"AthenaDance:EID_MechPeely",
"AthenaDance:EID_IndigoApple",
"AthenaDance:EID_RunningMan",
"AthenaDance:EID_MonteCarlo"
"AthenaDance:eid_dancemoves",
"",
"",
"",
"",
""
]
},
"MusicPack": {
"items": [
"AthenaMusicPack:MusicPack_015_GoodVibes"
""
]
},
"Backpack": {
"items": [
"AthenaBackpack:BID_168_CupidWinterMale"
"AthenaBackpack:bid_stwhero"
]
},
"Character": {
@@ -230,9 +230,9 @@
}
},
"use_count": 0,
"banner_icon_template": "brs9worldcup2019",
"banner_color_template": "defaultcolor1",
"locker_name": "",
"banner_icon_template": "SurvivalBannerStonewoodComplete",
"banner_color_template": "DefaultColor15",
"locker_name": "LawinServer",
"item_seen": false,
"favorite": false
},
@@ -413,7 +413,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 540
},
"a43eb922-b295-4482-9257-7739385e9f92": {
"templateId": "Quest:starlightquest_complete_all",
@@ -997,7 +997,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 224
},
"7a367ed2-ac89-4ca5-8bbd-3476e2b1c68a": {
"templateId": "Quest:plankertonquest_filler_3_d4",
@@ -3512,7 +3512,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 540
},
"ac278b23-e943-4ee7-ac4d-9a539c7cb5a0": {
"templateId": "Quest:challenge_holdthedoor_20",
@@ -4086,7 +4086,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 540
},
"13eb4f9d-d65e-4c3d-841f-d1de2963859b": {
"templateId": "Quest:challenge_missionaccomplished_5",
@@ -4195,7 +4195,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 540
},
"19b4591e-ed2f-4b9a-b21c-ea7bc193e236": {
"templateId": "Worker:workerbasic_vr_t01",
@@ -4654,7 +4654,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 224
},
"e245fbb8-a31e-41f8-a16e-bacd1ea6fab9": {
"templateId": "HomebaseNode:questreward_plankerton_squad_ssd4",
@@ -6107,7 +6107,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 224
},
"8211bfac-bc99-4128-a49f-3936dcec2e0d": {
"templateId": "Quest:weeklyquest_tiered_completemissionalerts_t10",
@@ -10895,7 +10895,7 @@
"xp": 0,
"favorite": false
},
"quantity": 5000
"quantity": 224
},
"06ce3df0-1405-4d1e-8d30-2a641a109afe": {
"templateId": "HomebaseNode:questreward_cannyvalley_squad_ssd2",
@@ -63093,6 +63093,30 @@
"favorite": false
},
"quantity": 1
},
"71b49db4-23f3-4a16-9bc8-9e20b7f4c3c3": {
"templateId": "Quest:outpostquest_t4_endless",
"attributes": {
"creation_time": "min",
"level": -1,
"item_seen": false,
"playlists": [],
"sent_new_notification": true,
"challenge_bundle_id": "",
"xp_reward_scalar": 1,
"challenge_linked_quest_given": "",
"quest_pool": "",
"quest_state": "Active",
"bucket": "",
"last_state_change_time": "2019-06-18T12:25:25.593Z",
"challenge_linked_quest_parent": "",
"max_level_bonus": 0,
"xp": 0,
"quest_rarity": "uncommon",
"favorite": false,
"completion_complete_outpost_4_endless": 0
},
"quantity": 1
}
},
"stats": {
@@ -63324,10 +63348,10 @@
"pinnedQuestInstances": []
},
"research_levels": {
"technology": 5000,
"fortitude": 5000,
"offense": 5000,
"resistance": 5000
"technology": 120,
"fortitude": 120,
"offense": 120,
"resistance": 120
},
"level": 309,
"xp_overflow": 0,

View File

@@ -1,47 +1,210 @@
{
"SaveTheWorld": [
"Quest:Daily_DestroyTVs",
"Quest:Daily_DestroyTransformers",
"Quest:Daily_DestroyServerRacks",
"Quest:Daily_DestroySeesaws",
"Quest:Daily_DestroyPropaneTanks",
"Quest:Daily_DestroyGnomes",
"Quest:Daily_DestroyFireTrucks",
"Quest:Daily_DestroyBears",
"Quest:Daily_DestroyArcadeMachines",
"Quest:Daily_PartyOf50",
"Quest:Daily_Mission_Specialist_TwinePeaks",
"Quest:Daily_Mission_Specialist_Stonewood",
"Quest:Daily_Mission_Specialist_Soldier",
"Quest:Daily_Mission_Specialist_Plankerton",
"Quest:Daily_Mission_Specialist_Outlander",
"Quest:Daily_Mission_Specialist_Ninja",
"Quest:Daily_Mission_Specialist_Constructor",
"Quest:Daily_Mission_Specialist_CannyValley",
"Quest:Daily_HuskExtermination_Soldier",
"Quest:Daily_HuskExtermination_Outlander",
"Quest:Daily_HuskExtermination_Ninja",
"Quest:Daily_HuskExtermination_Constructor",
"Quest:Daily_HuskExtermination_AnyHero",
"Quest:Daily_High_Priority",
"Quest:Daily_GateCrasher",
"Quest:Daily_DataRetrieval",
"Quest:Daily_ALittleVanThatCould"
{
"templateId": "Quest:Daily_DestroyArcadeMachines",
"objectives": [
"quest_reactive_destroyarcade_v4"
]
},
{
"templateId": "Quest:Daily_DestroyBears",
"objectives": [
"quest_reactive_destroybear_v3"
]
},
{
"templateId": "Quest:Daily_DestroyFireTrucks",
"objectives": [
"quest_reactive_destroyfiretruck_v2"
]
},
{
"templateId": "Quest:Daily_DestroyGnomes",
"objectives": [
"quest_reactive_destroygnome_v2"
]
},
{
"templateId": "Quest:Daily_DestroyPropaneTanks",
"objectives": [
"quest_reactive_destroypropane_v2"
]
},
{
"templateId": "Quest:Daily_DestroySeesaws",
"objectives": [
"quest_reactive_destroyseesaw_v3"
]
},
{
"templateId": "Quest:Daily_DestroyServerRacks",
"objectives": [
"quest_reactive_destroyserverrack_v2"
]
},
{
"templateId": "Quest:Daily_DestroyTransformers",
"objectives": [
"quest_reactive_destroytransform_v3"
]
},
{
"templateId": "Quest:Daily_DestroyTVs",
"objectives": [
"quest_reactive_destroytv_v2"
]
},
{
"templateId": "Quest:Daily_High_Priority",
"objectives": [
"questcollect_survivoritemdata"
]
},
{
"templateId": "Quest:Daily_HuskExtermination_AnyHero",
"objectives": [
"kill_husk"
]
},
{
"templateId": "Quest:Daily_HuskExtermination_Constructor",
"objectives": [
"kill_husk_constructor_v2"
]
},
{
"templateId": "Quest:Daily_HuskExtermination_Ninja",
"objectives": [
"kill_husk_ninja_v2"
]
},
{
"templateId": "Quest:Daily_HuskExtermination_Outlander",
"objectives": [
"kill_husk_outlander_v2"
]
},
{
"templateId": "Quest:Daily_HuskExtermination_Soldier",
"objectives": [
"kill_husk_commando_v2"
]
},
{
"templateId": "Quest:Daily_Mission_Specialist_Constructor",
"objectives": [
"complete_constructor"
]
},
{
"templateId": "Quest:Daily_Mission_Specialist_Ninja",
"objectives": [
"complete_ninja"
]
},
{
"templateId": "Quest:Daily_Mission_Specialist_Outlander",
"objectives": [
"complete_outlander"
]
},
{
"templateId": "Quest:Daily_Mission_Specialist_Soldier",
"objectives": [
"complete_commando"
]
},
{
"templateId": "Quest:Daily_PartyOf50",
"objectives": [
"questcollect_survivoritemdata_v2"
]
}
],
"BattleRoyale": [
"Quest:AthenaDaily_Outlive_Solo",
"Quest:AthenaDaily_Outlive_Squad",
"Quest:AthenaDaily_Outlive",
"Quest:AthenaDaily_PlayMatches",
"Quest:AthenaDaily_Solo_Top25",
"Quest:AthenaDaily_Squad_Top6",
"Quest:AthenaDailyQuest_InteractAmmoCrate",
"Quest:AthenaDailyQuest_InteractTreasureChest",
"Quest:AthenaDailyQuest_PlayerElimination",
"Quest:AthenaDailyQuest_PlayerEliminationAssaultRifles",
"Quest:AthenaDailyQuest_PlayerEliminationPistols",
"Quest:AthenaDailyQuest_PlayerEliminationShotguns",
"Quest:AthenaDailyQuest_PlayerEliminationSMGs",
"Quest:AthenaDailyQuest_PlayerEliminationSniperRifles"
{
"templateId": "Quest:AthenaDaily_Outlive_Solo",
"objectives": [
"daily_athena_outlive_solo_players"
]
},
{
"templateId": "Quest:AthenaDaily_Outlive_Squad",
"objectives": [
"daily_athena_outlive_squad_players_v2"
]
},
{
"templateId": "Quest:AthenaDaily_Outlive",
"objectives": [
"daily_athena_outlive_players_v3"
]
},
{
"templateId": "Quest:AthenaDaily_PlayMatches",
"objectives": [
"daily_athena_play_matches_v3"
]
},
{
"templateId": "Quest:AthenaDaily_Solo_Top25",
"objectives": [
"daily_athena_solo_top25_v2"
]
},
{
"templateId": "Quest:AthenaDaily_Squad_Top6",
"objectives": [
"daily_athena_squad_top6_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_InteractAmmoCrate",
"objectives": [
"athena_daily_loot_ammobox_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_InteractTreasureChest",
"objectives": [
"daily_athena_loot_chest_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerElimination",
"objectives": [
"athena_daily_kill_players_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerEliminationAssaultRifles",
"objectives": [
"athena_daily_kill_players_assault_rifles"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerEliminationPistols",
"objectives": [
"athena_daily_kill_players_pistol_v3"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerEliminationShotguns",
"objectives": [
"athena_daily_kill_players_shotgun_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerEliminationSMGs",
"objectives": [
"athena_daily_kill_players_smg_v2"
]
},
{
"templateId": "Quest:AthenaDailyQuest_PlayerEliminationSniperRifles",
"objectives": [
"athena_daily_kill_players_sniper_v2"
]
}
]
}