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 


Help with Coding

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Fraternity
Newbie cheater
Reputation: 0

Joined: 13 Apr 2009
Posts: 15

PostPosted: Mon Jul 19, 2010 8:48 pm    Post subject: Help with Coding Reply with quote

Hey Guys I'm not very good at coding I need help from you about this code here[Look at the picture]

That's the adress that i'm trying to do code injection on, it's experience from Diablo II and what I want to do to it is, rewrite the code so that it'll gain more experience each time I kill something for example lets say I get 20 exp from a monster but now I want to get 200 exp from the monster instead can anyone write me a code to show me how that can be done please? Thanks



Diablo2.jpg
 Description:
 Filesize:  63.31 KB
 Viewed:  4662 Time(s)

Diablo2.jpg


Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Tue Jul 20, 2010 2:17 am    Post subject: Reply with quote

If I had magnifiers for eyes, I could probably help. Unfortunately, I don't.
Back to top
View user's profile Send private message
XaLeX
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 226

PostPosted: Tue Jul 20, 2010 3:55 am    Post subject: Reply with quote

won't work anyway. it's an online game.
Back to top
View user's profile Send private message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Tue Jul 20, 2010 5:30 am    Post subject: Reply with quote

Not if he is playing offline. But we'll never know until he replies.
Back to top
View user's profile Send private message
XaLeX
Expert Cheater
Reputation: 0

Joined: 19 Aug 2008
Posts: 226

PostPosted: Tue Jul 20, 2010 12:24 pm    Post subject: Reply with quote

Oh sorry, i didn't know there was single player mode :p

anyway, the code should roughly look like:

Code:

mov ecx,[experience_to_add]  //ecx = gained exp
add [experience_address],ecx //add directly to the address

//OR

mov ecx,[experience_address] //ecx = current exp
add ecx,[experience_to_add]  //ecx += gained exp
mov [experience_address],ecx //write to address


use the code injection template (ctrl+a, then template->code injection) and:

- in the first case:
add
Code:
lea ecx,[ecx*10]
between the two lines. this multiplies gained exp by ten.

- in the second case:
erase the original code and use this:
Code:

mov ecx,[experience_to_add]
lea ecx,[ecx*10]
add ecx,[experience_address]
mov [experience_address],ecx


if it's not like either of these (which is very likely because these are very simple examples), just post it and we'll try to help Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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