| View previous topic :: View next topic |
| Author |
Message |
knightblizs Advanced Cheater
Reputation: 0
Joined: 18 Jun 2013 Posts: 56
|
Posted: Thu Jul 25, 2013 5:24 pm Post subject: What was wrong with my script ? |
|
|
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10],100
originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx
exit:
jmp returnhere
XXXXXX:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
XXXXXX:
mov ecx,[eax+10]
mov [ebp-20],ecx
//Alt: db XX XX XX XX XX
|
i want change value to 64 ( 4 byte)
but when enable value changed to 256
whats wrong?
|
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Thu Jul 25, 2013 5:25 pm Post subject: |
|
|
use #100 for decimal.
right now you're using hex (100 in hex == 256)
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
knightblizs Advanced Cheater
Reputation: 0
Joined: 18 Jun 2013 Posts: 56
|
Posted: Thu Jul 25, 2013 5:40 pm Post subject: |
|
|
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10], #103
originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx
exit:
jmp returnhere
xxxxxx:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat |
value changed to 0 ? why?
| Description: |
|
| Filesize: |
78.27 KB |
| Viewed: |
3164 Time(s) |

|
|
|
| Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Thu Jul 25, 2013 5:41 pm Post subject: |
|
|
Using this:
Resets value back to 0?
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [eax+10],#100
originalcode:
mov ecx,[eax+10]
mov [ebp-20],ecx
exit:
jmp returnhere
XXXXXX:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
XXXXXX:
mov ecx,[eax+10]
mov [ebp-20],ecx
//Alt: db XX XX XX XX XX | [/code]
_________________
I'm rusty and getting older, help me re-learn lua. |
|
| Back to top |
|
 |
knightblizs Advanced Cheater
Reputation: 0
Joined: 18 Jun 2013 Posts: 56
|
Posted: Fri Jul 26, 2013 3:20 am Post subject: |
|
|
ok its work
but when making changes in the game and a few moments later value changed to 0
why?
|
|
| Back to top |
|
 |
|