JavaScript is required to use Bungie.net

#BungieNetPlatform

впервые опубликовано в:BungieNetPlatform
2/24/2016 3:51:06 AM
2

Does the API expose these two endpoints

Does the API expose either public or private endpoints for either Oryx Raid Challenge Mode or Court Tier 3 boss?

Публикуется на языке:

 

Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

  • Изменено (lowlines): 2/25/2016 12:29:46 AM
    However because they have a set rotation, you can manually determine the current boss by creating an indexed array and doing a quick modular calculation by getting the number of weeks since they went live. I'll post some code once I get a chance. [edit] Here's an example for determining the King's Fall Challenge in JavaScript. Note the below uses the skulls returned from the ActivityDefinition of King's Falls and filters out skulls that aren't currently active, meaning it also works for Hard mode. [quote]var skulls = tierActivity.skulls; if (activityAdvisor.raidActivities.raidIdentifier == 'RAID_TAKEN_KING') { //console.log(activityAdvisor.raidActivities); var releaseDate = Math.floor(new Date('2015-12-01T09:00:00Z').getTime()/1000/60/60/24); var expireDate = Math.floor(new Date(activityAdvisor.raidActivities.expirationDate).getTime()/1000/60/60/24); var diffDate = (expireDate-7-releaseDate) * 7 + 3; var tmp = []; var offset = 0; if (skulls.length == 4) { tmp.push(skulls[0]); offset++; } var skullIndex = ((diffDate+2) % 3)+offset; tmp.push(skulls[skullIndex]); skulls = tmp; }[/quote] I haven't written one for Court of Oryx yet, but the same logic applies. Figure out the rotation order and the first reset after TTK came out (bungie time) and then determine how many weeks have passed since then and % it to get your skull/boss index. It's a little bit of work, but worth it if you want to display this on checklists etc.

    Публикуется на языке:

     

    Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

    4 отв.
    • Изменено (VThornheart): 2/24/2016 3:30:26 PM
      Not for the court, but in the private API we do have hard mode raid progress info - but it's not much info. We essentially only return info on which stages you have completed this week. We don't show challenge mode info at the moment.

      Публикуется на языке:

       

      Играйте достойно. Потратьте минутку на ознакомление с нашими правилами, прежде чем отправлять вашу запись. Отмена Изменить Создать боевую группу Опубликовать

    У вас нет прав для просмотра этих материалов.
    ;
    preload icon
    preload icon
    preload icon