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 


Change Value in script

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

Joined: 05 Jul 2006
Posts: 294

PostPosted: Sun Aug 05, 2007 11:52 pm    Post subject: Change Value in script Reply with quote

I have an address I want to put that address in a script so when my script is ticked the value will change to 1 but when its not ticked it will work its usual way. The address is for minesweeper it is one where you can keep playing after you've hit a bomb...it's static.
The address is:
Code:
01005000

When its value is 1 you can keep playing, when it is 16 you can't.
When I open a template this is the code it uses:
Code:
originalcode:
add [eax],al
pop esi
je 0100350f

Well thats the code it uses to get from 1 (Playing) to 16 (Not Playing). To get to 1 from 16 it uses:
Code:
originalcode:
mov [01005000],00000001

I tried this:
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

01003736:
jmp newmem
nop
nop
nop
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here


originalcode:
mov [01005000],00000001

exit:
jmp returnhere
 
 
[DISABLE]
dealloc(newmem)
01003736:
mov [01005000],00000016

But it failed...didnt keep it 1 when enabled and didn't keep it 16 when disabled Sad

How would I make that keep the value at 1?
Thanks
Hope this is enough information. Very Happy [/code]
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