mirror of
https://github.com/xivapi/ffxiv-datamining.git
synced 2026-08-02 14:58:41 +00:00
Update map_coordinates.md
This commit is contained in:
@@ -74,10 +74,12 @@ function mapsTranslateXYZToGame($x, $y, $scale, $tilescale = 50)
|
|||||||
And finally, to translate an in game X/Y to a `levels.exd` position which can then be converted to a 2D or Long/Lat:
|
And finally, to translate an in game X/Y to a `levels.exd` position which can then be converted to a 2D or Long/Lat:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
function mapsTranslateGameToXYZ($x, $y)
|
function mapsTranslateGameToXYZ($x, $y, $scale)
|
||||||
{
|
{
|
||||||
$x = ($x*50)-25-1024;
|
$scale = $scale / 100;
|
||||||
$y = ($y*50)-25-1024;
|
|
||||||
|
$x = ($x*50)-25-(1024 / $scale);
|
||||||
|
$y = ($y*50)-25-(1024 / $scale);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'x' => $x,
|
'x' => $x,
|
||||||
|
|||||||
Reference in New Issue
Block a user