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 


Give Yourself A Weapon?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
CuriousBrit
How do I cheat?
Reputation: 0

Joined: 16 Sep 2013
Posts: 8

PostPosted: Mon Oct 14, 2013 12:10 am    Post subject: Give Yourself A Weapon? Reply with quote

Hi, I'm curious how could you use CE and a debugger to code a script to give yourself a weapon? Finding the ammo is easy but how to find out where the weapon is store etc. Is this still possible? Like in the old GTA VC trainers?
Back to top
View user's profile Send private message
puntigam
How do I cheat?
Reputation: 0

Joined: 11 Sep 2013
Posts: 5

PostPosted: Tue Oct 15, 2013 7:17 pm    Post subject: Reply with quote

It is definitely possible, but the "how" depends on the game.

1) In some games with limited inventories (as GTA games have I think - there is a fixed slot for each type of item), having or not having a certain weapon might just be a flag, so adding a weapon might be as easy as giving yourself ammunition. I don't own any GTA games, so I can't really test it.

2) In games like D_iablo one (NOT 3 goddamnit!), with dynamically generated items and the likes, it will be quite a bit harder - with my average skills it might be next to impossible (I never tried, with enough time I might manage if the programmers don't try to hide it).

3) With slotted inventories that can contain any item you put in, but just one item type without too much randomness to them (Most old-school RPGs have inventories like this), it will be only a matter of finding the right value for an item, maybe things like durability and the correct addresses that are the representation of your inventory-slots.

Can't think of any more inventory possibilities right now. But yeah, it's doable in most cases.


Edit: On how to find the inventory slot: Depending on the game and inventory management you can try dropping it, moving it around in your inventory, selling it, rebuying it. Check for changed values after each action. The value will probably be 0 when there is no item in a certain slot.
Inventory Values might also be stored close to other values for your character (like health).
Checking that area in memory can be used when droppin or selling an item is not possible and you can just check if something changed on picking up an item.
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 Discussions 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