Forums WoW Modding Discussion Miscellaneous [Archive] Repack 4.3.4 - Player's current Map Area ID stored in database?

[Archive] Repack 4.3.4 - Player's current Map Area ID stored in database?

[Archive] Repack 4.3.4 - Player's current Map Area ID stored in database?

rektbyfaith
Administrator
0
11-04-2025, 05:14 PM
#1
Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Hello! I'm wondering if there's any way to find the player's current Map Area ID in the database?

You can find the Map Area ID of your character in-game with /script print(GetCurrentMapAreaID())

I can only find the player's Map ID (as in Eastern Kingdoms/Kalimdor/etc) in the database (characters.map) or Instance ID. Naturally, the position_x position_y position_z values are available but they do not lend easily to figuring out the Map Area ID.

Is there anywhere I can find this currently being stored? If not, would it be difficult to add this as well? Thanks for your help!
rektbyfaith
11-04-2025, 05:14 PM #1

Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Hello! I'm wondering if there's any way to find the player's current Map Area ID in the database?

You can find the Map Area ID of your character in-game with /script print(GetCurrentMapAreaID())

I can only find the player's Map ID (as in Eastern Kingdoms/Kalimdor/etc) in the database (characters.map) or Instance ID. Naturally, the position_x position_y position_z values are available but they do not lend easily to figuring out the Map Area ID.

Is there anywhere I can find this currently being stored? If not, would it be difficult to add this as well? Thanks for your help!

rektbyfaith
Administrator
0
11-04-2025, 05:14 PM
#2
Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Just use .pinfo [name of the character]

in-game
rektbyfaith
11-04-2025, 05:14 PM #2

Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Just use .pinfo [name of the character]

in-game

rektbyfaith
Administrator
0
11-04-2025, 05:14 PM
#3
Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Thanks. I'm aware of the in-game options. I'm wondering if it would be possible to surface some of that data in the database. It would be nice to externalize their positions onto a real-time map for instance, or just to give a "who is online?" list with their location included.
rektbyfaith
11-04-2025, 05:14 PM #3

Archived author: randall • Posted: 2025-11-04T18:14:25.505996
Original source

Thanks. I'm aware of the in-game options. I'm wondering if it would be possible to surface some of that data in the database. It would be nice to externalize their positions onto a real-time map for instance, or just to give a "who is online?" list with their location included.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)