Back when I did alot of teleporting (2004-2005), I used a simple method to allow me to save my current location and teleport back to it at any time (on the same continent). This method can be used for most hacks.
It requires some C/C++ knowledge, but what you do is:
A.) Find your code you are going to bypass/inject to.
B.) Create your codecave
C.) Allocate some EMPTY memory space
D.) Write your codecave to read from said memory space
E.) Write your information on the fly to that memory space dynamically.
For examaple: (This code does not exist in PS, only an example)
Code:
//Let's take this code: 00696969 MOV EAX, DWORD PTR [EDI+18] ;MAX Capacitor?? //Change it to: 00696969 JMP 002B0000 ;Our codecave //Our codecave looks like: 002B0000 MOV EAX, DWORD PTR [002B1000] 002B0006 JMP 0069696C ;The code immediately after our JMP to codecave
Code:
//Inside our main loop:
float fMyValue = 0.0;
if (GetAsyncKeyState(VK_UP))
{
fMyValue += 0.1;
}
else if (GetAsyncKeyState(VK_DOWN))
{
if (fMyValue > 0.0) fMyValue -= 0.1; //Don't wanna go negative, bad juju!
}
MemoryWriteFunction(0x002B1000,fMyValue); //Google for WriteProcessMemory
Keep in mind, this is all theoretical code and WILL NOT work as is. There is more C++ code you need (google!) and the code injection is ONLY an example.
Enjoy!
-Seth






