WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Bosses list from map (https://www.wowinterface.com/forums/showthread.php?t=55341)

Oniya 04-21-17 08:04 AM

Bosses list from map
 
Anyone know how via lua get list of all bosses on map?
I found how to get quest markers:

Lua Code:
  1. for _, poiType in pairs(WorldMapPOIFrame.poiTable) do
  2.    for _, poiButton in pairs(poiType) do
  3.       print(poiButton.questID);
  4.      
  5.      
  6.       if ( poiButton.used ) then
  7.          local _, posX, posY = QuestPOIGetIconInfo(poiButton.questID);
  8.          WorldMapPOIFrame_AnchorPOI(poiButton, posX, posY, WORLD_MAP_POI_FRAME_LEVEL_OFFSETS.TRACKED_QUEST);
  9.       end
  10.    end
  11. end
But not a boss markers.

We have such markers on map in Broken Shore (actually bosses + ship)


Oniya 04-21-17 08:36 AM

I found :)
it's inside
Lua Code:
  1. C_WorldMap.GetMapLandmarkInfo(i);


All times are GMT -6. The time now is 12:58 PM.

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