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 


help2

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Mohseeen
How do I cheat?
Reputation: 0

Joined: 28 Aug 2021
Posts: 0

PostPosted: Sun Aug 29, 2021 6:15 am    Post subject: help2 Reply with quote

Hello guys
I'm playing medal of honor - underground using ePSXe. I've hacked the health in game. The max health is 128.
The problem is, the hack only Lasts for one level. When i move to the next level, the health cheat vanishes and everything goes back to normal. I need a script to keep the infinite healtj cheat working on all levels. Can anybody help me out?
==================================
{ Game : ePSXe.exe
Version:
Date : 2021-08-29
Author : trish

This script does blah blah blah
}

[ENABLE]

aobscan(INJECT,89 1C 08 81 E2 FC FF 1F 00) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
mov [eax+ecx],ebx
and edx,001FFFFC
jmp return

INJECT:
jmp newmem
nop 4
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db 89 1C 08 81 E2 FC FF 1F 00

unregistersymbol(INJECT)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: 0B7E0474

0B7E044B: 81 FA 00 00 80 1F - cmp edx,1F800000
0B7E0451: 74 62 - je 0B7E04B5
0B7E0453: 8B 0D 64 27 EC 00 - mov ecx,[ePSXe.exe+322764]
0B7E0459: F7 C1 00 00 01 00 - test ecx,00010000
0B7E045F: 75 53 - jne 0B7E04B4
0B7E0461: 8B C8 - mov ecx,eax
0B7E0463: 89 C2 - mov edx,eax
0B7E0465: C1 E9 10 - shr ecx,10
0B7E0468: 25 FF FF 00 00 - and eax,0000FFFF
0B7E046D: 8B 0C 8D E0 40 32 01 - mov ecx,[ecx*4+ePSXe.exe+7840E0]
// ---------- INJECTING HERE ----------
0B7E0474: 89 1C 08 - mov [eax+ecx],ebx
// ---------- DONE INJECTING ----------
0B7E0477: 81 E2 FC FF 1F 00 - and edx,001FFFFC
0B7E047D: BB 20 50 BC 0B - mov ebx,0BBC5020
0B7E0482: 03 DA - add ebx,edx
0B7E0484: 8B 03 - mov eax,[ebx]
0B7E0486: 3D 00 00 7E 0B - cmp eax,0B7E0000
0B7E048B: 75 01 - jne 0B7E048E
0B7E048D: C3 - ret
0B7E048E: B8 00 00 7E 0B - mov eax,0B7E0000
0B7E0493: 8B 0C 10 - mov ecx,[eax+edx]
0B7E0496: B8 20 70 FB 0B - mov eax,0BFB7020
}
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sun Aug 29, 2021 3:13 pm    Post subject: Reply with quote

Not Lua related, and you already asked this in another topic.
Moved/locked.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Gamehacking 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