mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Added Quest Replacement for BR
This commit is contained in:
12
index.js
12
index.js
@@ -1652,10 +1652,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/SetPinnedQuests", async (re
|
|||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Replace STW Quests
|
// Replace Daily Quests
|
||||||
express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", async (req, res) => {
|
express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", async (req, res) => {
|
||||||
const profile = require(`./profiles/${req.query.profileId || "campaign"}.json`);
|
const profile = require(`./profiles/${req.query.profileId || "campaign"}.json`);
|
||||||
const QuestIDS = require("./responses/stwquests.json");
|
var QuestIDS = require("./responses/quests.json");
|
||||||
|
|
||||||
// do not change any of these or you will end up breaking it
|
// do not change any of these or you will end up breaking it
|
||||||
var ApplyProfileChanges = [];
|
var ApplyProfileChanges = [];
|
||||||
@@ -1664,6 +1664,14 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
|
|||||||
var QueryRevision = req.query.rvn || -1;
|
var QueryRevision = req.query.rvn || -1;
|
||||||
var StatChanged = false;
|
var StatChanged = false;
|
||||||
|
|
||||||
|
if (req.query.profileId == "profile0" || req.query.profileId == "campaign") {
|
||||||
|
QuestIDS = QuestIDS.SaveTheWorld
|
||||||
|
}
|
||||||
|
|
||||||
|
if (req.query.profileId == "athena") {
|
||||||
|
QuestIDS = QuestIDS.BattleRoyale
|
||||||
|
}
|
||||||
|
|
||||||
const NewQuestID = makeid();
|
const NewQuestID = makeid();
|
||||||
const randomNumber = Math.floor(Math.random() * QuestIDS.length);
|
const randomNumber = Math.floor(Math.random() * QuestIDS.length);
|
||||||
|
|
||||||
|
|||||||
@@ -58375,6 +58375,51 @@
|
|||||||
"favorite": false
|
"favorite": false
|
||||||
},
|
},
|
||||||
"quantity": 1
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"Quest:AthenaDaily_Outlive_Solo": {
|
||||||
|
"templateId": "Quest:AthenaDaily_Outlive_Solo",
|
||||||
|
"attributes": {
|
||||||
|
"quest_state": "Active",
|
||||||
|
"last_state_change_time": "2017-12-25T02:06:00.508Z",
|
||||||
|
"completion_complete": 0,
|
||||||
|
"max_level_bonus": 0,
|
||||||
|
"level": -1,
|
||||||
|
"item_seen": true,
|
||||||
|
"xp": 0,
|
||||||
|
"sent_new_notification": true,
|
||||||
|
"favorite": false
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"Quest:AthenaDailyQuest_InteractTreasureChest": {
|
||||||
|
"templateId": "Quest:AthenaDailyQuest_InteractTreasureChest",
|
||||||
|
"attributes": {
|
||||||
|
"quest_state": "Active",
|
||||||
|
"last_state_change_time": "2017-12-25T02:06:00.508Z",
|
||||||
|
"completion_complete": 0,
|
||||||
|
"max_level_bonus": 0,
|
||||||
|
"level": -1,
|
||||||
|
"item_seen": true,
|
||||||
|
"xp": 0,
|
||||||
|
"sent_new_notification": true,
|
||||||
|
"favorite": false
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"Quest:AthenaDailyQuest_PlayerElimination": {
|
||||||
|
"templateId": "Quest:AthenaDailyQuest_PlayerElimination",
|
||||||
|
"attributes": {
|
||||||
|
"quest_state": "Active",
|
||||||
|
"last_state_change_time": "2017-12-25T02:06:00.508Z",
|
||||||
|
"completion_complete": 0,
|
||||||
|
"max_level_bonus": 0,
|
||||||
|
"level": -1,
|
||||||
|
"item_seen": true,
|
||||||
|
"xp": 0,
|
||||||
|
"sent_new_notification": true,
|
||||||
|
"favorite": false
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
|
|||||||
47
responses/quests.json
Normal file
47
responses/quests.json
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
],
|
||||||
|
"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"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1 +0,0 @@
|
|||||||
["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"]
|
|
||||||
Reference in New Issue
Block a user