HandyNotes: Achievements

HandyNotes: Achievements

637k Downloads

update instance locations

idiomatic opened this issue ยท 7 comments

commented

surely more instances and map zones have been introduced during my hiatus.

commented

@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

commented

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.

commented

Message: [string "SetMapToCurrentZone() local x,y=GetPlayerMa..."]:1: attempt to call global 'SetMapToCurrentZone' (a nil value)

commented

Or in WoW 8.0 or later:

/script print(C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player"):GetXY())
commented

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.

commented

I see HandyNotes using https://github.com/Nevcairiel/HereBeDragons but there is missing BFA mapFiles :/

commented

I suggest delaying updating instance locations. The instance locations matter when #20 adds reference to instances.