View previous topic :: View next topic |
Author |
Message |
SILENT_SUFFERER Cheater Reputation: 0
Joined: 28 Mar 2012 Posts: 28
|
Posted: Fri Jul 05, 2013 4:46 pm Post subject: combine two autoassembly code injection scripts into one |
|
|
Does anyone know how to merge two code injection scripts that work on two different addresses so that when they go into my table there is one script to do activate both scripts and deactivate them accordingly?
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Jul 05, 2013 5:16 pm Post subject: |
|
|
Yes...just as you would, normally, but rename your labels and the newmem that you allocate etc.
You can also just assign the same hotkey for both cheats, and either leave them separate, or add one under the other as a child script etc.
|
|
Back to top |
|
|
vergilganesh Expert Cheater Reputation: 0
Joined: 01 Jul 2013 Posts: 134 Location: India
|
Posted: Sat Jul 13, 2013 8:31 am Post subject: |
|
|
Code: |
[ENABLE]
0051bfe5:
alloc(newmem,2048)
label(returnhere)
label(god)
label(exit)
newmem:
cmp [esi+c8],0
jne god
mov eax,[esi+1c]
mov [esi+18],eax
jmp exit
god:
mov [esi+18],0
exit:
jmp returnhere
"DevilMayCry4_DX9.exe"+11BFE5:
jmp newmem
returnhere:
007a8187:
alloc(newmem3,2048)
label(returnhere3)
label(originalcode3)
label(exit3)
newmem3:
mov eax,[edi+1f28]
mov [edi+1f24],eax
jmp exit3
originalcode3:
movss [edi+00001F24],xmm0
exit3:
jmp returnhere3
"DevilMayCry4_DX9.exe"+3A8187:
jmp newmem3
nop
nop
nop
returnhere3:
007a80a6:
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)
newmem2:
nop
nop
nop
nop
nop
nop
nop
nop
jmp exit2
originalcode2:
movss [edi+00001F24],xmm0
exit2:
jmp returnhere2
"DevilMayCry4_DX9.exe"+3A80A6:
jmp newmem2
nop
nop
nop
returnhere2:
007ea4a8:
alloc(newmem4,2048)
label(returnhere4)
label(originalcode4)
label(exit4)
newmem4:
nop
nop
nop
jle DevilMayCry4_DX9.exe+3EA4B1
jmp exit4
originalcode4:
mov [ecx+04],eax
jle DevilMayCry4_DX9.exe+3EA4B1
exit4:
jmp returnhere4
"DevilMayCry4_DX9.exe"+3EA4A8:
jmp newmem4
returnhere4:
00b5872f:
alloc(newmem5,2048)
label(returnhere5)
label(exit5)
newmem5:
imul ecx,ecx,0a
add [esi+00000118],ecx
jmp exit5
exit5:
jmp returnhere5
"DevilMayCry4_DX9.exe"+75872F:
jmp newmem5
nop
returnhere5:
00494040:
alloc(newmem25,2048)
label(returnhere25)
label(originalcode25)
label(exit25)
newmem25:
imul ecx,ecx,68
add [esi+00000114],ecx
jmp exit25
originalcode25:
add [esi+00000114],ecx
exit25:
jmp returnhere25
"DevilMayCry4_DX9.exe"+94040:
jmp newmem25
nop
returnhere25:
004a4480:
alloc(newmem6,2048)
label(returnhere6)
label(originalcode6)
label(exit6)
newmem6:
imul edi,edi,68
add [esi+000001EC],edi
jmp exit6
originalcode6:
add [esi+000001EC],edi
exit6:
jmp returnhere6
"DevilMayCry4_DX9.exe"+A4480:
jmp newmem6
nop
returnhere6:
0045480f:
alloc(newmem7,2048)
label(returnhere7)
label(originalcode7)
label(exit7)
newmem7:
mov [edx+04],(float)1333788671
jmp exit7
originalcode7:
movss [edx+04],xmm0
exit7:
jmp returnhere7
"DevilMayCry4_DX9.exe"+5480F:
jmp newmem7
returnhere7:
007bca39:
alloc(newmem8,2048)
label(returnhere8)
label(originalcode8)
label(exit8)
newmem8:
mov [esi+151f4],(float)10000
jmp exit8
originalcode8:
movss [esi+000151F4],xmm0
exit8:
jmp returnhere8
"DevilMayCry4_DX9.exe"+3BCA39:
jmp newmem8
nop
nop
nop
returnhere8:
[DISABLE]
007a8187:
movss [edi+00001F24],xmm0
|
I ve merged 10 codes
|
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
Posted: Thu Feb 06, 2014 9:58 pm Post subject: |
|
|
what is the meaning of those code 0051bfe5, 007a8187, etc ???
_________________
From that day forth... my arm changed... and a voice echoed "Power! Give me more power!" and if I become a demon, so be it... I'll endure the exile... anything... to protect her! |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Feb 06, 2014 10:06 pm Post subject: |
|
|
those are addresses the script is going to write to when executed
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
Posted: Thu Feb 06, 2014 10:25 pm Post subject: |
|
|
Ohh i see.. So it means i have to find the static address then? if not the code cannot be use another time.
_________________
From that day forth... my arm changed... and a voice echoed "Power! Give me more power!" and if I become a demon, so be it... I'll endure the exile... anything... to protect her! |
|
Back to top |
|
|
AltairPL Newbie cheater Reputation: 2
Joined: 25 Jan 2014 Posts: 24
|
Posted: Thu Feb 06, 2014 11:34 pm Post subject: |
|
|
Code is usually placed in "static" memory region and doesn't change every run of the game. If you want to make sure if address is static, browse it in memory viewer - if text is green, address is static.
|
|
Back to top |
|
|
Onim Newbie cheater Reputation: 0
Joined: 02 Feb 2014 Posts: 18 Location: Malaysia
|
|
Back to top |
|
|
|