How to get the coords?

01/08/2007 17:21 schnoobie#1
Anyone already figured out how to get the coords like they are showed in the upperleft?

the coord offset given here is not that much accurate if you use for example a skill it is going to 0,0 after logging in or using a portal it is 0,0 when doing a jump it is set instat to the target coords. i am looking for a way to get the real coords, not much luck till now.
01/08/2007 17:43 blinko#2
i've done the memory reading stuffs for some time and well..i havent found the actual static coords i too have gotten the 0,0 when clicking a monster or using skills. However the original coords address's i got came from the CoMemory Peach released his source code for.And those stay as they was when u clicked and do not change to 0,0 so i dunno a way around it unless you set a piece of code like

private sub timer1_timer()
Dim Coords as string
txtCoords = Xcoord & " , " & Ycoord
Coords = txtCoords
end sub

private sub Timer2.timer()
if txtCoords.Text = "0 , 0" then
txtCoords.Text = Coords
end sub

something liek that may work where one timer will capture the string..and the other will detect if the text is 0,0 and thne if it is it'll set it back to the coords saved in the memory.Well the code i gave you here might not work the same you'll have to set a few extra parameters to have it store the coords without getting the 0,0 and then storing that as the string therefor returning the same value 0,0 over and over.
01/08/2007 17:47 giacometti#3
x coord: 00512180
y coord: 00512184

2 bytes. Static Address.
01/08/2007 17:50 schnoobie#4
the problem i am working atm at a autotravel function which record routes and travel it then, you can do it with alot of workarround without having the real coords, but it would be way easier and more stable to have the real.

Its even not possible to look when arrived at the target coords because the target coords are directly set after click.

edit:
@giacometti: read what i wrote in first post then you know that i am not looking for that offset because of the problems mentioned ;)
01/08/2007 20:33 giacometti#5
oh sorry, I read too fast. Anyway, if the coord is possible to the char be, the target coord will be directly set and you char will start to move to the target. I think that coord of the address i put here is set after received a packet from server. Just try to click too far (impossible jump) and it will not be set. So i think is just perfect for what you trying to do. correct me if I am wrong. (so you dont need to check for when arriving to the target).

P.S.: I tried to find the upperleft label of the coords but not successfull either.
01/09/2007 18:39 schnoobie#6
Quote:
Originally posted by giacometti@Jan 8 2007, 20:33
oh sorry, I read too fast. Anyway, if the coord is possible to the char be, the target coord will be directly set and you char will start to move to the target. I think that coord of the address i put here is set after received a packet from server. Just try to click too far (impossible jump) and it will not be set. So i think is just perfect for what you trying to do. correct me if I am wrong. (so you dont need to check for when arriving to the target).

P.S.: I tried to find the upperleft label of the coords but not successfull either.
nope its wrong its not enough because i need to record the coords and if do something while recording or jump through a portal i get wrong coords and have a problem and its easier todo te travelling with always knowing the coords.

but mission completed i figured out a way to read the real coords.
01/09/2007 19:17 giacometti#7
ok.... I am curious... was that a 2 byte integer too?
01/09/2007 19:55 schnoobie#8
Quote:
Originally posted by giacometti@Jan 9 2007, 19:17
ok.... I am curious... was that a 2 byte integer too?
all the coords even the one from the static adress are integers or more likely dword cause those values cant go into a -1 and they all are 4 byte long doesnt matter if they only use values <FFFF or not ;)

and yes they are all the same wouldnt make much sense to take different integertypes but they arent static they change all the time even while doing nothing they change with a time in the ms area, at least till the depth i stepped into.
01/10/2007 03:42 bigassmuffin#9
I made this for you quickly, it will display the coords on top left of screen, will not record them though.
01/10/2007 15:52 schnoobie#10
Quote:
Originally posted by bigassmuffin@Jan 10 2007, 03:42
I made this for you quickly, it will display the coords on top left of screen, will not record them though.
well i asked for the real coords not for a simple autoit script that takes the mousecoords and as i already wrote i found what i searched for