Both
Lua Code:
local MapSubzone = GetMapName()
local MapName = LMP:GetZoneAndSubzone(true)
are acting VERY strange for me, im trying to log NPCs to a database based on zone/subzone, im finding that if i go to the map and browse to another area from the one that i am in and just Esc out of the map GetMapName() and LMP:GetZoneAndSubzone(true) haved changed thier vars to the new map i was on therefor when i retarget the same NPC it relogs it again in the new area...... i am uesing SetMapToPlayerLocation() but it seems to bug the main map out untill a keypress is done on the map but does semi work to return GetMapName() and LMP:GetZoneAndSubzone(true) to the current map player location
any ideas is thier maby a better way to determain current player location other then map functions maby a way to fix this isssue?
thank you in advance
So i added
Lua Code:
ZO_PreHookHandler(ZO_KeybindStripControl, 'OnHide', function()
SetMapToPlayerLocation()
end)
to my onload and it works but still seems to bug the map untill a mouse press is done still .... just seems SetMapToPlayerLocation() does set it to player position but the tiles dont refresh when you open the map untill a mouse press :S