update instance locations
idiomatic opened this issue ยท 7 comments
@idiomatic I can help, I see InstanceLocations, but I dont know how get coors X,Z and I'm not sure how get mapfile too
Based on wowwiki, try going to an instance door and:
/script SetMapToCurrentZone() local x,y=GetPlayerMapPosition("player") DEFAULT_CHAT_FRAME:AddMessage(format("%s, %s: %.3f, %.3f",GetZoneText(),GetSubZoneText(),x,y))
Some reverse engineering of HandyNotes may be necessary for deep understanding of mapfile. Alternatively, experimentation with the map API could yield results.
Message: [string "SetMapToCurrentZone() local x,y=GetPlayerMa..."]:1: attempt to call global 'SetMapToCurrentZone' (a nil value)
Or in WoW 8.0 or later:
/script print(C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player"):GetXY())
I'm contemplating looking for some old WowLua SavedVariables files for other small code snippets. However, they will be of limited use as they may be from before the 8.0 API changes.
I see HandyNotes using https://github.com/Nevcairiel/HereBeDragons but there is missing BFA mapFiles :/
I suggest delaying updating instance locations. The instance locations matter when #20 adds reference to instances.