Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need help with Stealth Edit.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Magusmarisa
Newbie cheater
Reputation: 0

Joined: 03 May 2015
Posts: 10

PostPosted: Fri Oct 08, 2021 1:34 pm    Post subject: Need help with Stealth Edit. Reply with quote

I'm trying to convert this script into "stealthedit format" but I'm having tones of issues. Previously I had no problem converting simple AOB injection scripts to use with stealthedit but this script is just giving me headache. I tried everything but its either crash or gives me stealthedit errors. I'm giving up and asking for help from more experienced users.

Code:
[ENABLE]

// your enable code
alloc(newmem,2048,"DarkSoulsIII.exe"+9CF463)
label(returnhere)
label(originalcode)
label(exit)

label(_1)
label(_2)

label(_3)
label(_4)
label(_5)
label(_6)
label(_7)
label(_8)
label(_9)

label(On)
registersymbol(On)
label(Distance)
registersymbol(Distance)
label(X)
registersymbol(X)
label(Y)
registersymbol(Y)
label(Z)
registersymbol(Z)
label(Angle)
registersymbol(Angle)
label(SignX)
registersymbol(SignX)
label(SignY)
registersymbol(SignY)
label(SignZ)
registersymbol(SignZ)

label(PI)
registersymbol(PI)


newmem:

push rax
push rbx

cmp byte ptr [On], 1
je originalcode
mov byte ptr [On], 1


mov rax, [[[[DarkSoulsIII.exe+4743A80]+D8]+28]+60]
add rax, 140

cmp [rax], 0
jge _1
mov byte ptr [SignZ], 1
_1:

fld [rax]
fabs
fst [Angle]
fsin
fmul [Distance]
cmp byte ptr [SignZ], 0
jne _2
fchs
_2:
fstp st(0)

fld [Angle]
fcos
fmul [Distance]
fstp [Y]

mov rax, [[[DarkSoulsIII.exe+4768E78]+40]+28]
add rax, 74

cmp [rax], (float)1.57079632679
jg _3
cmp [rax], 0
jg _4
cmp [rax], (float)-1.57079632679
jg _6
jmp _5

_3:
mov byte ptr [SignX], 1
fld [PI]
fsub [rax]
fstp [Angle]

jmp _7

_4:
mov byte ptr [SignX], 1
mov byte ptr [SignY], 1
fld [rax]
fstp [Angle]

jmp _7

_5:
mov byte ptr [SignY], 1
fld [rax]
fabs
fstp [Angle]

jmp _7

_6:
fld [PI]
fadd [rax]
fstp [Angle]

_7:

fld [Angle]
fsin
fmul [Distance]
cmp byte ptr [SignX], 1
jne _8
fchs
_8:
fstp [X]

fld [Angle]
fcos
fmul [Distance]
cmp byte ptr [SignY], 1
jne _9
fchs
_9:
fstp [Y]

mov rax, [[[DarkSoulsIII.exe+4768E78]+40]+28]
add rax, 80
fld [rax]
fadd [X]
fstp [rax]

add rax, 8
fld [rax]
fadd [Y]
fstp [rax]

//sub rax, 4    //---
//fld [rax]     //---
//fadd [Z]      //---
//fstp [rax]    //---


originalcode:
pop rbx
pop rax
movaps xmm0,[rcx+00000080]

exit:
jmp returnhere

On:
db 00
SignX:
db 00
SignY:
db 00
SignZ:
db 00

X:
dd 00
Y:
dd 00
Z:
dd 00
Angle:
dd 00

PI:
dd (float)3.14159265359


Distance:
dd (float)3 //Distance of teleport


"DarkSoulsIII.exe"+9CF463:
jmp newmem
nop
nop
returnhere:
[DISABLE]
// your disable code
dealloc(newmem)
unregistersymbol(On)
unregistersymbol(Distance)
unregistersymbol(X)
unregistersymbol(Y)
unregistersymbol(Z)
unregistersymbol(Angle)
unregistersymbol(SignX)
unregistersymbol(SignY)
unregistersymbol(SignZ)
unregistersymbol(PI)
"DarkSoulsIII.exe"+9CF463:
movaps xmm0,[rcx+00000080]
//Alt: db 0F 28 81 80 00 00 00
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites