How to get player map id ?
i havn't see a function for that in LUA fuction.
How to get player map id ?
i havn't see a function for that in LUA fuction.
dword_10A69A0 (3.0.9), dword_11CD010 (3.1.0) is the ID in Map.dbc.
Last edited by schlumpf; 04-19-2009 at 01:22 PM.
Thanks ! it's working !
Nice schlumpf.
Does anyone have the offset for continentid/name? (Northrend, Azeroth and Outlands)
Couldn't find it while playing around in OllyDbg.
API SetMapToCurrentZone - WoWWiki - Your guide to the World of Warcraft
API GetCurrentMapContinent - WoWWiki - Your guide to the World of Warcraft
Haven't looked at it, but they sound promising.
miceiken: You can get those by taking the ID given and reading the map.DBC. Or you may use this:
01286820 (3.0.9), 005390D4 (3.1.0) should hold the string for the currently used map.
I know there is a difference between continent and map, but the continents only exist on the worldmap. Its all map.dbc.
Being on continent 4 is nothing but being on map 571, which is linked in WorldMapContinent.dbc.
Additionally there is a continentID and zoneID at 00FCA56C - 00FCA570 (3.0.9), 00A3A9DC - 00A3A9E0 (3.1.0).
Last edited by schlumpf; 04-19-2009 at 03:31 PM.
Yeah, thanks - I was hoping for a string version of it, I guess I'll just have to make my own function to output it
as schlumpf says,
mapID is enough for continent id.
if you need to see whats in (pre expansion) map.dbc look at DBFilesClient\Map.dbc - WoWDev
eg. (and don't quote me on this)
kalmidor mapid = 1, continentid = 0
eastern kingodoms mapid = 0, continentid = 1
outlands mapid = 530, continentid = 2
northrend mapid = 571, continentid = -2 ??
and continentID seems to default to -1 before you have one selected.