Code:Hack.Addresses. LTClient = Hack.Addresses.FindPattern((DWORD)GetModuleHandle(L"Engine.exe"), 0x4BE000, (PBYTE)"\x8B\x44\x24\x04\x50\x68\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x83\xC4\x08\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x8B\xC1\x33\xC9", "xxxxxx????x????xxxxxxxxxxxxxxxxxxxxx" ); ///////////////////////////////////////// typedef int (__cdecl* RunConsoleCommand_t)(char* cmd); class cMisc{ public: int WritePrivateProfileIntW(LPCTSTR lpAppName, LPCTSTR lpKeyName, int nInteger, LPCTSTR lpFileName);//Write values, not strings int WritePrivateProfileIntA(LPCSTR lpAppName, LPCSTR lpKeyName, int nInteger, LPCSTR lpFileName);//Write values, not strings char *GetFrameRate();//Current FPS, NEED Globals char *Fontname;//The Fontname char *Path;//The SafePath void GetMouse(POINT &Mouse);//Convert to the Local MousePosition void MemPos(); void HEXMemory(DWORD address, BYTE* val, int bytes);//Edit the BYTES of an address void SearchAddies();//Search for addies void HackIt(int sleep);//Normal hack void, best value is 250 void PermaHack(LPDIRECT3DDEVICE9 pDevice);//For RCC Hacks and some stuff void ConvertToKey(KEY &Key);//Convert an integer to the value of the pressed Key void SetUp();//Set all by startup(Not D3D) void SetUp3D();//Set all by startup(D3D Only) void Log(char *fmt,...);//Log something to C:\The.log RunConsoleCommand_t RunConsoleCommand;//Run Commands to the Console char* Encrypt(const char* text); char* Decrypt(const char* text); int GetRandomNumber(UINT MinValue,UINT MaxValue); }; ////////////////////////////////////// void cMisc::SetUp() { Hack.Misc. RunConsoleCommand = (RunConsoleCommand_t)Hack.Addresses. LTClient; //... } /////////////////////////////////// void cMisc::PermaHack(LPDIRECT3DDEVICE9 pDevice) { if(Hack.Readys.IsIngame()) Hack.Misc. RunConsoleCommand("ShowFPS"); //... } //////////////////////////////// Ur_Present_or_EndScene_Function(LPDIRECT3DDEVICE9 pDevice) { Hack.Misc.PermaHack(pDevice); }
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Okay, using this class...
How would the syntax look for enabling/disabling the PTC commands?
Example:
[highlight=c++]
if(Visual[1] > 0)
{
Directx.CPush("SkelModelStencil", "1");
}
else
{
Directx.CPush("SkelModelStencil", "1");
}
[/highlight]
Pushing the command...
[highlight=c++]
void __cdecl CPush(const char *Command, char *Value)
{
char *PCommand = new char[256];
sprintf(PCommand, "%s %s", Command, Value);
DWORD LTC = 0x00485E10;
void *Control = (void*)LTC;
__asm
{
push PCommand;
call Control;
add esp, 4;
}
}
[/highlight]
The NOT working PTC function...
NOTE:
#91; = [
Last edited by D-Vid the DBag; 03-02-2011 at 05:37 PM.
[IMG]https://i33.photobucke*****m/albums/d55/y_owns_you/D-Vid665.png[/IMG]
Grim (03-03-2011)
[IMG]https://i33.photobucke*****m/albums/d55/y_owns_you/D-Vid665.png[/IMG]
u NOT need my classes...
the functiosn u need still public, just REMOVE my classes...
are u realy C++?
To say it easy:
The Pointer for Gordon`s RCC (i used it) is the Pointer of the real RCC in the Engine.exe
so u use the samefunction what nexon use for their game
Last edited by kotentopf; 03-02-2011 at 06:06 PM.
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Grim (03-03-2011)
I didn't write that...
That was a function that I was given.
Lolz.
That's how the command was when I received it.
I just used it as an example to show roughly what I am requiring.
So, as of the base you're talking about that kotentopf made, is that the one posted on the site that he helps code for, with Gordon`?
Cuz if so, I already have it.
Well, sir...
I don't need the pointer.
I am simply just asking if you could show me a proper example(noob proof it if you need), of a PTC method that will push the commands. The ones I posted above, are just examples of what I was talking about that I am asking for.
Last edited by D-Vid the DBag; 03-02-2011 at 06:09 PM.
[IMG]https://i33.photobucke*****m/albums/d55/y_owns_you/D-Vid665.png[/IMG]
its not realy Gordon`s PTC (RCC)
its more "How to: Pointer"
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Grim (03-03-2011)
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Grim (03-03-2011)
i love you guys.. people who are still learning talking to people who actually know, like they dont know what they're doing lol
C++ is difficult to understand, especially if you didn't write the coding yourself, and even more difficult to explain if you did.. the best and only proper way of learning someone elses codes, classes, functions, or anything.. Trial And Error.. my favorite