Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. var previousEntryUID = null, difference = null;
  2. for (var entryUID in combatLog.entries) {
  3.     if (combatLog.entries.hasOwnProperty(entryUID)) {
  4.         if (previousEntryUID === null) {
  5.             previousEntryUID = entryUID;
  6.         } else {
  7.             var difference = combatLog.entries[entryUID][1] - combatLog.entries[previousEntryUID][1],
  8.                 previousSpell = combatLog.spells[combatLog.events[combatLog.entries[previousEntryUID][4]].spell],
  9.                 currentSpell = combatLog.spells[combatLog.events[combatLog.entries[entryUID][4]].spell],
  10.                 previousEntryTime = new Date(report.startTime + combatLog.entries[previousEntryUID][1]),
  11.                 currentEntryTime = new Date(report.startTime + combatLog.entries[entryUID][1]),
  12.                 previousEntryTimeParsed = null, currentEntryTimeParsed = null;
  13.             if (difference <= 950 // Reduced from 1000 to account for lag
  14.                 && previousSpell.id !== 16166 // Elemental Mastery
  15.                 && (previousSpell.id !== 77762 && currentSpell.id !== 77762) // Lava Surge! (Shuld this be both ways?)
  16.                 && (previousSpell.id !== 79476 && currentSpell.id !== 79476) // Volcanic Power
  17.                 && (previousSpell.id !== 82174 && currentSpell.id !== 82174) // Synapse Springs
  18.                 && (previousSpell.id !== 92601) // Detonate Mana
  19.                 && (previousSpell.id !== 3045 && currentSpell.id !== 3045) // Rapid Fire
  20.                 && (previousSpell.id !== 5405) // Replensih Mana
  21.                 && (previousSpell.id !== 7268 && currentSpell.id !== 7268) // Arcane Missiles (Can't get an accurate minimum time, it's 5 casts within the main spells time which is 2s base)
  22.                 && (previousSpell.id !== 12043) // Presence of Mind
  23.                 && (previousSpell.id !== 12042) // Arcane Power
  24.                 && (previousSpell.id !== 59548 && previousSpell.id !== 59548) // Gift of the Naaru
  25.                 && (previousSpell.id !== 59542 && currentSpell.id !== 59542) // Gift of the Naaru
  26.                 && (previousSpell.id !== 86150 && currentSpell.id !== 86150) // Guardian of Ancient Kings
  27.                 && (previousSpell.id !== 31884 && currentSpell.id !== 31884) // Avenging Wrath
  28.                 && (previousSpell.id !== 82186 && currentSpell.id !== 82186) // Z50 Mana Gulper
  29.                 && (previousSpell.id !== 98057 && currentSpell.id !== 98057) // Grand Crusader
  30.                 && (previousSpell.id !== 20925 && currentSpell.id !== 20925) // Holy Shield
  31.                 && (previousSpell.id !== 101492) // Summon Splashing Waters
  32.                 && (previousSpell.id !== 92213) // Memory of Invincibility
  33.                 && (previousSpell.id !== 74434) // Soulburn
  34.                 && (previousSpell.id !== 74497) // Lifeblood
  35.                 && (previousSpell.id !== 91041) // Heart's Judgement
  36.                 && (previousSpell.id !== 77801) // Demon Soul
  37.                 && (previousSpell.id !== 498 && currentSpell.id !== 498) // Divine Protection
  38.                 && (previousSpell.id !== 70940 && currentSpell.id !== 70940)  // Divine Guardian
  39.                 && (previousSpell.id !== 633 && currentSpell.id !== 633) // Lay on Hands
  40.                 && (previousSpell.id !== 79105 && currentSpell.id !== 79105) // Power Word: Fortitude
  41.                 && (previousSpell.id !== 79107 && currentSpell.id !== 79107) // Shadow Protection
  42.                 && (previousSpell.id !== 24907 && currentSpell.id !== 24907) // Moonkin Aura
  43.                 && (previousSpell.id !== 79061 && currentSpell.id !== 79061) // Mark of the Wild
  44.                 && (previousSpell.id !== 91173 && currentSpell.id !== 91173) // Clerity
  45.                 && (previousSpell.id !== 55342) // Mirror Image
  46.                 && (previousSpell.id !== 17116) // Nature's Swiftness
  47.                 && (previousSpell.id !== 96891 && currentSpell.id !== 96891) // Lightening Bolt
  48.                 && (previousSpell.id !== 82739 && currentSpell.id !== 82739) // Flame Orb (Aoe)
  49.                 && (previousSpell.id !== 97007 && currentSpell.id !== 97007) // Mark of the Firelord
  50.                 && (previousSpell.id !== 22812 && currentSpell.id !== 22812) // Barkskin
  51.                 && (previousSpell.id !== 87151) // Archangel
  52.                 && (previousSpell.id !== 75 && currentSpell.id !== 75) // Auto Shot
  53.                 && (previousSpell.id !== 63468 && currentSpell.id !== 63468) // Piercing Shots
  54.                 && (previousSpell.id !== 63468 && currentSpell.id !== 63468) //
  55.             ) {
  56.                 previousEntryTimeParsed = previousEntryTime.getHours() + ":" + previousEntryTime.getMinutes() + ":" + previousEntryTime.getSeconds() + "." + previousEntryTime.getMilliseconds();
  57.                 currentEntryTimeParsed = currentEntryTime.getHours() + ":" + currentEntryTime.getMinutes() + ":" + currentEntryTime.getSeconds() + "." + currentEntryTime.getMilliseconds();
  58.                 console.log("[" + previousEntryTimeParsed + "] " + previousSpell.name + " (" + previousSpell.id + ") to [" + currentEntryTimeParsed + "] " + currentSpell.name + " (" + currentSpell.id + "): " + difference + " ms");
  59.             }
  60.             previousEntryUID = entryUID;
  61.         }
  62.     }
  63. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top