Added Quest Replacement for BR

This commit is contained in:
PRO100KatYT
2022-01-09 12:49:56 +01:00
parent a844d6d651
commit e703965a9a
4 changed files with 102 additions and 3 deletions

View File

@@ -1652,10 +1652,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/SetPinnedQuests", async (re
res.end();
});
// Replace STW Quests
// Replace Daily Quests
express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", async (req, res) => {
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
var ApplyProfileChanges = [];
@@ -1664,6 +1664,14 @@ express.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", asyn
var QueryRevision = req.query.rvn || -1;
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 randomNumber = Math.floor(Math.random() * QuestIDS.length);