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 


Cheat Engine Forum Index
PostGo back to topic
GH*master
Expert Cheater
Reputation: 8
Joined: 10 Jan 2008
Posts: 159

PostPosted: Fri Feb 25, 2011 6:00 am    Post subject: Cheat init, enable and disable (LUA+AA)

I'm not sure about this is correcty, but may be useful to someone

Code:
script_Init = "[[
   alloc(Requisition,2048)
   registersymbil(Requisition)
   label(back_Requisition)
   registersymbil(back_Requisition)
   
   Requisition:
   fstp dword ptr [ebx+00000104]
   cmp [ebx+08],3E8
   jne back_Requisition
   cmp [ebx+00000104],47435000
   jg back_Requisition
   mov [ebx+00000104],47435000
   
   DOW2.exe+2144A5:
   jmp Requisition
   nop
   back_Requisition:
   ]]"
   
script_enable = "[[
   DOW2.exe+2144A5:
   jmp Requisition
   nop
   ]]"

script_disable = "[[
   DOW2.exe+2144A5:
   fstp dword ptr [ebx+00000104]
   ]]"

cheatRequisitionINIT = false;
cheatRequisition = true;

while (true) do
 sleep(1000)
 if keyUp(45) then

   if (cheatRequisitionINIT==false)
      autoAssemble(script_Init)
      cheatRequisitionINIT = true
      continue
   end

   if (cheatRequisition==true) then
      autoAssemble(script_enable)
   else
      autoAssemble(script_disable)

   cheatRequisition = not cheatRequisition
 end
end


Last edited by GH*master on Thu Dec 15, 2011 2:01 am; edited 7 times in total
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
imgoinginsane
Review: Approve
Post reference:
ReviewPosted: Thu Sep 19, 2013 5:05 am

sposibo )
translation: thanks

Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites