 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
omoe Grandmaster Cheater
Reputation: 8
Joined: 11 Jun 2013 Posts: 547
|
Posted: Mon Sep 30, 2013 3:53 am Post subject: Need help with AA script . |
|
|
Hi , So i was wondering if someone can tell me what could be the problem with the script below because it works fine for like couple minutes then it crashes the game , Thanks .
| Code: |
globalalloc(newmem,4096)
aobscan(sPoint,89 50 04 8B 13 89 10 F7 C2 00 00 08 00 74 06 8B 40 04 FF 40 04 F7 C6 00 00 08 00 74 0D 83 41 04 FF 75 07)
registersymbol(sPoint)
label(returnhere)
label(originalcode)
label(exit)
label(Cash)
label(kicrystal)
label(skill)
label(ammo)
newmem:
ammo:
push ecx
mov ecx,[eax+0c]
cmp [eax+58],00080004
jne originalcode
cmp dword ptr [ecx+1c],'_Rel'
je originalcode
cmp dword ptr [ecx+1c],'Curr'
je originalcode
cmp dword ptr [ecx+1c],'Clip'
jne Cash
mov [eax+04],edx
mov edx,[ebx]
jmp exit
//////////////////////////////////////////////
Cash:
cmp dword ptr [ecx+1c],'Money'
jne kicrystal
mov [eax+04],edx
mov edx,[ebx]
jmp exit
///////////////////////////////////////////////////
kicrystal:
cmp [eax+18],(float)1
jne skill
cmp dword ptr [ecx+14],#11
jne originalcode
cmp dword ptr [ecx+1C],'Powe'
jne skill
cmp dword ptr [ecx+20],'rPoi'
jne skill
mov [eax+04],edx
mov edx,[ebx]
jmp exit
////////////////////////////////////////////////////
skill:
cmp dword ptr [ecx+14],#11
jne originalcode
cmp dword ptr [ecx+1C],'Skil'
jne originalcode
cmp dword ptr [ecx+20],'lPoi'
jne originalcode
//mov edx,(float)10
mov [eax+04],edx
mov edx,[ebx]
jmp exit
////////////////////////////////////////////////////////////////
originalcode:
mov [eax+04],edx
mov edx,[ebx]
jmp exit
///////////////////////////////////////////////////////////////////////
exit:
pop ecx
jmp returnhere
sPoint:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
unregistersymbol(sPoint)
unregistersymbol(newmem)
//"sw.exe"+16EAEA:
sPoint:
mov [eax+04],edx
mov edx,[ebx]
//Alt: db 89 50 04 8B 13 |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25856 Location: The netherlands
|
Posted: Mon Sep 30, 2013 5:15 am Post subject: |
|
|
Only weird thing i see is the compare for money instead of checking if it is 5 bytes long and check if it starts with mone
(Also, none of the cheats seem to do anything, but i guess that is because you're testing)
Perhaps there is a rare occasion in lua where eax+c doesn't contain a valid pointer? (Not sure, i haven't delved into lua much)
_________________
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 |
|
 |
omoe Grandmaster Cheater
Reputation: 8
Joined: 11 Jun 2013 Posts: 547
|
Posted: Mon Sep 30, 2013 10:40 am Post subject: |
|
|
| Dark Byte wrote: | Only weird thing i see is the compare for money instead of checking if it is 5 bytes long and check if it starts with mone
(Also, none of the cheats seem to do anything, but i guess that is because you're testing)
Perhaps there is a rare occasion in lua where eax+c doesn't contain a valid pointer? (Not sure, i haven't delved into lua much) |
Thx DB for answering , I was doing some testing with the script and noticed that when i do cmp any value or string to [ecx+any offset] it causes the game to crash even tho it works perfectly fine for like a minute and the required cheats work fine too so i know the pointer is correct, What could be causing such problem?
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|