Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 21:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Calculate the Real X,Y,Z Coordinates

Discussion on Calculate the Real X,Y,Z Coordinates within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 260
Join Date: Mar 2009
Posts: 7
Received Thanks: 0
Calculate the Real X,Y,Z Coordinates

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.

Code:
        $regionX = 158; // _RefRegion.X

        $posX =  210; // _Char.PosX

        $x = ($regionX - 135) * 192 + $posX / 10; // it will give real X in the game
I find some solution.

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);
As you see, when I use PosZ , I find real Y coordinate.

But i can not find the real Z coordinate. How can i calculate that ?
PisqoLoq is offline  
Reply


Similar Threads Similar Threads
Calculate the Real X,Y,Z Coordinates
10/20/2019 - SRO Coding Corner - 1 Replies
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...
[DISCORD CHAT] Real-time Rare Pokemon Hunting | COORD BOT! 24/7 COORDINATES! |
08/04/2016 - Pokemon Hacks, Bots, Cheats & Exploits - 3 Replies
https://discord.gg/sTQBGpm HIT 47.6K MEMBERS! I thought it would be nice to have a discord* channel where we post real time coördinates of (rare) Pokemon found. Similar to the 'Collection of GPS locations' thread. So if you've found a Dragonite or Charizard somewhere and want to share the location, feel free to post them here! Don't forget to check their availability. Pros of this channel: - You won't have to be spending your day searching for a single Pokemon. - Simply join the...
LF4 BOOTY coordinates----- Real or Random??
06/16/2012 - DarkOrbit - 45 Replies
I want to know if the coordinate thing actually works Does DO really place booty keys the same coordinates with the same loot(LF4 & and others)on the space map or is it really Random?? I want to test this, but i also want to know if i am wasting my time and uri. Does anyone have any knowledge of this, Pleas discuss.:handsdown:



All times are GMT +1. The time now is 21:13.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.