JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
11/6/2015 4:31:38 AM
0

Agonarch Rune Daily Progress (for Checklist Enthusiasts)

Working on some kind of checklist app? Have you thought about adding the Agonarch Rune to your list? Currently there doesn't appear to be a clean way to figure out whether you have killed your daily Taken Champion that spawns from the area events while on Patrol in the Dreadnaught, but there is a way (sorta) to find this information through the APIs. It would appear that these named Taken are considered "Taken Champions" in the system, so by checking your recent activity (specifically Patrol the Dreadnaught), you can check the "killsOfTakenChampions" stat to see if you have killed at least one since the last daily reset. Here's the logic flow: First you need a characterId so I would generally call [url=http://bungienetplatform.wikia.com/wiki/GetAccount]GetAccount[/url] and get the first character, but you might want to hook this into a dropdown or something. [url=http://bungienetplatform.wikia.com/wiki/GetCharacterInventory]GetCharacterInventory[/url] - Optional, but you will need this to get the progression information of a charging rune. [url=http://bungienetplatform.wikia.com/wiki/GetAdvisorsForCurrentCharacter]GetAdvisorsForCurrentCharacter[/url] - We use the advisors endpoint to dynamically get the daily reset window, so again you can optionally skip this one in favour or hard coding etc. [url=http://bungienetplatform.wikia.com/wiki/GetActivityHistory]GetActivityHistory[/url] - Parameters: mode=6&page=0; We only want Patrols and we should only need the first page of results unless the user likes doing a lot of patrolling At this point we filter out any results which do not have a referenceId of "3210106079" (Patrol the Dreadnaught) and has not been undertaken since the last reset. [url=http://bungienetplatform.wikia.com/wiki/GetPostGameCarnageReport]GetPostGameCarnageReport[/url] - Once you find a match, dig deeper and check the "extended.values" of the user for "killsOfTakenChampions". Not sure if an assist counts here (probably doesn't though). If there are no kills, move onto the next PGCR until you run out of results or find a match. Hooray!! You just jumped through hoops to return a simple TRUE/FALSE result (that might not even be all that accurate). Well done! There might be other enemies you can encounter while patrolling that could count towards this counter, and its probably also possible to do these events during story missions that take place on the Dreadnaught (haven't checked). Ideally it would have been better if each Taken Champion had a unique historicalStat counter or better yet, the Agonarch Rune had an advisor for it to show which of the 7 Taken Champions you have killed that week as I recall if you join a buddy who's doing the Charged Agonarch Rune event and kill Taken Champions, you can actually charge your rune multiple times in a day (I've also seen doing this can mess up your rune for the rest of the week, as in enemies you've killed during the event won't charge your rune a second time on a different day). Idea for a advisor: "agonarchRune": { "dailyProgress": 0, // How many unique Taken Champions have you killed in a today? "totalProgress": 4, // Out of 7 "takenChampionsKilled": { // Could expand these with more information about each unique Taken enemy "taken1": true, "taken2": false, "taken3": true, "taken4": true, "taken5": true, "taken6": false, "taken7": false } }

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon