Re: Hogwarts Legacy
Posted: Fri Feb 10, 2023 12:47 pm
here's a simple walk key script, because I like to hold a key while moving to walk:
copy&paste the above ONto your table.
when activated, press and hold CapsLock key to walk.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>359390</ID>
<Description>"walk key"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
define(walkkeyiddefault,14)
aobscanmodule(moveSpeedRead1AOB,HogwartsLegacy.exe,F3 0F ** ** ** ** ** ** 76 0D C7 ** ** ** ** ** ** ** ** * 0F ** ** 41)
registersymbol(moveSpeedRead1AOB)
aobscanmodule(playerMoveSpeedRead1CallerAOB,HogwartsLegacy.exe,0F ** ** 48 ** ** F2 0F ** ** ** ** 89 ** ** ** E8 ** ** ** ** 48 ** ** ** ** 0F ** ** ** ** 48 ** ** ** ** C3)
registersymbol(playerMoveSpeedRead1CallerAOB)
label(bWalkKeyID)
registersymbol(bWalkKeyID)
label(bWalkKeyPressed)
registersymbol(bWalkKeyPressed)
alloc(newmem,2048,moveSpeedRead1AOB) //"HogwartsLegacy.exe"+1964458)
label(returnhere)
label(originalcode_moveSpeedRead1AOB)
registersymbol(originalcode_moveSpeedRead1AOB)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
push rax
//mov rax,"HogwartsLegacy.exe"+27BE2C6
mov rax,playerMoveSpeedRead1CallerAOB
lea rax,[rax+15]
cmp [rsp+90],rax
jne @f
mov rax,bWalkKeyPressed
cmp byte ptr [rax],1
jne @f
readmem(moveSpeedRead1AOB,8)
//movss [rcx+000006A4],xmm1
cmp dword ptr [rcx+6a4],0
je @f
movss xmm1,[rax+4]
@@:
pop rax
comiss xmm1,xmm0
originalcode_moveSpeedRead1AOB:
readmem(moveSpeedRead1AOB,8)
//movss [rcx+000006A4],xmm1
exit:
jmp returnhere
///
bWalkKeyID:
dd walkkeyiddefault
bWalkKeyPressed:
dd 0
dMoveSpeedMultiplier:
dd (float)235
dd (float)1.0
///
moveSpeedRead1AOB: //"HogwartsLegacy.exe"+1964458:
jmp newmem
nop 3
returnhere:
///*****************************************///
//modified from ShyTwig16's lua keylistener script
//http://fearlessrevolution.com/viewtopic.php?f=4&t=6041&start=60#p62657
{$lua}
local function walkkeyLuaThread(thread3)
local addr2 = getAddressSafe('bWalkKeyPressed')
while RunWalkkeyLuaThreadLoop do
sleep(100)
if addr2 then
if ( isKeyPressed( readInteger('bWalkKeyID') ) ) then
writeBytes(addr2, 1)
else
writeBytes(addr2, 0)
end
else
addr2 = getAddressSafe('bWalkKeyPressed')
end
end
thread3.terminate()
-- while RunWalkkeyLuaThreadLoop do
-- if ( isKeyPressed(VK_CAPITAL) ) then
-- writeBytes("bWalkKeyPressed" ,1)
-- else
-- writeBytes("bWalkKeyPressed" ,0)
-- end
-- end
-- thread3.terminate()
end
----------------------------------
if syntaxcheck then return end
RunWalkkeyLuaThreadLoop = true
createThread(walkkeyLuaThread)
{$asm}
///*****************************************///
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
{$lua}
if syntaxcheck then return end
RunWalkkeyLuaThreadLoop = false
{$asm}
///*****************************************///
dealloc(newmem)
moveSpeedRead1AOB: //"HogwartsLegacy.exe"+1964458:
readmem(originalcode_moveSpeedRead1AOB,8)
//db F3 0F 11 89 A4 06 00 00
//Alt: movss [rcx+000006A4],xmm1
unregistersymbol(originalcode_moveSpeedRead1AOB)
unregistersymbol(bWalkKeyID)
unregistersymbol(bWalkKeyPressed)
/*
95
156
235
450
*/
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>1337092392</ID>
<Description>"key"</Description>
<Options moHideChildren="1"/>
<DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">10:SHIFT key
11:CTRL key
12:ALT key
14:CAPS LOCK key
04:Middle Mouse Button
05:X1 Mouse Button
06:X2 Moust Button
</DropDownList>
<ShowAsHex>1</ShowAsHex>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Byte</VariableType>
<Address>bWalkKeyID</Address>
<CheatEntries>
<CheatEntry>
<ID>1337092393</ID>
<Description>"No description"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>Float</VariableType>
<Address>+8</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>
when activated, press and hold CapsLock key to walk.