Hello all
in order to make some offline cleaning work on existing gameobjects (such as herbs, veins) I am looking at a method to determine onto which GAME AREA (such as Elwynn, Duskwood, etc) a certain Game Object falls.
Of course I can get this info from the .GPS command in-game, but I want to do this outside the game, with a batch procedure.
I dug around quite a bit and find our the various .DBC files contents.
In particular, WorldAreaMap.DBC contains each world area "zone rectangle" coordinates. Problem is: those rectangles overlap each other BIG time, a "simple" overlaying rule such as "when you have an overlap, take the one with higher ID" simply does not work.
Anyone can suggest how to do this?
I could of course reverse-engineer the .gps command sourcecode but I'm not expert enough...
Thanks in advance for any help!
Ciao
Alberto