danny96 Newbie cheater Reputation: 0
Joined: 10 Jul 2020 Posts: 20
|
Posted: Tue Mar 02, 2021 10:04 am Post subject: |
|
|
These are the opcodes that related to gaining gold when I skip the day .
heroes3.EXE+C8207:
004C81FF - B9 07000000 - mov ecx,00000007
004C8204 - 8B 3C 02 - mov edi,[edx+eax]
004C8207 - 01 38 - add [eax],edi <<
004C8209 - 83 C0 04 - add eax,04
004C820C - 49 - dec ecx
EAX=02D00BCC
EBX=02CE0048
ECX=00000001
EDX=0000006C
ESI=02D00BB4
EDI=000003E8
ESP=00189F74
EBP=00189F8C
EIP=004C8209
These are the opcodes that related to gaining power of magic when using building.
heroes3.EXE+A3E50:
004A3E48 - 8A 87 78040000 - mov al,[edi+00000478]
004A3E4E - FE C0 - inc al
004A3E50 - 88 87 78040000 - mov [edi+00000478],al <<
004A3E56 - 8B 0D A8CC6900 - mov ecx,[heroes3.EXE+29CCA8]
004A3E5C - A1 E8946900 - mov eax,[heroes3.EXE+2994E8]
EAX=00000004
EBX=075026A4
ECX=00189FC0
EDX=0671D9EC
ESI=02BE19D0
EDI=02D05664
ESP=00189BD0
EBP=00189BD8
EIP=004A3E56
I know that in second part [edi+478] is power of magic , [edi+476] is attack , [edi+477] is defence and [edi+479] is knowledge.
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
originalcode:
add [eax],edi
add eax,04
exit:
jmp returnhere
"heroes3.EXE"+C8207:
jmp newmem
returnhere:
[DISABLE]
dealloc(newmem)
"heroes3.EXE"+C8207:
add [eax],edi
add eax,04
//Alt: db 01 38 83 C0 04
In my script I want adding those 4 skills in this script but I know that base register is different.Any solution ?
_________________
_d_ |
|