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 


changing script value

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

Joined: 18 Oct 2014
Posts: 5

PostPosted: Mon Mar 06, 2017 6:26 am    Post subject: changing script value Reply with quote

there's script which set value to 99999
how can i change it to whatever i want ?

Quote:
[ENABLE]
aobscanmodule(EVENTPOINTS,JustCause3.exe,49 8B 4F 18 4C 39 E1)
alloc(newmem,$1000,EVENTPOINTS)

label(code)
label(return)

newmem:

code:
mov [r15+18],#99999
mov rcx,[r15+18]
cmp rcx,r12
jmp return

EVENTPOINTS:
jmp code
nop
nop
return:
registersymbol(EVENTPOINTS)

[DISABLE]
EVENTPOINTS:
db 49 8B 4F 18 4C 39 E1
unregistersymbol(EVENTPOINTS)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: "JustCause3.exe"+4041179

"JustCause3.exe"+4041151: 48 0F 49 C2 - cmovns rax,rdx
"JustCause3.exe"+4041155: 8B 00 - mov eax,[rax]
"JustCause3.exe"+4041157: 89 43 0C - mov [rbx+0C],eax
"JustCause3.exe"+404115A: 80 7B 18 00 - cmp byte ptr [rbx+18],00
"JustCause3.exe"+404115E: 74 0B - je JustCause3.exe+404116B
"JustCause3.exe"+4041160: 48 8B 41 08 - mov rax,[rcx+08]
"JustCause3.exe"+4041164: C6 80 78 01 00 00 01 - mov byte ptr [rax+00000178],01
"JustCause3.exe"+404116B: 48 83 C3 20 - add rbx,20
"JustCause3.exe"+404116F: 49 3B 5D 48 - cmp rbx,[r13+48]
"JustCause3.exe"+4041173: 0F 85 74 FE FF FF - jne JustCause3.exe+4040FED
// ---------- INJECTING HERE ----------
"JustCause3.exe"+4041179: 49 8B 4F 18 - mov rcx,[r15+18]
"JustCause3.exe"+404117D: 4C 39 E1 - cmp rcx,r12
// ---------- DONE INJECTING ----------
"JustCause3.exe"+4041180: 7E 0B - jle JustCause3.exe+404118D
"JustCause3.exe"+4041182: 49 8B 47 08 - mov rax,[r15+08]
"JustCause3.exe"+4041186: 48 89 88 F8 00 00 00 - mov [rax+000000F8],rcx
"JustCause3.exe"+404118D: 4D 8B 47 08 - mov r8,[r15+08]
"JustCause3.exe"+4041191: 4C 89 44 24 20 - mov [rsp+20],r8
"JustCause3.exe"+4041196: 41 B1 01 - mov cl,01
"JustCause3.exe"+4041199: 48 8D 54 24 70 - lea rdx,[rsp+70]
"JustCause3.exe"+404119E: 49 8B 4F 10 - mov rcx,[r15+10]
"JustCause3.exe"+40411A2: E8 49 1E FD FF - call JustCause3.exe+4012FF0
"JustCause3.exe"+40411A7: 90 - nop
}
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Mar 06, 2017 6:36 am    Post subject: Reply with quote

Change mov [r15+18],#99999 ( Change the 99999 to whatever you want and click Ok )

Also change $1000 to $100 you don't need so much.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Mar 06, 2017 6:50 am    Post subject: Reply with quote

Code:
[ENABLE]
aobscanmodule(eventpoints,justcause3.exe,49 8b 4f 18 4c 39 e1)
alloc(newmem,$1000,eventpoints)

label(originalcode)
label(return)
label(value)

registersymbol(eventpoints)
registersymbol(value)

newmem:
cmp [value],0
je @f

push rdi
mov rdi,[value]
mov [r15+18],rdi
pop rdi

originalcode:
mov rcx,[r15+18]
cmp rcx,r12
jmp return

value:
dd 0

eventpoints:
jmp newmem
nop
nop
return:

[DISABLE]
eventpoints:
dealloc(newmem)
db 49 8b 4f 18 4c 39 e1

unregistersymbol(eventpoints)
unregistersymbol(value)


Once the script is activated, add an address to your table, manually, and put value in the address field. Assign hotkeys to alter the value. Best to use an instruction that is accessing the value constantly, if this one is not.
Back to top
View user's profile Send private message
ronnie25
How do I cheat?
Reputation: 0

Joined: 18 Oct 2014
Posts: 5

PostPosted: Mon Mar 06, 2017 7:19 am    Post subject: Reply with quote

thanks KalasWD it works

++METHOS can you explain further i'm a noob
so i change the original script with yours then what ?
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Mar 06, 2017 10:26 am    Post subject: Reply with quote

It means basically "Lea" Load effective address.

When you add address manually, choose pointer or in the address field just enter value It will basically write the amount of money you have and when you change the value It will change it to whatever you want upon gaining/spending money, depends.

pretty sure you could have just do that:

alloc(pts,4)
registersymbol(pts)

push rbx
lea rbx,(address)
mov [pts],rbx
pop rbx

[dsiable]

dealloc(pts)
unregistersymbol(pts)


And then simply add address manually, pointer - and enter "pts" as the address.

Same thing I'm pretty sure
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Mar 06, 2017 5:45 pm    Post subject: Reply with quote

ronnie25-
Instructions were provided in my previous post.

KalasWD-
No need to load effective address and set it as a pointer in this case.
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