help with the code to save teleportation

02/17/2018 23:52 p3rm3l0mga#1
Hi, how are you all?
I'm starting to create a game hack I'm in the 1 part XD
I want to do

teleport hack because with the quest to go and return takes a long time
I already have all the points I leave the game and I go back in and everything is still there XD

now using that code except on the ALT + 1 key and the character does not walk anymore
[Only registered and activated users can see links. Click Here To Register...]

xpos
[Only registered and activated users can see links. Click Here To Register...]

ypos
[Only registered and activated users can see links. Click Here To Register...]

Zpos
[Only registered and activated users can see links. Click Here To Register...]


and I had the idea of passing the code to C ++ or C # but I do not have much experience of those codes

so if someone can give me a little hand
help with the save of the Cheat engine or move to C ++, C #
asin that I have all echo postare everything here

Thank you
02/19/2018 11:25 かぎつめ#2
When handling with memory you should prefer c++.

You have some options here:
1> Copy the bytecode from ce and alloc / insert it with raw memory writing / allocating
2> Use a c++ DLL with Inline Asm + __declspec(naked)
3> Use a c++ DLL and recreate the structures / classes

For the beginning you should just try the second approach.
(3> You can recreate them with the offsets and if possible some RTTI to get the class names)
02/20/2018 00:47 p3rm3l0mga#3
Quote:
Originally Posted by かぎつめ View Post
When handling with memory you should prefer c++.

You have some options here:
1> Copy the bytecode from ce and alloc / insert it with raw memory writing / allocating
2> Use a c++ DLL with Inline Asm + __declspec(naked)
3> Use a c++ DLL and recreate the structures / classes

For the beginning you should just try the second approach.
(3> You can recreate them with the offsets and if possible some RTTI to get the class names)
thank you very much I'm going to put on that even though I already aregle it in CE
Now it works for me hehehe good + - I still get an error when I teleport I go underground: I'm trying to see how they are
if I use manual only the Y goes well but condominium use the set

it does not save me well
03/07/2018 00:25 icebox2010#4
float PosiX,PosiY,PosiZ;

(Save)
PosiX = *(float*)(Playerpointer+Offset_X);
PosiY = *(float*)(Playerpointer+Offset_Y);
PosiZ = *(float*)(Playerpointer+Offset_Z);

(Teleport Location)
*(float*)(Playerpointer+Offset_X) =PosiX;
*(float*)(Playerpointer+Offset_Y) =PosiY;
*(float*)(Playerpointer+Offset_Z) =PosiZ;
10/07/2018 03:12 p3rm3l0mga#5
Quote:
Originally Posted by icebox2010 View Post
float PosiX,PosiY,PosiZ;

(Save)
PosiX = *(float*)(Playerpointer+Offset_X);
PosiY = *(float*)(Playerpointer+Offset_Y);
PosiZ = *(float*)(Playerpointer+Offset_Z);

(Teleport Location)
*(float*)(Playerpointer+Offset_X) =PosiX;
*(float*)(Playerpointer+Offset_Y) =PosiY;
*(float*)(Playerpointer+Offset_Z) =PosiZ;

hello such and thank you very much for the code but I'm still lost how to use it
would be a lúa script or something of the type
10/07/2018 21:20 _asm#6
he's just telling you to dereference a pointer with the offset.
you're basically using the class-pointer which in this case is the player pointer and the offsets which correspond to the class attributes (x,y,z).
then you can either assign (write) or read the memory at that location. just make sure that the game isn't compiled with an ASLR flag since you'd first need to read the class-pointer dynamically using patterns. that approach is also much better than inline assembler and more readable.