Thread Tools Display Modes
10-20-14, 11:55 AM   #1
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Dealing with [instance] map IDs

Hey,
I've never really dealt with these things before. I'm looking to identify an instance zone (while being inside of it) by some locale independent variable. I understand this is possible for zones in general; does it work the same way for instances? I think GetInstanceInfo returns an ID of some kind, too, does it matter which I use?
__________________
Grab your sword and fight the Horde!
  Reply With Quote
10-20-14, 12:48 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Yes. GetCurrentMapAreaID works the same inside instances as it does outside of instances. The only difference is that (some) instances also have floors. See also:

http://wowpedia.org/MapID

However, the "instanceMapID" return from GetInstanceInfo is not the same, and there's not really any reason to use it. Just use GetCurrentMapAreaID, so you can just use the same function everywhere.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-20-14, 12:53 PM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Try GetCurrentMapAreaID, if not, EJ_GetCurrentInstance should work, and it will give you more detailed information about the instance too from the dungeon journal.

Edit: Dang it phanx
  Reply With Quote
10-20-14, 12:54 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Use the return from GetInstanceInfo or UnitPosition to identify what instance you're in, these don't rely on what the map is set to but rather your actual location.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Dealing with [instance] map IDs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off