Dragonstar map name?
I am trying to find a way to detect that I zoomed into the Dragonstar map.
It should be a global name that works across client languages. I tried "string.match(GetMapTileTexture(), "%w+/%w+/%w+/(%w+)_%w+_%d.dds")" but that gives nothing. All I can get is the "353" for Craglorn using "GetCurrentMapZoneIndex()". What am I missing? UPDATE: I have found it's the same problem with the Harborage, at least in Stonefalls. It looks to me like something like this is the only solution at the moment: Lua Code:
|
Usual pattern for map name looks like this:
"Art/maps/alikr/alikr_base_0.dds" But Dragonstar map uses slightly different pattern name: "Art/maps/craglorn/craglorn_dragonstar_base_0.dds" For example this LibMapPins code Lua Code:
"craglorn", "craglorn_dragonstar" and for Alik'r: "alikr", "alikr_base" You can either change your pattern or just use return value from LibMapPins (Destinations uses this library already). |
I don't know for sure if POIIndices ever change. I've only been messing with them & the map for the last couple of days, but I don't recall seeing any of them change value.
Maybe someone else with more experience with them could comment on that, but this seems to work: Lua Code:
**** EDIT: **************************************** I should have clarified you asked how to detect the change. You could check it in the EVENT_ZONE_CHANGED Lua Code:
Or if you want to be safe, use the POIIndex to get the objectiveName and see if its "Dragonstar" Lua Code:
|
Thanks both of you for your replies :)
I went with the one Garkin offered as LibMapPins is already used in my addon. Was very easy to implement. Case closed :) |
All times are GMT -6. The time now is 02:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI