I have a question from compare two thing that can find grenade string ID and can't find ammo string ID.
how to make script for them with one string ID?
That grenade move to 5 and ammo move to 99 with flags.
Thanks.
this is script:
Code: Select all
[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
cmp word ptr [esp+4C],'expl' //grenade string id
jns originalcode
cmp word ptr [esp+50],'osiv' //grenade string id
jns originalcode
cmp word ptr [esp+54],'egre' //grenade string id
jns originalcode
cmp word ptr [esp+58],'nade' //grenade string id
jns originalcode
mov [eax+14],5
jmp originalcode
originalcode:
mov eax,[eax+14]
pop ecx
ret 0004
exit:
jmp returnhere
"Crysis.exe"+17C7BF:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Crysis.exe"+17C7BF:
mov eax,[eax+14]
pop ecx
ret 0004
//Alt: db 8B 40 14 59 C2 04 00