Register for your free account! | Forgot your password?

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

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

Advertisement



Pin point a location on the map

Discussion on Pin point a location on the map within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 345
Pin point a location on the map

hello, everybody, lately ive start working on on c# poroject ,something similar to this:

all i want to know is how to calculate the x,y chords and have them be presented on the map images, and i got no ideas where to start, there must be something that im missing to help me get started on that, hope you guys can help!
Isoline* is offline  
Old 10/06/2016, 17:00   #2
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,462
Define two pairs of coordinates on the map. build a relation between the game-coords and the pixels of the image.

e.g.
Code:
InGame -> Pixels
0|0 -> 3000|200
3500|250 -> 4300|800
Having these, you can calculate a conversion factor for "pixels per ingame-meter" and an offset.
florian0 is offline  
Old 10/07/2016, 17:37   #3
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 345
Quote:
Originally Posted by florian0 View Post
Define two pairs of coordinates on the map. build a relation between the game-coords and the pixels of the image.

e.g.
Code:
InGame -> Pixels
0|0 -> 3000|200
3500|250 -> 4300|800
Having these, you can calculate a conversion factor for "pixels per ingame-meter" and an offset.
i should create an alrgorithm to find any location based on those 2 dots relations, but can you ellaborate more a littile bit?
Isoline* is offline  
Old 10/08/2016, 21:05   #4
 
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,462
I have a cpp-example for the translation. A friend of mine made it:
florian0 is offline  
Old 10/09/2016, 01:12   #5
 
Isoline*'s Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 667
Received Thanks: 345
Quote:
Originally Posted by florian0 View Post
I have a cpp-example for the translation. A friend of mine made it:
sadly c++ isnt my thing, meant to make it in c.
but thanks, it'll do.
Isoline* is offline  
Reply


Similar Threads Similar Threads
[Selling] Dragonite Nest Location [Auto-Buy] + Free Dratini Hotspot Location for Candyfarming
08/07/2016 - Pokemon Trading - 0 Replies
AutoBuy: https://sellfy.com/p/AuNn/ http://i.imgur.com/QmNYGb1.jpg
[FS] FREESTYLE street Basketball 3 Point, Rebound, and 2 point Hack
06/11/2012 - General Gaming Discussion - 133 Replies
My cousin was just hired as product manager for levelup philippines, he says the team for freestyle philippines knows all the available hacks and cheats, including the: 1. 3 point hack 2. rebound hack 3. and he even told me theres a 2 point hack they need to know these hacks for them to solve it. i will share these hacks and cheats in a little while.



All times are GMT +1. The time now is 11:39.


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