What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[?] WoWPoint in Bounds

Smarter

Member
Joined
Jan 15, 2010
Messages
763
Reaction score
9
I am attempting to write a method for determining a WoWPoint's ZoneID. By iterating the WoWDB I have the bounds of each Map, using this data I need a method of checking if a WoWPoint is within those bounds? :-\

Trying this out .... Scary Results.
Code:
                if (location.X <= map.AX && location.X >= map.BX && location.Y <= map.AY && location.Y >= map.BY)
                {
                    Logging.Write(string.Format("Your Location is in Zone: [{0}] {1}", map.Id, map.WorldMapName));
                }

Code:
Maps Generated: 211
Attempting to find ZoneID from Location: <-1303.223, 6580.17, 147.7242>
Your Location is in Zone: [1] Kalimdor
Your Location is in Zone: [0] Azeroth
Your Location is in Zone: [530] Expansion01
Your Location is in Zone: [530] Zangarmarsh
Your Location is in Zone: [530] Nagrand
Your Location is in Zone: [530] TerokkarForest
Your Location is in Zone: [668] HallsofReflection
 
Last edited:
You can see your own location by using the profile writers plugin from Honorbuddy.

Saves you some work and trouble.
 
You can see your own location by using the profile writers plugin from Honorbuddy.

Saves you some work and trouble.

.... You don't read well. I'm trying to find the ZoneID from ANY WoWPoint. As in, WITHOUT BEING THERE?
 
.... You don't read well. I'm trying to find the ZoneID from ANY WoWPoint. As in, WITHOUT BEING THERE?

all continents (and instances) have their own wowpoints

so you'll have to ask continent id (mapid) and then you can try it that way (zoneid = area / zone)

wasn't there another thread similar to this last week?
 
Last edited:
all continents (and instances) have their own wowpoints

so you'll have to ask continent id (mapid) and then you can try it that way (zoneid = area / zone)

wasn't there another thread similar to this last week?

Yes, and I created a method to do this, but it's returning multiple Maps having that location.
 
Yes, and I created a method to do this, but it's returning multiple Maps having that location.

Maybe because, oh I don't know, maps are layered?

Crossroads is inside the Barrens, which is inside Kalimdor. Get it?
 
Maybe because, oh I don't know, maps are layered?

Crossroads is inside the Barrens, which is inside Kalimdor. Get it?

So there is no method whatsoever to strip that down a bit better? I am just looking to get the Continent truly, so I can have it switch to the correct continent. The current Navigator will get it where it needs to go?
 
So there is no method whatsoever to strip that down a bit better? I am just looking to get the Continent truly, so I can have it switch to the correct continent. The current Navigator will get it where it needs to go?

Erm... what?

Continents are continents.

Zones are zones.

I'm still not sure what you're trying to do. But the zone DBC stuff has a "parent" field that shows the layers for the world-map.
 
He's trying to find out what continent a certain WoWPoint is in.
 
He's trying to find out what continent a certain WoWPoint is in.

I'm just looking to assist Navigator in making it to it's destination. If I can determine a WoWPoints Continent, or narrow down it's Zone, I can write a method for it to get within a range that base Navigator can take over.
 
Back
Top