embas10 How do I cheat?
Reputation: 0
Joined: 26 Nov 2024 Posts: 5
|
Posted: Fri Dec 20, 2024 1:54 am Post subject: Addresses will only be formed if certain actions occur? |
|
|
Ok, so here i am trying making a script for emulator (pcsx2).
Not really a big problem though, but i think it might be a great way for me to extend my cheat table utility.
Some instruction only exist if the specific action had been performed, I've been wondering if it's possible to set a script automatically scan AOB when the AOB just created? Or are there any better solution for this case? So i don't need to make the corresponding action triggered first to activated the script. I alr googled but still i couldn't find anything related to what i wanted.
i.e: instruction of HP substract will be created if anyone got hitted. And of course the script I made to track the AOB couldn't be activated before someone got hit.
Here's the script i got for the HP substraction (just in case):
Code: | [ENABLE]
aobScanRegion(INJECT_Damage,[pcsx2-qt.eemem]+9000000,7FFFFFFFFFFF,29 FE 48 63 F6 89 D9 83 C1 20 89 74 0D 00 90 48 89 35)
alloc(Defense_newmem,$1000,INJECT_Damage)
label(return)
alloc(DamageMultiplier,4,INJECT_Damage)
registersymbol(DamageMultiplier)
DamageMultiplier:
dd (float)1
Defense_newmem:
sub esi,edi
movsxd rsi,esi
jmp return
INJECT_Damage:
jmp Defense_newmem
return:
registersymbol(INJECT_Damage)
registersymbol(Defense_newmem)
[DISABLE]
INJECT_Damage:
db 29 FE 48 63 F6 89 D9 83 C1 20 89 74 0D 00 90 48 89 35
unregistersymbol(*)
dealloc(*) |
|
|