MMOMinion
How do i know which part of map am i ? - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90)
+---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104)
+---- Thread: How do i know which part of map am i ? (/showthread.php?tid=8443)



How do i know which part of map am i ? - bobdeezz - 07-18-2014

When using Player.localmapid in Eastern La Nosca it will return 137 no matter where i am on the map, Wineport or Costa Del Sol
and thats how it should work anyway

But Is there a way to figure if im on Wineport Side of the map or Costa Del Sol ?
because the Nav Mesh already have a way, it will load Wineport when i go to wineport and Costa when in Costa

that would save lotsa time and effort fo me >,<


RE: How do i know which part of map am i ? - HansW - 07-18-2014

you could use the coordinates , use 2 polygons or triangles to approximate the two map parts, then check the player position against that. you'll have to record some edge points by walking there and taking note of the player position.