|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 14, 2017 1:06 pm Post subject: Flag Question |
|
|
Code: | { Game : PE_Client.exe
Version:
Date : 2017-08-13
Author : Kalas
This script does blah blah blah
}
[ENABLE]
aobscan(HealthAOB,F3 0F 11 28 48 83 C4 18 E9)
alloc(newmem,$100,HealthAOB)
label(code)
label(return)
label(InstatKill)
label(OneHitKill)
newmem:
// cmp [rax+90],(float)2 // Player
//cmp [rax+40],(float)1 // Player
//cmp [rax+98],(float)1 // PLayer
cmp [rax+98],(float)0 // Enemy
je code
mov [rax],(float)500
add rsp,18
jmp return
OneHitKill:
dd 0
code:
cmp [OneHitKill],1
je InstantKill
movss [rax],xmm5
add rsp,18
jmp return
InstantKill:
mov [rax],(float)
add rsp,18
jmp return
HealthAOB:
jmp newmem
nop
nop
nop
return:
registersymbol(HealthAOB)
registersymbol(OneHitKill)
[DISABLE]
HealthAOB:
db F3 0F 11 28 48 83 C4 18
unregistersymbol(HealthAOB)
unregistersymbol(OneHitKill)
dealloc(newmem) |
I wanted to know how exactly can I use this Script which in general gives the player Infinite Health and a flag where I turn on by changing the value to 1 for One Hit Kill, I wanted to know If I can make it work as another script for a Trainer form, or can I make a button where It basically allows me by clicking the button to change the value to 1 and 0.
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Mon Aug 14, 2017 1:56 pm Post subject: |
|
|
Code: | { Game : PE_Client.exe
Version:
Date : 2017-08-13
Author : Kalas
This script does blah blah blah
}
[ENABLE]
aobscan(HealthAOB,F3 0F 11 28 48 83 C4 18 E9)
alloc(newmem,$100,HealthAOB)
alloc(OneHitKill,08)
{ goto add address manually and enter OneHitKill as an address we are allocating memory for that address, 8 bytes because its 64bit game }
label(code)
label(return)
label(InstatKill)
label(OneHitKill)
newmem:
// cmp [rax+90],(float)2 // Player
//cmp [rax+40],(float)1 // Player
//cmp [rax+98],(float)1 // PLayer
cmp [rax+98],(float)0 // Enemy
je code
mov [rax],(float)500
add rsp,18
jmp return
OneHitKill:
dd 0
code:
cmp [OneHitKill],1
je InstantKill
movss [rax],xmm5
add rsp,18
jmp return
InstantKill:
mov [rax],(float)0.0 // there is other ways to do this, and this is the easiest way even tho i dont use this way.
{ here you can mov float 0 or float -1, that depends on the game. some games you die when your health is 0 and some less than 0. i would prefer for testing '0' }
add rsp,18
jmp return
HealthAOB:
jmp newmem
nop
nop
nop
return:
registersymbol(HealthAOB)
registersymbol(OneHitKill)
[DISABLE]
HealthAOB:
db F3 0F 11 28 48 83 C4 18
unregistersymbol(HealthAOB)
unregistersymbol(OneHitKill)
dealloc(OneHitKill)
dealloc(newmem) |
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 14, 2017 2:05 pm Post subject: |
|
|
OldCheatEngineUser wrote: | Code: | { Game : PE_Client.exe
Version:
Date : 2017-08-13
Author : Kalas
This script does blah blah blah
}
[ENABLE]
aobscan(HealthAOB,F3 0F 11 28 48 83 C4 18 E9)
alloc(newmem,$100,HealthAOB)
alloc(OneHitKill,08)
{ goto add address manually and enter OneHitKill as an address we are allocating memory for that address, 8 bytes because its 64bit game }
label(code)
label(return)
label(InstatKill)
label(OneHitKill)
newmem:
// cmp [rax+90],(float)2 // Player
//cmp [rax+40],(float)1 // Player
//cmp [rax+98],(float)1 // PLayer
cmp [rax+98],(float)0 // Enemy
je code
mov [rax],(float)500
add rsp,18
jmp return
OneHitKill:
dd 0
code:
cmp [OneHitKill],1
je InstantKill
movss [rax],xmm5
add rsp,18
jmp return
InstantKill:
mov [rax],(float)0.0 // there is other ways to do this, and this is the easiest way even tho i dont use this way.
{ here you can mov float 0 or float -1, that depends on the game. some games you die when your health is 0 and some less than 0. i would prefer for testing '0' }
add rsp,18
jmp return
HealthAOB:
jmp newmem
nop
nop
nop
return:
registersymbol(HealthAOB)
registersymbol(OneHitKill)
[DISABLE]
HealthAOB:
db F3 0F 11 28 48 83 C4 18
unregistersymbol(HealthAOB)
unregistersymbol(OneHitKill)
dealloc(OneHitKill)
dealloc(newmem) |
|
Oh thanks for the improvements, but I was asking about a Trainer, but I guess I could do an Hotkey for One hit Kill to change dd to 1 or 0, just when Infinite Health is on, but thanks for the reply
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Mon Aug 14, 2017 2:09 pm Post subject: |
|
|
i apologize, i dont know nothing about trainers and lua.
yes you might assign a hotkey, please one note:
that you registered onehitkill symbol under return, im not sure if it cause issues.
if so, then place it anywhere else.
maybe under alloc onehitkill.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 14, 2017 2:14 pm Post subject: |
|
|
Actually the script won't activate, probably because of that, I'm not sure tho ill try but thanks for the heads up
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Mon Aug 14, 2017 2:19 pm Post subject: |
|
|
empty post, just in case you want to post again if it didnt activate.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 14, 2017 2:20 pm Post subject: |
|
|
It didn't but no worries most likely the AOB is not unique, thanks for the replies though
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Mon Aug 14, 2017 2:31 pm Post subject: |
|
|
KalasWD wrote: | thanks for the replies though |
pleasure
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
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
|
|