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 


Quick question guys
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Sat Feb 02, 2008 2:32 am    Post subject: Quick question guys Reply with quote

hey guys, i got a question...

if I had say mov [eax-50],edi

on the address that writes to a luck address in my game...I was wondering how do I go about changing the edi to whatever I wanted it to be, say I wanted to add 3e8 (1000 hexa) to the edi to make it add that edi to that address, I tried changing the register in the address's edi to 3e8 but nothing happens at all, could someone tell me or offer some tips?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Sun Feb 03, 2008 7:25 pm    Post subject: Re: Quick question guys Reply with quote

raidos wrote:
hey guys, i got a question...

if I had say mov [eax-50],edi

on the address that writes to a luck address in my game...I was wondering how do I go about changing the edi to whatever I wanted it to be, say I wanted to add 3e8 (1000 hexa) to the edi to make it add that edi to that address, I tried changing the register in the address's edi to 3e8 but nothing happens at all, could someone tell me or offer some tips?



Code:

mov edi,3e8
mov [eax-50],edi
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 12:26 am    Post subject: Reply with quote

what do you mean?
Back to top
View user's profile Send private message
kjmarket
Grandmaster Cheater
Reputation: 0

Joined: 11 Oct 2006
Posts: 600

PostPosted: Mon Feb 04, 2008 1:15 am    Post subject: Reply with quote

He just showed you how to do what you wanted according to your example. The first line moves the value 3E8 int EDI, and the second line is your example that you gave which moves the value in EDI to your pointer address. Not sure what you don't get, as you seemed to have some gras of what was going on, or at least I took that much from your first post. You'd need to write an AA script for this, but this pretty basic stuff. Good luck.
_________________


I can hear the voices of opcodes. "Come and NOP me!" Come and NOP me!"
Back to top
View user's profile Send private message MSN Messenger
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 9:34 am    Post subject: Reply with quote

JoSh iZ FaMouS wrote:
thats easy


Thank you Mr. Brainiac, Now stop spamming please.
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 12:09 pm    Post subject: Reply with quote

hmm when you mean I have to write an AA scripted, does that mean that I have to do code injection?

edit: hmm i tried to make a scripted forma guide and I made this

[enable]
label(back)

004003c0:
mov edi,1388
mov [eax-50],edi
jmp back

0046ef0c:
jmp 004003c0
nop
back:

[disable]
0046ef0c:
mov [eax-50], edi

and when I enabled it in game, nothing happened when I got attacked so I'm guessing it didn't work, but when I tried to equip tings that add to luck, the game gave me an error and closed the game down. Hmm am I on the right track or is this just server sided and cant be modified?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 2:23 pm    Post subject: Reply with quote

You moved 5000 into edi. Maybe it is too much.
Also if this is a MMO or something i dont think it will work anyways.
Also you need to make sure your cave was large enough to hold your code.
256 should be good

Test the script while your looking at the address in memory view as well.
Where the instruction is you will see a jmp be written, be sure the left over bytes are getting cleaned up. If it is leaving bytes you need to use another nop.
Then follow it to the cave and look whats written there. Make sure it is writing what you wanted, and nothing else is in that cave.
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 3:13 pm    Post subject: Reply with quote

Hmmm, after messing aroudn with the scripted ans using it for a type of HP-locking thing, I got client sided results. Is there a way to make what Iv done to server sided?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 3:17 pm    Post subject: Reply with quote

Only if the client handles the code it can work. But you said your getting a visual effect, then it is not handled by the client.
So the server handles the real value.
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 3:20 pm    Post subject: Reply with quote

Hmm very strange cause I know that HP-locking is possible in my game cause of other peoples threads, can you give some suggestions on how to maybe obtain another address that might be a the right one? If it might help the game im trying to hacking is trickster.
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 4:24 pm    Post subject: Reply with quote

Maybe try seeing about getting a pointer and see what happens
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 5:07 pm    Post subject: Reply with quote

hmm ok, gonna keep messing around with the script for now. thanks

Also how do you add the mov commands together, im very confused about that, say it had edi+000001bc, edi would equal 017b004c so....

017b004c+000001bc=?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 11:04 pm    Post subject: Reply with quote

You can make edi = any value you want.
Why would you move two moves together?
Just change edi and it will mov the value to the other instruction.
Back to top
View user's profile Send private message
raidos
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 91

PostPosted: Mon Feb 04, 2008 11:08 pm    Post subject: Reply with quote

Hmm, since I can made edi anything I want, I just tick edi in the register and make it anything I wanted?I thought [edi+~~~~~] was a pointer?
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Mon Feb 04, 2008 11:19 pm    Post subject: Reply with quote

Code:
mov [eax-50],edi

I dont think so mate, edi is the value of your luck being moved to the address. So if you make edi anything you want you are moving that into the address for luck.
[eax-50] is an address.


So by doing this. You move 999 into edi
mov edi,3E7 3E7 = 999 decimal "visual in game"
Then 999 is being moved to [eax-50] because edi is now = 999 after the above instruction that moved it into edi.
mov [eax-50],edi same as mov [eax-50],3E7
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
Goto page 1, 2  Next
Page 1 of 2

 
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