I got this script and it was supposed to be ready to use for fortnite but it doesnt even save. Any ideas why?
//DOWNTIME BYPASS
static function OnBeforeResponse(oSession: Session) {
oSession.utilDecodeResponse();
oSession.utilReplaceInResponse("DOWN", "UP");
}
//USERNAME CHANGE
static function OnBeforeResponse(oSession: Session) {
oSession.utilDecodeResponse();
oSession.utilReplaceInResponse("Username", "[EPIC] Username");
}
//FIX LOGIN ERROR
static function OnBeforeResponse(oSession: Session) {
oSession.utilDecodeResponse();
oSession.utilDecodeRequest();
if(oSession.hostname.Contains("oauth")) {
oSession.oResponse.headers.Remove("X-Epic-Error-Code");
oSession.oResponse.headers.Remove("X-Epic-Error-Name");
oSession.oResponse.headers.Remove("X-Epic-Profile-Revisions");
oSession.oResponse["X-Epic-Token-TTL"] = "28739";
}
if(oSession.PathAndQuery.Contains("profile0") || oSession.PathAndQuery.Contains("VerifyRealMoneyPurchase")) {
oSession.url = oSession.url.Replace("profileId=profile0", "profileId=athena");
oSession.oResponse.headers.HTTPResponseCode = 200;
oSession.oResponse.headers.HTTPResponseStatus = "200 OK";
oSession.oResponse.headers.Remove("X-Epic-Error-Code");
oSession.oResponse.headers.Remove("X-Epic-Error-Name");
oSession.oResponse.headers.Remove("X-Epic-ProfileRevisions");
}
if (oSession.PathAndQuery.StartsWith("/fortnite/api/versioncheck?version=")) {
oSession.oResponse.headers.HTTPResponseCode = 200;
oSession.oResponse.headers.HTTPResponseStatus = "200 OK";
oSession.oResponse.headers.Remove("X-Epic-Error-Code");
oSession.oResponse.headers.Remove("X-Epic-Error-Name");
oSession.utilSetResponseBody("{\"type\":\"OK\"}");
} else if (oSession.PathAndQuery.Contains("/RefreshExpeditions") ||
oSession.PathAndQuery.Contains("/IncrementNamedCounterStat") ||
oSession.PathAndQuery.Contains("/GetMcpTimeForLogin")) {
oSession.oResponse.headers.HTTPResponseCode = 200;
oSession.oResponse.headers.HTTPResponseStatus = "200 OK";
oSession.oResponse.headers.Remove("X-Epic-Error-Code");
oSession.oResponse.headers.Remove("X-Epic-Error-Name");
oSession.utilSetResponseBody("{}");
}
}
//EDIT LEADERBOARDS OR STATS
static function OnBeforeRequest(oSession: Session) {
oSession.utilDecodeResponse();
oSession.utilDecodeRequest();
if(oSession.PathAndQuery.Contains("leaderboards")) {
oSession.utilSetResponseBody("{}");
}
if(oSession.PathAndQuery.Contains("/fortnite/api/stats/accountId")) {
oSession.utilSetResponseBody("{}");
}
}
//EDIT ITEMSHOP
static function OnBeforeRequest(oSession: Session) {
if (oSession.HostnameIs("fortnite-public-service-prod11.ol.epicgames.com")) {
oSession.utilDecodeResponse();
oSession.utilDecodeRequest();
if(oSession.PathAndQuery.Contains("storefront")) {
oSession.utilSetResponseBody("");
oSession.utilSetRequestBody("");
oSession.oResponse.headers.HTTPResponseCode = 200;
}
}
}