View previous topic :: View next topic |
Author |
Message |
zirkhaki Cheater
Reputation: 0
Joined: 10 Dec 2008 Posts: 44 Location: Iran
|
Posted: Sat Oct 13, 2012 11:35 am Post subject: how to merge two related scripts |
|
|
I have two scripts for players' health
the first one cause no health decreasing while player get some hits.
the second one cause no health decreasing while player is fall from high distances.
script 1
Code: | alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(friendly)
newmem:
cmp [ecx+e0],2
je friendly
jmp originalcode
originalcode:
fsub dword ptr [esp+0C]
fstp dword ptr [esi+000000C4]
jmp returnhere
friendly:
fadd dword ptr [esp+0c]
//fstp dword ptr [esi+000000C4]
jmp returnhere
"GLOBAL.dll"+1A5AE4:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
"GLOBAL.dll"+1A5AE4:
fsub dword ptr [esp+0C]
fstp dword ptr [esi+000000C4]
|
Script 2
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(friendly)
newmem:
cmp [ecx+e0],2
je friendly
jmp originalcode
originalcode:
fsub dword ptr [esp+08]
fld dword ptr [esp+0C]
jmp returnhere
friendly:
fadd dword ptr [esp+08]
fld dword ptr [esp+0C]
jmp returnhere
"GLOBAL.dll"+D7D64:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
"GLOBAL.dll"+D7D64:
fsub dword ptr [esp+08]
fld dword ptr [esp+0C]
|
IS There a method to enable both scripts at the same time with one script
i want to make the trainer kit with CE but i should choose both codes separately and put a similar hotkey for both of them. this is not goodlooking.
please help
if you could please write a script which enables both at the same time. |
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sat Oct 13, 2012 12:41 pm Post subject: |
|
|
Use CE trainer generator..
Add button, then go to events tab, double click on the "OnClick" it'll open lua..
Then insert this
Code: |
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "Script name")
memoryrecord_freeze(memrec) |
Note that you need to change the "Script name" to the AA script name in the table.. (this is to enable 1 AA)
If you want 2, then simple do
Code: |
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "Script name")
memoryrecord_freeze(memrec)
local memrec=addresslist_getMemoryRecordByDescription(getAddressList(), "Script name2")
memoryrecord_freeze(memrec) |
Sorry my way is bit noobish, because I never tried to activate 2 scripts at once..
But also try this
Code: | [enable]
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(friendly)
newmem:
cmp [ecx+e0],2
je friendly
jmp originalcode
originalcode:
fsub dword ptr [esp+0C]
fstp dword ptr [esi+000000C4]
jmp returnhere
friendly:
fadd dword ptr [esp+0c]
//fstp dword ptr [esi+000000C4]
jmp returnhere
"GLOBAL.dll"+1A5AE4:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
alloc(newmem2,2048) //2kb should be enough
label(returnhere2)
label(originalcode2)
label(friendly2)
newmem2:
cmp [ecx+e0],2
je friendly2
jmp originalcode2
originalcode2:
fsub dword ptr [esp+08]
fld dword ptr [esp+0C]
jmp returnhere2
friendly2:
fadd dword ptr [esp+08]
fld dword ptr [esp+0C]
jmp returnhere2
"GLOBAL.dll"+D7D64:
jmp newmem2
nop
nop
nop
returnhere2:
[DISABLE]
dealloc(newmem)
"GLOBAL.dll"+1A5AE4:
fsub dword ptr [esp+0C]
fstp dword ptr [esi+000000C4]
dealloc(newmem2)
"GLOBAL.dll"+D7D64:
fsub dword ptr [esp+08]
fld dword ptr [esp+0C]
|
_________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
zirkhaki Cheater
Reputation: 0
Joined: 10 Dec 2008 Posts: 44 Location: Iran
|
Posted: Sat Oct 13, 2012 1:02 pm Post subject: |
|
|
I liked the second method. i'll try that at first.
thanks for your fast response |
|
Back to top |
|
 |
daspamer Grandmaster Cheater Supreme
Reputation: 54
Joined: 13 Sep 2011 Posts: 1588
|
Posted: Sat Oct 13, 2012 1:25 pm Post subject: |
|
|
No problem...
I never do this kind of scripts, because the games I hack adresses always changing.. so I do this (example)
[code]
[enable]
aobscan(aob1, FF FF 00 FF FF)
aob1:
db 90 90 90 90 90
aobscan(aob2, 12 34 56 78 90)
aob2:
db 09 87 65 43 21
//and so on....I hack flash games only.. thats why I use mainly use it
[disable]
I have used scripts like you did, only twice (When I writing long script and it can't fillin in the couple bytes...
But the thing above, is very useful. _________________
I'm rusty and getting older, help me re-learn lua. |
|
Back to top |
|
 |
rajo sipatokah How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 1 Location: indonesian
|
Posted: Sun Oct 14, 2012 2:39 am Post subject: thanks, |
|
|
its very usefull |
|
Back to top |
|
 |
|