Hi friends, as you know, PosX, PosY and PosZ values in the _Char table are not the same as X, Y, Z in the game.
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.
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