Thread Tools Display Modes
08-04-16, 04:41 AM   #1
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 45
Post dungeonAreaMapID returned from EJ_GetInstanceInfo

Lua Code:
  1. name, description, bgImage, buttonImage, loreImage, dungeonAreaMapID, link = EJ_GetInstanceInfo([instanceID])

I need the dungeonAreaMapID for Atlas, but it looks like GetInstanceInfo() somehow will not return a valid value for this and I will get "0" as the returned value.
It's interesting that Blizzard use below codes in the Blizzard_EncounterJournal:
Lua Code:
  1. local _, _, _, _, _, _, dungeonAreaMapID = EJ_GetInstanceInfo();
  2.     if dungeonAreaMapID and dungeonAreaMapID > 0 then
  3.         WorldMapFrame.fromJournal = true;
  4.         ShowUIPanel(WorldMapFrame);
  5.         SetMapByID(dungeonAreaMapID);                                          
  6.     end

So that means they know somehow the value will be 0?

I need to figure out a firmed way that I will always get the expected dungeonAreaMapID value.
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » dungeonAreaMapID returned from EJ_GetInstanceInfo

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off