I have a problem with my script for Asphalt 8 v3.4.0m. I made a script for Free Bosters (+1 Free everytime when you click the button) but when I add Free Booster, the time of boosters is changing to unimaginable numbers which leads then to the crash of the game - you can see in the picture what I mean.
I was trying to change the values in my script (2 bytes, 4 bytes etc.) and when I change the value to different than +10, the game is always crashing after one click on any booster.
How to fix my script that my script when activated, it won't be adding a crazy time to boosters, only it will be adding +1 amount to the boosters?
---------------------------------------
My script for Free Boosters +1:
Code: Select all
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
add dword ptr [esi+0000033C],+10
exit:
jmp returnhere
"Asphalt8.exe"+9BAA6E:
jmp newmem
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
"Asphalt8.exe"+9BAA6E:
add dword ptr [esi+0000033C],-10
//Alt: db 83 86 3C 03 00 00 F0