WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   dungeonAreaMapID returned from EJ_GetInstanceInfo (https://www.wowinterface.com/forums/showthread.php?t=54114)

arith 08-04-16 04:41 AM

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.


All times are GMT -6. The time now is 08:15 PM.

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