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 


Compare specific value

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

Joined: 15 Jul 2012
Posts: 19

PostPosted: Sun Jul 22, 2012 9:05 pm    Post subject: Compare specific value Reply with quote

Hello guys,

Lately I stumbled upon something when I was trying to get Infinite Ammo for a game. I know how it goes in general but I am really stuck on this and I need some assistance.

Let me give you this for an example:

Player : 0000FF02
Enemy : 0001FF02
Team : 0002FF02

So everytime I shoot it'll increase the value like this:

0100FF02
0200FF02
0300FF02
0400FF02

Same goes for Enemy and Team.

Now to make sure both Player and Team get unlimited ammo I have to make a comparisation. Now the big question is:

Is there a certain way to only compare to the last 5 digits:

Player : 0000FF02
Enemy : 0001FF02
Team : 0002FF02

Kind Regards,
Magnificient

_________________
To me programming is more than an important practical art. It is also a gigantic undertaking in the foundations of knowledge.
Back to top
View user's profile Send private message
zilianbra
How do I cheat?
Reputation: 0

Joined: 22 Jul 2012
Posts: 6

PostPosted: Sun Jul 22, 2012 10:38 pm    Post subject: Reply with quote

If you have a pointer for those addresses, try to add +3 to the pointers and change the types to a text(or string) of size 5.

Ex.:
00ABCDE0 pointsTo 0000FF02

*add +3 to the pointer = 00ABCDE0+3 = 00ABCDE3

00ABCDE3 pointsTo 0FF02XXX
(those X are random values, so since you don't have a 5 byte type, change it to a string(or text) of size 5 [each character in a string has 1 byte of size]. This way you get 5 bytes)
[/b]
Back to top
View user's profile Send private message
Magnificient
Newbie cheater
Reputation: 0

Joined: 15 Jul 2012
Posts: 19

PostPosted: Mon Jul 23, 2012 3:32 am    Post subject: Reply with quote

Thank you for your reply, but unfortunately, I do not have a pointer for it. It's just a 4 Byte value. Smile

EDIT:

Problem solved, had to use a simple AND instruction. Anyway, this topic may be closed now! Smile

Kind Regards,
Magnificient

_________________
To me programming is more than an important practical art. It is also a gigantic undertaking in the foundations of knowledge.
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