Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I have a doubt with one AA script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Sun Jan 06, 2013 2:26 pm    Post subject: I have a doubt with one AA script Reply with quote

Well, I have a question for you. Recently I decided to hack a game, on this game you have lives and I want to make a hack on this. I found the addres where the lives are stored, so I can change the value manually and it works fine Very Happy

Then I decided to make an AA script, the original code is this

Code:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:

originalcode:
add dword ptr [esi+000000A0],FF //original code

exit:
jmp returnhere

"GeometryWars.exe"+24AD3:
jmp newmem
nop
nop
returnhere:


The only way that I found to make a "work" AA script is building full of nop's:

Code:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:

originalcode: //full nop's to prevent decrease lives
nop
nop
nop
nop
nop

exit:
jmp returnhere

"GeometryWars.exe"+24AD3:
jmp newmem
returnhere:


This works fine, but I think this is not the best way to do it. Can someone help me?

Thanks Very Happy
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sun Jan 06, 2013 7:56 pm    Post subject: Reply with quote

mov [esi+000000A0],x

x can be whatever number that you want to set for health.

If there is no other code that would change the health, nop will work perfectly, doesn't matter that it is "elegant" or not.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Mon Jan 07, 2013 9:04 am    Post subject: Reply with quote

why do you even alloc ?
Code:
[ENABLE]
"GeometryWars.exe"+24AD3:
db 90 90 90 90 90 90 90
// since the code add dword ptr [esi+000000A0],FF is 7 bytes long we replace with 7 nops
// nop  or db 90  is the same thing
[DISABLE]
"GeometryWars.exe"+24AD3:
add dword ptr [esi+000000A0],FF

_________________
... Fresco
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites