Results 1 to 15 of 388

Threaded View

  1. #16
    yipiv18335's Avatar
    Join Date
    Jul 2024
    Gender
    female
    Posts
    8
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by 8otto View Post
    You're right, my bad, fixed adding another check for challenge:

    Code:
    if (!QuestBlock && Quest && oSession.uriContains("api/v1/archives/stories/update/active-node-v3")){
    	try{
    		oSession.utilDecodeRequest();
    		oSession.utilDecodeResponse();
    		var jsonRequest = oSession.GetRequestBodyAsString();
    		var oJsonRequest = Fiddler.WebFormats.JSON.JsonDecode(jsonRequest).JSONObject;
    		var jsonResponse = oSession.GetResponseBodyAsString();
    		var oJsonResponse = Fiddler.WebFormats.JSON.JsonDecode(jsonResponse).JSONObject;
    		if(oJsonResponse["activeNodesFull"].Count == 0){
    			if(System.IO.File.Exists(MarketUpdaterPath+"Quest.json")) System.IO.File.Delete(MarketUpdaterPath+"Quest.json");
    			return;
    		}
    		var role = oJsonRequest["role"];
    		if(role == "both") role = "survivor";
    		var neededProgression = oJsonResponse["activeNodesFull"][0]["objectives"][0]["neededProgression"];
    		var questEvents = oJsonResponse["activeNodesFull"][0]["objectives"][0]["questEvent"];
    		var requestBody = '{"questEvents":[';
    		for(var i=0;i<questEvents.Count;i++){
    			var repetition = questEvents[i]["repetition"];
    			repetition *= neededProgression;
    			if(questEvents[i]["operation"] == "<") repetition = questEvents[i]["repetition"] - 1;
    			else if(questEvents[i]["operation"] == ">") repetition = questEvents[i]["repetition"] + 1;
    			var questEventId = questEvents[i]["questEventId"];
    			var parameters = questEvents[i]["parameters"];
    			if(parameters != undefined) requestBody += '{"parameters":"'+parameters+'","questEventId":"'+questEventId+'","repetition":'+repetition+'}';
    			else requestBody += '{"questEventId":"'+questEventId+'","repetition":'+repetition+'}';
    			if(questEvents.Count > 1 && i != questEvents.Count - 1) requestBody += ",";
    		}
    		requestBody += '],"role":"'+role+'"}';
    		System.IO.File.WriteAllText(MarketUpdaterPath+"Quest.json", requestBody);
    	}
    	catch(e){FiddlerObject.log("Error unlocking challenge");}
    }
    Paste this 2 lines into your FiddlerScript, into Quest script:
    Code:
    if(questEvents[i]["operation"] == "<") repetition = questEvents[i]["repetition"] - 1;
    else if(questEvents[i]["operation"] == ">") repetition = questEvents[i]["repetition"] + 1;
    It's working now, thank you!

  2. The Following User Says Thank You to yipiv18335 For This Useful Post:

    8otto (07-24-2024)

Similar Threads

  1. Replies: 7
    Last Post: 02-04-2019, 09:06 PM
  2. Advanced warfare challenge completer
    By blackopskid7 in forum Call of Duty Advanced Warfare Discussions
    Replies: 10
    Last Post: 11-21-2014, 07:10 PM
  3. "challenge complete" trigger
    By 12qwerty34 in forum Call of Duty Ghosts Discussions & Help
    Replies: 5
    Last Post: 01-01-2014, 04:32 AM
  4. 100% complete Challenges
    By Shckr57 in forum Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 116
    Last Post: 11-21-2011, 11:38 PM
  5. [Updated 3.1]UFO MOD / All Challenges completion lobby / XPScale Mod after rest
    By kaf073 in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 38
    Last Post: 08-06-2010, 10:41 PM