| View previous topic :: View next topic |
| Author |
Message |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Tue May 03, 2016 5:15 am Post subject: Why this script Cause crashing game? |
|
|
Hi.
I test "Geri" stronghold Crusader II health script.
Why "Geri" stronghold Crusader II health script crashing this game:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(drain)
label(label2)
registersymbol(label2)
aobscan(aob2,D9 82 8C 03 00 00 89)
newmem: //this is allocated memory, you have read,write,execute access
pushfd
pushad
push 70 //F1 Key
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne drain
mov [edx+0000038C],(float)999999999
mov [edx+00000390],(float)999999999
mov [edx+00000394],(float)999999999
drain:
pushad
push 71 //F2 Key
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne originalcode
mov [edx+0000038C],(float)1
originalcode:
popfd
fld dword ptr [edx+0000038C]
exit:
jmp returnhere
aob2:
label2:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
label2:
db D9 82 8C 03 00 00
unregistersymbol(label2) |
There is problem this script?(You can find problem in script?)
Thanks,
SJL002
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25837 Location: The netherlands
|
Posted: Tue May 03, 2016 5:33 am Post subject: |
|
|
perhaps the aob is too small, or it's finding a different/wrong location because the offset (38c) has changed
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Tue May 03, 2016 6:59 am Post subject: |
|
|
Thanks for your answer . I can solve this problem.
I have a other problem in the Stronghold crusader II.
I can find gold value but i cant change to other value . I mean is : when i change value and freeze when go to the game: no change in the amount of gold in the game cannot be viewed(or cannot be see it change)? {Help}
|
|
| Back to top |
|
 |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Tue May 03, 2016 7:11 am Post subject: |
|
|
| Quote: | I have a other problem in the Stronghold crusader II.
I can find gold value but i cant change to other value . I mean is : when i change value and freeze when go to the game: no change in the amount of gold in the game cannot be viewed(or cannot be see it change)? {Help} |
Could be that the stuff you found isn't actually gold. Could be that gold is a encrypted value and will have to be searched via increased/decreased or changed/unchanged.
|
|
| Back to top |
|
 |
|