| View previous topic :: View next topic |
| Author |
Message |
lokicheat How do I cheat?
Reputation: 0
Joined: 18 Aug 2007 Posts: 4
|
Posted: Mon Aug 20, 2007 9:45 pm Post subject: Problem with trainermaker |
|
|
I wrote some auto assembler scripts for Loki 1.0.6:
| Quote: | [ENABLE]
alloc(newmem,256)
alloc(epplus,4)
registersymbol(epplus)
label(originalcode)
label(returnhere)
epplus:
dd 03E8
Loki.exe+1F8FDB:
jmp newmem
nop
nop
nop
nop
returnhere:
newmem:
mov eax,[epplus]
originalcode:
push eax
lea ecx,[ebp-18]
call loki.exe+5d7aa
jmp returnhere
[DISABLE]
dealloc(newmem)
unregistersymbol(epplus)
dealloc(epplus)
Loki.exe+1F8FDB:
push eax
lea ecx,[ebp-18]
call loki.exe+5d7aa |
| Quote: | [ENABLE]
alloc(newmem,256)
alloc(gpplus,4)
registersymbol(gpplus)
label(originalcode)
label(returnhere)
gpplus:
dd 03E8
Loki.exe+1F8E38:
jmp newmem
nop
nop
returnhere:
newmem:
mov eax,[gpplus]
originalcode:
push eax
push [esi+0000008c]
jmp returnhere
[DISABLE]
dealloc(newmem)
unregistersymbol(gpplus)
dealloc(gpplus)
Loki.exe+1F8E38:
push eax
push [esi+0000008c] |
I can save them in a cheat table and everthing works as intended. But when i make a trainer using the intergrated trainermaker with these scripts they dont work. Can anyone tell why? |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6300
|
Posted: Mon Aug 20, 2007 10:42 pm Post subject: |
|
|
Yes because you are using "alloc"
You have to define the cave manually for a trainer. |
|
| Back to top |
|
 |
Negima I post too much
Reputation: 6
Joined: 22 May 2007 Posts: 2221
|
Posted: Tue Aug 21, 2007 3:52 am Post subject: |
|
|
| Follow a tut for making a trainer |
|
| Back to top |
|
 |
lokicheat How do I cheat?
Reputation: 0
Joined: 18 Aug 2007 Posts: 4
|
Posted: Tue Aug 21, 2007 4:52 am Post subject: |
|
|
| thx alot |
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6300
|
|
| Back to top |
|
 |
lokicheat How do I cheat?
Reputation: 0
Joined: 18 Aug 2007 Posts: 4
|
Posted: Tue Aug 21, 2007 3:49 pm Post subject: |
|
|
thx alot.
i already managed to build a trainer for loki 1.0.5.0 now.
upload_worldofplayers_de/upload.cgi?a=show&file=4c6f6b6920312e302e352045502b47502b41502e43542e7a6970&big=1
if youre interested.
i found several code caves with the dissassembler, i just chose the first one. hope i wasnt wrong on this decision and that this code cave will remain stable during the execution of the main program. |
|
| Back to top |
|
 |
|