sgsgwv$6263 Advanced Cheater
Reputation: 0
Joined: 05 Aug 2020 Posts: 84
|
Posted: Sat Mar 26, 2022 9:44 am Post subject: Crash on this AA script |
|
|
Below is my AA script for a game. Its crashing and I can't find the problem.
Help me find the problem.
Code: |
[ENABLE]
alloc(newmem_forSwing,100)
alloc(newmemforspeed,100)
alloc(memforsafepass,50)
alloc(origX,4)
alloc(origY,4)
alloc(degree,4)
alloc(radmult,4)
alloc(angle,4)
registersymbol(degree)
registersymbol(angle)
angle:
dd (float)45.0
radmult:
dd (float)0.01745
newmem_forSwing:
mov [edx],eax
fmul dword ptr [esp+24]
cmp edx,00300000
jle "game.exe"+1442BF
cmp (byte)["game.exe"+3EDBFE],0
je "game.exe"+1442BF
push ecx
mov ecx,[edx]
mov [origX],ecx
pop ecx
jmp "game.exe"+1442BF
memforsafepass:
mov [edx+08],eax
mov [ebx+04],ecx
jmp "game.exe"+1442E4
newmemforspeed:
cmp edx,00300000
jle memforsafepass
cmp (byte)["game.exe"+3EDBFE],0
je memforsafepass
push edi
mov edi,[edx+08]
mov [origY],edi
pop edi
// here I am calculating the rotated coordinate for origX and origY using angle.
//I am basically calculating this equation : x=xcos - ysin and y=xsin+ycos where x is origX and y is origY and theta here is angle.
fld [angle]
fmul [radmult]
fstp [degree]
fld [degree]
fcos
fld [degree]
fsin
fld [origY]
fmul st(1)
fld [origX]
fmul st(3)
fsub st(1)
fstp [edx]
fstp st(0)
fld [origX]
fmul st(1)
fld [origY]
fmul st(3)
fadd st(1)
fstp [edx+08]
fstp st(0)
fstp st(0)
fstp st(0)
mov [ebx+04],ecx
mov ["game.exe"+3EDBFE],0
jmp "game.exe"+1442E4
"game.exe"+1442B9: //swing address
jmp newmem_forSwing
nop
"game.exe"+1442DE:
jmp newmemforspeed
nop
[DISABLE]
unregistersymbol(angle)
unregistersymbol(degree)
dealloc(angle)
dealloc(newmem_forSwing)
dealloc(newmemforspeed)
dealloc(memforsafepass)
dealloc(origX)
dealloc(origY)
dealloc(degree)
dealloc(radmult)
"game.exe"+1442B9:
mov [edx],eax
fmul dword ptr [esp+24]
"game.exe"+1442DE:
mov [edx+08],eax
mov [ebx+04],ecx
|
|
|