In the beggining, thank you all for your mega support and for helping me explaining a lot of functions.
I have a problem with my script, my script when activated is affecting a lot of sectors in game which I don't want to change. How to separate my script from these functions???
I was trying to hack Asphalt 8 game, I tried to reconstruct this hack: [Link]
I already found that when car is wrecked/damaged, the value is 1, when the car is "new" - value is 0 (4-bytes search).
Also when the "screen" is broken, value is 1, and when the "screen" is not-broken, value is 0.
I made a script for "damaged cars" in Asphalt 8, here is my script:
Code: Select all
[ENABLE]
//DAMAGED CAR - SCRIPT BELOW
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
mov byte ptr [ecx+000001BB],00
exit:
jmp returnhere
"Asphalt8.exe"+A9E634:
jmp newmem
nop
nop
returnhere:
//NO BROKEN SCREEN - SCRIPT BELOW
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)
newmem2:
originalcode2:
mov [esi+00000358],00
exit2:
jmp returnhere2
"Asphalt8.exe"+1E583F:
jmp newmem2
nop
returnhere2:
[DISABLE]
//DAMAGED CAR - SCRIPT BELOW
dealloc(newmem)
"Asphalt8.exe"+A9E634:
cmp byte ptr [ecx+000001BB],01
//Alt: db 80 B9 BB 01 00 00 00
//NO BROKEN SCREEN - SCRIPT BELOW
dealloc(newmem2)
"Asphalt8.exe"+1E583F:
db 38 86 58 03 00 00 74 7F A1 F4 71 B3 01 38 98 48 02 00 00 74 72 39 9E 5C 03 00 00 75 6A 68 FC 00 00 00 E8 EA 29 A9 00 8B F8 83 C4 04 89 7D E8 89 5D FC 85 FF 74 3C 68 FC 00 00 00 53 57 E8 17 00 10 01 83 C4 0C 89 5D F0
//Alt: db 38 9E 58 03 00 00
- camera view
- changing gravity
- there are some effects of black clouds appearing and sometimes text WRECKED appearing
How can I separate the above-mentioned things so that they do not activate with my script?
Please, check the following video so that you know exactly what I am talking about:
[Link]
I am waiting for your answers or suggestions,
Best Regardsm
Marek