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 


Set Desired Value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Aug 24, 2017 12:29 pm    Post subject: Set Desired Value Reply with quote

Hello, I wanted to know since I forgot how can I manually choose my value for example in this code:

Code:
{ Game   : RememberMe.exe
  Version:
  Date   : 2017-08-24
  Author : Kalas

  This script does blah blah blah
}

[ENABLE]

aobscanmodule(AddEMPAOB,RememberMe.exe,01 8E E0 00 00 00)
alloc(newmem,$100,AddEMPAOB)

label(code)
label(return)

newmem:

code:
  add [esi+000000E0],ecx
  jmp return

AddEMPAOB:
  jmp newmem
  nop
return:
registersymbol(AddEMPAOB)

[DISABLE]

AddEMPAOB:
  db 01 8E E0 00 00 00

unregistersymbol(AddEMPAOB)
dealloc(newmem)


Basically I want to make a Script where I can assign it outside of the script and let's say add 5,000, but so I can change the value through an address. I assume dq?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Thu Aug 24, 2017 12:56 pm    Post subject: Reply with quote

Code:
[ENABLE] 

aobscanmodule(AddEMPAOB,RememberMe.exe,01 8E E0 00 00 00) 
alloc(newmem,$100,AddEMPAOB) 
alloc(newaddress,04)
registersymbol(newaddress)‎
label(code) 
label(return) 

newmem: 
push eax
lea eax,[esi+000000E0]
mov [newaddress],eax
pop eax

code: 
  add [esi+000000E0],ecx 
  jmp return 

newaddress:
dd 00‎

AddEMPAOB: 
  jmp newmem 
  nop 
return: 
registersymbol(AddEMPAOB) 

[DISABLE] 

AddEMPAOB: 
  db 01 8E E0 00 00 00 

unregistersymbol(newaddress)
unregistersymbol(AddEMPAOB) 
dealloc(newaddress)‎
dealloc(newmem)


add newaddress to address-list as 4 byte.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Aug 24, 2017 1:09 pm    Post subject: Reply with quote

Hey, thank you for the reply Smile
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