Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Couple question's C++ Codecaves

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Drunkenclam
How do I cheat?
Reputation: 0

Joined: 24 Jun 2009
Posts: 1

PostPosted: Sat Jan 29, 2011 10:16 am    Post subject: Couple question's C++ Codecaves Reply with quote

So i am trying to make a trainer but i am confused with these codecaves
So the source i use has it layed out like this

Code:
#pragma region CSEAX UA

void __declspec(naked) CSEAXUAAsm()
{
   __asm
   {
      mov edi,[ulCharAddy]
      mov edi,[edi]
      add edi,[ulAttackCountOffset]
      cmp byte ptr [edi],0x50 //attack limit: 80 dec
      jl CSXReturn
      
      mov edi,[ulCharAddy]
      mov edi,[edi]
      add edi,[ulpIDOffset]
      cmp esi,[edi]
      jne CSXReturn

      add eax,0x0A //reset attack counter

      CSXReturn:
      mov [ebx],eax
      mov edi,[ebp+0x10]
      jmp [ulCSEAXReturn]
   }
}

void Form1::checkBox4_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
{
   if (checkBox4->Checked)
   {
      memcpy(bCSEAXMem, (void*)ulCSEAXAddy, 5);
      Jump(ulCSEAXAddy, CSEAXUAAsm, 0);
   }
   else
   {
      memcpy((void*)ulCSEAXAddy, bCSEAXMem, 5);
   }
}

#pragma endregion


So how would i put this script into the source

Code:
[ENABLE]
alloc(Pvac,200)
 
0099C5D3:
jmp Pvac
nop
 
Pvac:
mov ecx,[ebx+000001a0]
mov [ecx+68],00
jmp 0099C5D9
 
[DISABLE]
dealloc(Pvac)
0099C5D3:
mov ecx,[ebx+000001a0]
//Alt: db 8B 8B A0 01 00 00


And one more question whats with the mcopy

How would i know when to put Writememory

Or CopyMemery
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites