[3.3.5] - convert creature coordinates to x,y

Hello everyone,

I hope I can make myself clear, I want to convert the coordinates of a NPC (from creature table) to x,y coordinates ingame (like when you hover over map and you can see the cursor coordinates over map). The maximum value for x and y would be 100. Basically I am trying to simulate what wowhead does, for example: https://www.wowhead.com/npc=127700/squadron-commander-vishax

You can see that there is a “pin” for that NPC at 84.6,81.0 . I am trying to find this exact value based on ‘creature’ table data.

Thanks!

check how https://github.com/TrinityCore/aowow works