Quote:
Originally Posted by elitesuckup
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