Offset to get the character's location

07/29/2008 14:52 daoloth#1
Hi everyone.

I would really appreciate your help about Metin2.
I'm currently writing a tool in which I need to get
the player's position on the map, and the name
(or any related information) of the map.

Could you give me the Cheat Teable you use in
Cheat Engine, or send an explaination for me
to understand how you find the values in the
metin2.bin executable. I fail in finding the correct
offsets, and I wonder where they are located in
the french most recent client program.
Thank you in advance, for any help you could bring.

Daoloth
07/29/2008 15:18 ChickenWingZ#2
HElft dem armen mal ich peil nix^^
07/29/2008 15:25 Quade#3
Und das musst du jetzt unbedingt kund tun? -.-
07/29/2008 15:31 daoloth#4
is that possible to answer in english, please ? :) thx
07/29/2008 16:17 Seedlord#5
For finding Values you have to scann on Float.

1. Scann for an unknown initual Value.
2. Move on the map and look to the coordinates.
3. If the x-coordinate have increased scann for increased Value. If its decreased scann for decreased Value.
4. Now move again at map and do same thing like number 3.
5. You have to scann until there are only 10 Values.

The Values look like this: If your X-coordinate is 400 the Float Value must be 40000. It might be 40001 too. You have to look for the first 3 numbers on the Float Values.
And on of these Values is the Value for Teleport. If you change Value you will be teleported.

Sorry for bad english...i'm tired
07/29/2008 16:22 daoloth#6
Thank you so much, that's exactly what I needed to know.
Thanks again. I'll try it as soon as possible.

Is there any information about the map name in the memory
image of the <metin2.bin> process ? Or even an index I could
compare to a specific value ? For instance :
1-Orcs Map
2-Demon Tower
and so on....

That would be great ! :)

Daoloth
07/29/2008 16:37 Seedlord#7
Hmm. I don't know. I think it would be possible to find, when you scann for a changed Value on every Mapchange.
07/29/2008 16:39 daoloth#8
Actually I found the coordinates.
They are in a contiguous 8-bits memory area.
The first float is the X coordinate, and the
second one is the opposite of the Y coordinate.

I now need the map information. :)

Daoloth
07/30/2008 12:16 fieser-hund#9
mal hoffen was raus kommt :):)
07/31/2008 14:04 daoloth#10
Hi every body. As I told you, I found the coordinates. No problem.
Five minutes ago, I found the server name and the current channel.
Searching text "$SERVER, CH$CHANNEL" was a pretty idea. Fine.

I now need to get the map index (or anything that could give me
information about the current map) from the metin2.bin executable.
And that seems much more complicated than expected.

I searched the map name like it is written on the teleport gates.
I found 4 occurences. But they never change ! I'll try to see if there
is a pointer pointing one of them to tell the server where the player is.

Actually, about the map, I don't even know the type of the value I'm
looking for. Is that a float, or anything else ? I tried to look after
'changed values' after mapchanges. But with 20 mapchanges, it still
remains more than 2 000 000 possible addresses !! That's crazy...

I tried to look into the memory region located around the coordinates,
but as I don't know the type of values I'm looking for, I cannot do
anything. It seems that this value is difficult to retrieve, because
on every teleportation tool I downloaded from this forum, we have to
specify the map ourself. It's not set automatically in the program.
Strange, isn't it ?

Has anyone any idea about that ?
Any help is appreciated. Thx so much.

Daoloth
07/31/2008 18:25 Seedlord#11
Hmm. I forgot to say, that all Adresses changes with changing Map, changing Channel or Relogging. So scanning for a specific Map is impossible.
On the Teleporthacks we had, we can teleport only within one map.
07/31/2008 19:47 Vulcanraven#12
#moved next time post it in "Metin 2 Main Discussions / Questions"

thanks
08/12/2008 19:26 daoloth#13
Still nothing about a map index or anything related to the map ?
I try to find a byte that gives me the current map, but I fail.
More difficult than I thought it was.

Daoloth
08/13/2008 03:00 Mi4uric3#14
Ask Gex001 :)
08/13/2008 13:48 daoloth#15
I sent him a private message on this forum 2 weeks ago. No response.