I know that there is a calculation formula to calculate it. And I think we can do this using the X and Z values in _RefRegion.
I was able to calculate the actual X in the game using the X value in _RefRegion and the PosX value in the _Char table. However, the _RefRegion table does not have a Y coordinate.
In this case, I ask you. How can I get real X, Y, Z in the game using RegionID, PosX, PosY, PosZ in _Char table.
The formula I use for X.
Code:
$regionX = 158; // _RefRegion.X
$posX = 210; // _Char.PosX
$x = ($regionX - 135) * 192 + $posX / 10; // it will give real X in the game
I used _RefRegion.X and _RefRegion.Z, also _Char.PosX and _Char.PosZ
Code:
$regionX = 135;
$regionZ = 92;
$posX = 741;
$posZ = 664;
$x = (192 * ($regionX - 135)) + ($posX / 10);
$y = (192 * ($regionZ - 92)) + ($posZ / 10);
But i can not find the real Z coordinate. How can i calculate that ?






