 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
deraz12 How do I cheat?
Reputation: 0
Joined: 18 Nov 2015 Posts: 4
|
Posted: Wed Nov 18, 2015 6:47 pm Post subject: How to make a working script!? |
|
|
Can't make a script to hack the following code:
| Code: |
[ENABLE]
aobscanmodule(Const,Shogun2.dll,89 46 0C 8B 46 04 3B C5) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov [esi+0C],eax
mov eax,[esi+04]
jmp return
Const:
jmp code
nop
return:
registersymbol(Const)
[DISABLE]
Const:
db 89 46 0C 8B 46 04
unregistersymbol(Const)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "Shogun2.dll"+4D26BA
"Shogun2.dll"+4D269A: 89 70 04 - mov [eax+04],esi
"Shogun2.dll"+4D269D: C6 40 08 01 - mov byte ptr [eax+08],01
"Shogun2.dll"+4D26A1: 89 68 0C - mov [eax+0C],ebp
"Shogun2.dll"+4D26A4: 89 50 10 - mov [eax+10],edx
"Shogun2.dll"+4D26A7: 89 48 14 - mov [eax+14],ecx
"Shogun2.dll"+4D26AA: 89 68 18 - mov [eax+18],ebp
"Shogun2.dll"+4D26AD: C7 00 44 AD 0C 58 - mov [eax],Shogun2.dll+139AD44
"Shogun2.dll"+4D26B3: 89 58 1C - mov [eax+1C],ebx
"Shogun2.dll"+4D26B6: EB 02 - jmp Shogun2.dll+4D26BA
"Shogun2.dll"+4D26B8: 33 C0 - xor eax,eax
// ---------- INJECTING HERE ----------
"Shogun2.dll"+4D26BA: 89 46 0C - mov [esi+0C],eax
"Shogun2.dll"+4D26BD: 8B 46 04 - mov eax,[esi+04]
// ---------- DONE INJECTING ----------
"Shogun2.dll"+4D26C0: 3B C5 - cmp eax,ebp
"Shogun2.dll"+4D26C2: 74 08 - je Shogun2.dll+4D26CC
"Shogun2.dll"+4D26C4: 8D 88 70 01 00 00 - lea ecx,[eax+00000170]
"Shogun2.dll"+4D26CA: EB 02 - jmp Shogun2.dll+4D26CE
"Shogun2.dll"+4D26CC: 33 C9 - xor ecx,ecx
"Shogun2.dll"+4D26CE: 89 44 24 30 - mov [esp+30],eax
"Shogun2.dll"+4D26D2: 8B 11 - mov edx,[ecx]
"Shogun2.dll"+4D26D4: 8B 52 08 - mov edx,[edx+08]
"Shogun2.dll"+4D26D7: 8D 44 24 30 - lea eax,[esp+30]
"Shogun2.dll"+4D26DB: 50 - push eax
}
|
Any ideas!???
PS: it effects AI PLAYER too!!!
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4718
|
Posted: Wed Nov 18, 2015 7:37 pm Post subject: |
|
|
The only way you could've been more ambiguous is if you didn't provide a script. What do you want to do? What does this do normally? Which instruction are you talking about? What is the address that instruction is accessing (e.g. health, money, etc)?
If this affects something you don't want it to affect, you should read this topic:
http://forum.cheatengine.org/viewtopic.php?t=583376
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| 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
|
|