|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
mibiz1 How do I cheat? Reputation: 0
Joined: 20 Feb 2008 Posts: 9
|
Posted: Thu Nov 14, 2019 9:05 pm Post subject: Please help with Script to make universal |
|
|
Hi folks,
I'm trying to create a universal script for multiple hacks for Skyrim SE. I have this snippet which works good:
Code: | [ENABLE]
aobscanmodule(aobPerks,SkyrimSE.exe,0F B6 8A 01 0B 00 00) // should be unique
alloc(newmem,$1000,"SkyrimSE.exe"+8C70E6)
label(retPerks)
label(valPerks)
registersymbol(valPerks)
registersymbol(aobPerks)
aobPerks:
jmp newmem
nop 2
retPerks:
newmem:
movzx ecx,byte ptr [rdx+00000B01]
movzx eax,byte ptr [valPerks]
cmp ecx,eax
jnl retPerks
mov [rdx+00000B01],eax
mov ecx,eax
jmp retPerks
valPerks:
dd 5
[DISABLE]
aobPerks:
db 0F B6 8A 01 0B 00 00
unregistersymbol(valPerks)
unregistersymbol(aobPerks)
dealloc(newmem) |
If I make the following changes to make universal, the game crashes
Code: | [ENABLE]
aobscanmodule(aobPerks,SkyrimSE.exe,0F B6 8A 01 0B 00 00) // should be unique
alloc(newmem,1024)
label(locPerks)
label(retPerks)
label(chtPerks)
label(valPerks)
registersymbol(locPerks)
registersymbol(valPerks)
registersymbol(aobPerks)
aobPerks:
locPerks:
jmp chtPerks
nop 2
retPerks:
newmem:
chtPerks:
movzx ecx,byte ptr [rdx+00000B01]
movzx eax,byte ptr [valPerks]
cmp ecx,eax
jnl retPerks
mov [rdx+00000B01],eax
mov ecx,eax
jmp retPerks
valPerks:
dd 5
[DISABLE]
aobPerks:
db 0F B6 8A 01 0B 00 00
unregistersymbol(locPerks)
unregistersymbol(valPerks)
unregistersymbol(aobPerks)
dealloc(newmem) |
I think I'm missing some assembly code somewhere but can't figure out where. Please help! TIA!
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu Nov 14, 2019 9:46 pm Post subject: |
|
|
Try:
Code: | alloc(newmem,1024,aobPerks) |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
mibiz1 How do I cheat? Reputation: 0
Joined: 20 Feb 2008 Posts: 9
|
Posted: Fri Nov 15, 2019 2:35 pm Post subject: |
|
|
ParkourPenguin wrote: | Try:
Code: | alloc(newmem,1024,aobPerks) |
|
Thanks for the feedback. Would that make it not universal (or all in one) script like Alice0725 's:
Code: | [ENABLE]
{---- Table +29 ----
// <snip/>
Creator:
01.Alice0725
// <snip/>
}
aobscan(aobPicks,8B 4E 08 03 C8 8B 44 24 2C 01 4C 24 10)
//assert("TESV.exe"+79637,8B 4E 08 03 C8 8B 44 24 2C 01 4C 24 10)
aobscan(aobGold,8B 50 08 03 11 03 EA EB ?? 8B 04 B3)
//assert("TESV.exe"+78F1C,8B 50 08 03 11 03 EA EB 09 8B 04 B3)
// <snip/>
alloc(cheater,512)
// <snip/>
label(valGold) //Gold
label(locGold)
label(retGold)
label(chtGold)
label(locPicks) //Lockpicks
label(retPicks)
label(chtPicks)
label(valPicks)
// <snip/>
registersymbol(valPicks) //--1--
registersymbol(locPicks)
registersymbol(locGold) //--2--
registersymbol(valGold)
// <snip/>
//----Hacked----
aobPicks: //"TESV.exe"+79637:
locPicks:
jmp chtPicks
retPicks:
aobGold: //"TESV.exe"+78F1C
locGold:
jmp chtGold
retGold:
// <snip/>
//----End Hacked-----
//-----Injection----
cheater:
//--variable--
iChtGod:
dd 00 //byte:OHK,Health,Mana,Stamina
dd 00 //byte:Arrow
valGold:
dd 00
valPicks:
dd 00
valPerks:
dd 00
ptrPlayer:
dd 00
//--Minimum Lockpicks--
chtPicks:
mov ecx,[esi+08] //original code
add ecx,eax
cmp ecx,[valPicks] //Let's cheat
jnl retPicks
mov ecx,[valPicks]
mov [esi+08],ecx
jmp retPicks
//--Minimum Gold--
chtGold:
mov edx,[eax+08] //original code
add edx,[ecx]
cmp edx,[valGold] //Let's cheat
jnl retGold
mov edx,[valGold]
mov [eax+08],edx
jmp retGold
// <snip/>
//----End Injection-----
[DISABLE]
locPicks:
db 8B 4E 08 03 C8
locGold:
db 8B 50 08 03 11
// <snip/>
unregistersymbol(valPicks)
unregistersymbol(locPicks)
unregistersymbol(valGold)
unregistersymbol(locGold)
// <snip/>
dealloc(cheater) |
Her table works great for the older version of Skyrim (32 bit) I was playing for while. Now I'm playing Skyrim SE (64 bit) v1.5.80. Attached is a screenshot of part of her table. Here's a snippet that enables the "God Mode" cheat:
Code: | [ENABLE]
iChtGod:
db 01 01 01 01 01
[DISABLE]
iChtGod:
db 00 00 00 00 00 |
EDIT: PS. I have other scripts too (gold, arrows, summons, lockpicks, items) that I'd like to merge all into 1 script.
Description: |
|
Filesize: |
9.58 KB |
Viewed: |
2078 Time(s) |
|
|
|
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
|
|