Lem0nz How do I cheat?
Reputation: 0
Joined: 24 Feb 2017 Posts: 1
|
Posted: Fri Feb 24, 2017 8:40 pm Post subject: Problem finding offset for an instante of a vector |
|
|
Hello!
I'm currently trying to create a bot to farm for me.
I'll tell you what I have.
Atm I need to get access to the vector (a C++ vector), I've got my hands on the source code (found it on the web) and was able to confirm that this information is true.
I've also found that the vector only has RENDERED mobs, which I can see.
I've already found elements inside the vector and even tried to reduce the number of rendered mobs to 1 so the element I would find by looking up for his ID would be the only element inside the vector.
But, how will I find the offset?
I think what I have to do is get the process first address and add the offset to the vector instance so I can get access to his members and iterate (x bytes at a time and casting it to the template of the vector) and then I could get the coordinates of the monsters.
How can I find out the correct address (which the process uses first to alocate memory) so I can subtract the address of the vector and get the offset?
Is my logic correct? Please give me an insight if you can, this is my first time trying something like this.
By the way, the bot will work based on a dll I will inject in the game (I've tested it and I can inject without problems).
The game in question is Metin2, and I'm playing on a private server.
Thank you for your time.
Lem0nz
|
|