WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   How do I get encounter ids? (https://www.wowinterface.com/forums/showthread.php?t=53806)

galvin 07-03-16 09:44 PM

How do I get encounter ids?
 
This doesn't work
Trying to get the ids for the new legion raids.
/dump EJ_GetEncounterInfoByIndex(1, 669)

Ketho 07-03-16 11:08 PM

Edit 2017.03.10: for Encounter IDs from ENCOUNTER_START:
http://www.mmo-champion.com/threads/...encounter-ID-s

-----

Which instanceId is 669?

You could indeed get the encounterIds with EJ_GetEncounterInfoByIndex(index, [instanceId]), just need to get the instanceId first

But I don't even understand MY OWN documentation. It must be really bad /facepalm
World_of_Warcraft_API#Encounter_Journal_Functions

(Edit) forgot EJ_SelectInstance(instanceId)
Code:

/run local i=1 while EJ_GetInstanceByIndex(i,true)do local a1,a2=EJ_GetInstanceByIndex(i,true)print(a1,a2)EJ_SelectInstance(a1)i=i+1 local j=1 while EJ_GetEncounterInfoByIndex(j,a1)do local b1,_,b2=EJ_GetEncounterInfoByIndex(j,a1)print(b2,b1)j=j+1 end end
Lua Code:
  1. local i = 1
  2. while EJ_GetInstanceByIndex(i, true) do
  3.     local instanceId, name = EJ_GetInstanceByIndex(i, true)
  4.     print(instanceId, name)
  5.     EJ_SelectInstance(instanceId)
  6.     i = i+1
  7.    
  8.     local j = 1
  9.     while EJ_GetEncounterInfoByIndex(j, instanceId) do
  10.         local name, _, encounterId = EJ_GetEncounterInfoByIndex(j, instanceId)
  11.         print(encounterId, name)
  12.         j = j+1
  13.     end
  14. end
Lua Code:
  1. local t = {
  2.     [822] = { -- "Broken Isles"
  3.         [1790] = "Ana-Mouz",
  4.         [1774] = "Calamir",
  5.         [1789] = "Drugon the Frostblood",
  6.         [1795] = "Flotsam",
  7.         [1770] = "Humongris",
  8.         [1769] = "Levantus",
  9.         [1783] = "Na'zak the Fiend",
  10.         [1749] = "Nithogg",
  11.         [1763] = "Shar'thos",
  12.         [1756] = "The Soultakers",
  13.         [1796] = "Withered J'im",
  14.     },
  15.     [768] = { -- "The Emerald Nightmare"
  16.         [1703] = "Nythendra",
  17.         [1744] = "Elerethe Renferal",
  18.         [1738] = "Il'gynoth, Heart of Corruption",
  19.         [1667] = "Ursoc",
  20.         [1704] = "Dragons of Nightmare",
  21.         [1750] = "Cenarius",
  22.         [1726] = "Xavius",
  23.     },
  24.     [786] = { -- "The Nighthold"
  25.         [1706] = "Skorpyron",
  26.         [1725] = "Chronomatic Anomaly",
  27.         [1731] = "Trilliax",
  28.         [1751] = "Spellblade Aluriel",
  29.         [1762] = "Tichondrius",
  30.         [1713] = "Krosus",
  31.         [1761] = "High Botanist Tel'arn",
  32.         [1732] = "Star Augur Etraeus",
  33.         [1743] = "Grand Magistrix Elisande",
  34.         [1737] = "Gul'dan",
  35.     },
  36. }

Tercioo 07-05-16 10:55 AM

Is someone passes through this topic looking for encounter ids for ENCOUNTER_START:

[1853] = 1, --Nythendra
[1876] = 2, --Elerethe Renferal
[1873] = 3, --Il'gynoth, Heart of Corruption
[1841] = 4, --Ursoc
[1854] = 5, --Dragons of Nightmare
[1877] = 6, --Cenarius
[1864] = 7, --Xavius

[1849] = 1, --Skorpyron
[1865] = 2, --Chronomatic Anomaly
[1867] = 3, --Trilliax
[1871] = 4, --Spellblade Aluriel
[1862] = 5, --Tichondrius
[1842] = 6, --Krosus
[1886] = 7, --High Botanist Tel'arn
[1863] = 8, --Star Augur Etraeus
[1872] = 9, --Grand Magistrix Elisande
[1866] = 10, --Gul'dan


All times are GMT -6. The time now is 01:05 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI