Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 12:41

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

Advertisement



Map max x , y

Discussion on Map max x , y within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 31
Received Thanks: 0
Map max x , y

how can i get map max x and y ?
is there any way to do that?
elitesuckup is offline  
Old 06/05/2014, 09:46   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
You would want to read in the data map (dmap) file from the client and read in the x and y lengths of the map. Your server should be forced to load these lengths in to manage player coordinates (if this is server related). If this isn't server related, then you should reference dmap loaders and load that information in from dmaps.
Spirited is offline  
Old 06/05/2014, 10:06   #3
 
elite*gold: 0
Join Date: Feb 2014
Posts: 31
Received Thanks: 0
it's not server i making memory based bot in vb.net and i need to make a small map in my bot when clicked the account move to this location i know how to move account but when i click the small map it goes to x , y like {122,45}
not {544,672}
elitesuckup is offline  
Old 06/06/2014, 00:29   #4
 
elite*gold: 0
Join Date: May 2014
Posts: 11
Received Thanks: 1
Quote:
Originally Posted by elitesuckup View Post
it's not server i making memory based bot in vb.net and i need to make a small map in my bot when clicked the account move to this location i know how to move account but when i click the small map it goes to x , y like {122,45}
not {544,672}
You need to write an algorithm that can convert between where is clicked on a picture (visal representation of the dmap file) to where the coords are in game.

Usually the simplest way to do this is to have each pixel of the image represent a certain grid of coords (say... shrink it in half or into a quarter of the original size) then when you click you can use that same ratio to convert back to ingame coords.


EG: If the original dmap is 2000-1000 and the image is half sized (1000-500) and you click on the coords 100-200 then in game that would be 200-400


Now there's still the problem of the dmap rotation but you at least get the idea
TwitchTime is offline  
Old 06/07/2014, 14:58   #5
 
elite*gold: 0
Join Date: Feb 2014
Posts: 31
Received Thanks: 0
Yea i got it but .....
i can't read the dmap file in vb.net i think i need dll or something
soo i trying to get it from memory in client or something like that :P
elitesuckup is offline  
Old 06/07/2014, 17:40   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
The dmap file doesn't require any additional dlls. It's the next best thing to plain text in a file - plain binary. All you have to do is look at any Conquer Online private server source and look at how it reads in dmap files. It's nothing complicated - anyone writing a bot should be able to do it without any effort. There are also dmap libraries that you can take advantage of, like tinymaps.
Spirited is offline  
Old 06/08/2014, 11:01   #7
 
elite*gold: 0
Join Date: Feb 2014
Posts: 31
Received Thanks: 0
i can't find any way to do that when i click the map in my bot it goes to x,y {74,200} instead of {543,731}
elitesuckup is offline  
Reply




All times are GMT +2. The time now is 12:41.


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.