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 a value of a pointer using a script.

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

Joined: 28 Feb 2016
Posts: 9

PostPosted: Tue Jul 04, 2017 6:52 am    Post subject: Changing a value of a pointer using a script. Reply with quote

How do I change the highlighted value in the picture from 23 to 45 using a script? I also need it to revert back to the original value when the script is disabled, no matter if it's 23 or whatever. I have no clue about this sort of thing so I need some help with it. I posted a bunch of random things in this picture hoping this would help, but if you need more information, ask what you need and I'll provide it.

Sorry if I posted in the wrong section.



untitled2.png
 Description:
 Filesize:  129.31 KB
 Viewed:  5409 Time(s)

untitled2.png


Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Tue Jul 04, 2017 7:04 am    Post subject: Reply with quote

you need to find what writes to that address 4BA183F
then you can modify the instruction

_________________
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
Easify
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 9

PostPosted: Tue Jul 04, 2017 7:52 am    Post subject: Reply with quote

There is one thing I forgot to say: there's a script that makes that value work. The one called "[Weapon Data Mod]" in this picture, it goes like this:

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(RightHandAOB,8A 86 00 01 00 00 C0 E8 07 84)
aobscan(LeftHandAOB,8A 86 00 01 00 00 C0 E8 05)
alloc(HandMem,256)

label(RHStart)
label(LHStart)
label(RHReturn)
label(LHReturn)
label(LHMem)
label(RHMem)
label(HandDat)
registersymbol(RHStart)
registersymbol(LHStart)
registersymbol(HandDat)

RightHandAOB:
RHStart:
jmp RHMem
nop
RHReturn:

LeftHandAOB:
LHStart:
jmp LHMem
nop
LHReturn:

HandMem:
RHMem:
mov al,[esi+00000100]
mov [HandDat],esi
jmp RHReturn

LHMem:
mov al,[esi+00000100]
mov [HandDat+4],esi
jmp LHReturn

HandDat:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
RHStart:
db 8A 86 00 01 00 00

LHStart:
db 8A 86 00 01 00 00

unregistersymbol(RHStart)
unregistersymbol(LHStart)
unregistersymbol(HandDat)
dealloc(HandMem)


Anyway, I restarted the game and now that address is different, it's 04B3E0EF, and as you see in the picture, there's nothing that writes to that address. What do I do now?



Untitled4.png
 Description:
 Filesize:  224.79 KB
 Viewed:  5392 Time(s)

Untitled4.png


Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Tue Jul 04, 2017 8:48 am    Post subject: Reply with quote

Easify wrote:

There is one thing I forgot to say: there's a script that makes that value work. The one called "[Weapon Data Mod]" in this picture, it goes like this:

if it do work, why you need to make another script!

Easify wrote:
Anyway, I restarted the game and now that address is different, it's 04B3E0EF, and as you see in the picture, there's nothing that writes to that address. What do I do now?

is it constant? << i know its not a constant, otherwise you wont find it easily.
do some action to get the value changed then the instruction will appear.

if its then you need to see whats accesses this address.

_________________
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
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