Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns encounter info from the journal.
name, description, journalEncounterID, rootSectionID, link, journalInstanceID, dungeonEncounterID, instanceID = EJ_GetEncounterInfo(journalEncounterID) = EJ_GetEncounterInfoByIndex(index [, journalInstanceID])
Arguments[]
EJ_GetEncounterInfo[]
- journalEncounterID
- number : JournalEncounterID
EJ_GetEncounterInfoByIndex[]
- index
- number
- journalInstanceID
- number? : JournalInstance.ID - If omitted, defaults to the currently selected instance from EJ_SelectInstance()
- quirk: Requires
EJ_SelectInstance
to be called at least once during this session when passing ajournalInstanceID
.
- quirk: Requires
Returns[]
- name
- string
- description
- string
- journalEncounterID
- number : JournalEncounterID - IDs for the Encounter Journal
- rootSectionID
- number : JournalEncounterSection.ID - The first section article that describes the boss abilities
- link
- string : journalLink
- journalInstanceID
- number : JournalInstance.ID - The dungeon instance as used by the Encounter Journal
- dungeonEncounterID
- number : DungeonEncounterID - IDs from ENCOUNTER_START
- instanceID
- number : InstanceID - The map instance
Example[]
/dump EJ_GetEncounterInfo(95)
[1] = "Vanessa VanCleef", -- name
[2] = "As a young girl, Vanessa witnessed the gruesome death of her father and former Defias Brotherhood leader, Edwin VanCleef. She has since taken up his mantle of leadership, plotting to exact vengeance on Stormwind from the dark corridors of the Defias's stronghold in the Deadmines.", -- description
[3] = 95, -- journalEncounterID
[4] = 2060, -- rootSectionID
[5] = "|cff66bbff|Hjournal:1:95:0|h[Vanessa VanCleef]|h|r", -- link
[6] = 63, -- journalInstanceID
[7] = 1081, -- dungeonEncounterID
[8] = 36 -- instanceID
Illustrates the quirk when passing a journalInstanceID
without calling EJ_SelectInstance
.
local name1 = EJ_GetEncounterInfoByIndex(1, 1208)
print(name1) -- nil
EJ_SelectInstance(1195) -- this can be an arbitrary journalInstanceID
local name2 = EJ_GetEncounterInfoByIndex(1, 1208)
print(name2) -- Kazzara, the Hellforged
Patch changes[]
Patch 8.2.0 (2019-06-25): Added dungeonEncounterID, instanceID
returns.[1]
Patch 8.0.1 (2018-07-17): Added journalInstanceID
return.[2]
Patch 4.2.0 (2011-06-28): Added.