onvoloper Master Cheater
Reputation: 0
Joined: 05 Jul 2006 Posts: 294
|
Posted: Sun Aug 05, 2007 11:52 pm Post subject: Change Value in script |
|
|
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:
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
How would I make that keep the value at 1?
Thanks
Hope this is enough information. [/code]
|
|