Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 17:39

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

Advertisement



[Request] Need little help about warps

Discussion on [Request] Need little help about warps within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 15
Received Thanks: 0
[Request] Need little help about warps

Hello guys,
I want to ask you if someone has coordinates to /warp converter or can tell me how warp codes are made

Regards,
maxboostr
maxbooster is offline  
Old 09/15/2014, 12:31   #2
 
concludeit's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 280
Received Thanks: 148
Credits to Lemoniscool and CaosFox... On the other forum.

Code stuff:
Quote:
Exactly for the same reason i did a lot of research on how to calculate them my own and got to this:

xpos = (silkroad_x % 192) * 10
ypos = (silkroad_y % 192) * 10
xsec = (silkroad_x - xpos / 10) / 192 + 135
ysec = (silkroad_y - ypos / 10) / 192 + 92

region = (ysec << 8) | xsec

knowing this i wrote the following small php script to calculate it quickly and spit out the warp code:

Code:
<form action="coord.php" method="post">
    <input type="text" name="x" value="X-Coord"><br>
    <input type="text" name="y" value="Y-Coord"><br>
    <input type="submit" name="submit" value="submit">
</form>

<?php
    if(isset($_POST['x']) && isset($_POST['y']))
    {
        //$silkroad_x = 14714;
        //$silkroad_y = 2593;
        $silkroad_x = $_POST['x'];
        $silkroad_y = $_POST['y'];
    
        $xpos = ($silkroad_x % 192) * 10;
        $ypos = ($silkroad_y % 192) * 10;
    
        $xsec = ($silkroad_x - $xpos / 10) / 192 + 135;
        $ysec = ($silkroad_y - $ypos / 10) / 192 + 92;
    
        $region = ($ysec << 8) | $xsec;
        
        echo "<br><br>/warp $region $xpos 1000 $ypos";
    }
?>
as you can see for the z value in the warp command i always use 1000 which is because in 99.9% of all cases with z being set to 1000 youre in the sky above the place where you want to be warped to, but sro automatically changes it to the value where you hit the ground.
You're welcome.
Attached Files
File Type: zip srocoords.zip (151.1 KB, 108 views)
concludeit is offline  
Old 07/03/2015, 01:59   #3
 
elite*gold: 0
Join Date: Apr 2015
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by concludeit View Post
Credits to Lemoniscool and CaosFox... On the other forum.

Code stuff:


You're welcome.
i can't use this on my windows 8.1 pc but i can use it on my other windows 7 pc and i could use it with windows vista too.

I've tried "troubleshoot compatablity" and nothing happens after trying to open it. It won't even go to the "Run" optinon.

If you could help me, that'd be great, Thanks! :-)
hellokizzo is offline  
Old 07/12/2015, 17:12   #4
 
blapanda's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 1,860
Received Thanks: 760
... You could simply create a PHP file on your folder at c:/calculator. Create a file named index.php and paste that code in, save.
Open your browser and enter the folder's direction. C:/calculator/index.php
You should be able using that as well as a website based mini application, just for you.
(note the slashes may be backslashes. Writing this with a tablet, which is lacking apps (rooted it, apps gone )).
The entrance for x and y have been declared there already, so you don't need to be afraid that it won't work.
blapanda is offline  
Reply


Similar Threads Similar Threads
[Request] Warps for Survival rooms
09/02/2014 - SRO Private Server - 9 Replies
Sorry already have them now. Now ive a small question There is 2 rooms works fine with warps. The other 3 can`t make addwp for them When i go with the warp i go normally and make addwp fine. But when i want to go /wp xx to this room it won`t go. Like its disabled in the DB. http://s9.postimg.org/tsotzlt2n/SRO_2014_08_30_20 _34_05_39.jpg
Request how to make warps
01/24/2013 - Cabal Private Server - 0 Replies
Hello i have a question how to make a Nation warps on ep8 P server? or any one have nation warps for Extreme cabal? bump
Mod für Warps ?
01/14/2011 - Minecraft - 4 Replies
Hallo. Habe einen Server von Nitrado. Die HMod geht ja seit dem Update nicht und somit auch keine Warps mehr. Wir spielen jetzt die normale Version. Die Warps finden wir aber wichtig, weil wir uns sonst nicht wieder zusammen finden. Kennt ihr eine Mod für den Server die diese Warps einfügt? Wie installiere ich sie? Wo downloade ich sie?
sea emu warps
08/11/2010 - SRO Private Server - 1 Replies
hello i want to make my costume warp for sea emu any have the tool for find cordinate tanks:)



All times are GMT +1. The time now is 17:44.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.