View Single Post
01/27/15, 07:02 AM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
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:
  1. local subzone = string.match(GetMapTileTexture(), "%w+/%w+/%w+/(%w+)_%w+_%d.dds")
  2.         if GetCurrentMapZoneIndex() == 353 and subzone == nil then
  3.             subzone = "dragonstar"
  4.         end
Please correct me if I am wrong.

Last edited by SnowmanDK : 01/27/15 at 07:43 AM.
  Reply With Quote