Register for your free account! | Forgot your password?

You last visited: Today at 11:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tutorial] Inventory stack

Discussion on [Tutorial] Inventory stack within the 12Sky2 Hacks, Bots, Cheats & Exploits forum part of the 12Sky2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 623
Received Thanks: 175
[Tutorial] Inventory stack

First thing you need to do is find the pointers to the inventory struct that are located in the player class. You can find them by putting a stack of pills in your first slot of your inventory and scanning for the amount of pills in the stack. Once the scan completes remove some pills from the stack and search the new value. This should give you an address to the "count" of the first slot in the first row of your inventory.

Once you have that address add it in cheat engine and "Browse this memory region". Scroll up a bit and find the ItemID(I recommend putting an item in the first slot that you know the ItemID of so you can recognize it easily...Godsend lucky ticket maybe?). This address is the start of the inventory array.

Look through the block of memory here and you will see it starts with the itemid and contains the inventory Row and Slot as well as the "count" of the items if its a stackable item. Then right after is an entry for the next Slot that is currently filled in your inventory.

If you look at the screenshot below you can see outlined in the black is the Entry for Row0 Slot0 of the inventory(ie the first slot in the inventory). It starts with 0x0D 0x04(1037) the ItemID of Godsend lucky tickets.



Now in the screenshot above if you look directly after the part outlined in black you will see 0x0D 0x04 again. This is the start of the next inventory slot in that row! You will notice that it now looks like this:



Notice the part highlighted in blue and compare it to the data highlighted in black for the first slot. It is now a value of 2(the second slot!).

If you look a little farther down in the first screenshot you will see 0x1F, that is the ItemID for the for the chi pills. Look right after the ItemID and you now see the value is 2(and the chi pills in are in the second row)... aha! So that value represents the row. We already know that the next value represents the Slot in the row(so the chi pills are in Row2 Slot2).

Now you'll notice the next value after the ItemID, Row, and Slot is 0x62. Look again in the first screenshot, you see I have 98 chi pills in Row2 Slot2. What is 98 in hex? 0x62! There we have the item count of stackable items!

Ok now that we have figured out how the inventory works, we want to make all items stack onto 1 single slot right? So we need to make a for loop through all rows/slots in the inventory and set them all to 1 single Row/Slot!

From the screenshots above we determined the following:

Code:
struct Inventory{
         int ItemID;
         int Row;
         int Slot;
         int Count;
         char Unknown[8]; //Unsure what the last 8 bytes do and don't really care
};
Inventory *Inventory1 = (Inventory *)0x11C12FC; //this is the address of the first slot where it stores ItemID.  This is the first entry in the array of inventory slots
Inventory *Inventory2 = (Inventory *)0x11C18FC; //Address for the first row/slot of Hermit vault,  find it the same way as the inventory
Now with the above we have declared a struct for our inventory and casted the address of the first entry in the array to it.

Below we will make a for loop through all slots(64) and set all of their Row/Slots to slot 1.

Code:
void InventoryStack()
{
	for(int i = 0; i < 64; i++)
	{
		Inventory[i].Row = 0; //First row
		Inventory[i].Slot = 0; //First slot in the first row
                Inventory2[i].Row = 0; //Hermit vault
		Inventory2[i].Slot = 0; 
	}
}
Simple as that. Within your main loop of your .dll call it like this:
Code:
InventoryStack();
You can also filter specific items and move them to different slots based on what they are like this:



Code:
if(Inventory1[i].ItemID == 1108)
{
         Inventory1[i].Row = 2; // Second row
	 Inventory1[i].Slot = 0; // First slot of second row
}
iktov2 is offline  
Thanks
6 Users
Old 05/02/2013, 20:13   #2



 
Mastershouter's Avatar
 
elite*gold: 21
Join Date: Nov 2006
Posts: 2,526
Received Thanks: 1,222
Nice Tutorial! Keep up the good work.
Mastershouter is offline  
Old 05/02/2013, 20:21   #3
 
elite*gold: 0
Join Date: Jan 2013
Posts: 247
Received Thanks: 25
good tutorial and thanks for posting it.
Agresive3 is offline  
Old 05/02/2013, 20:49   #4
 
elite*gold: 0
Join Date: Feb 2013
Posts: 195
Received Thanks: 15
**** all I need now is an intel pc :P or some other way to get around xtrap for CE
softuserz is offline  
Old 05/02/2013, 20:56   #5
 
elite*gold: 0
Join Date: Mar 2013
Posts: 57
Received Thanks: 4
bad tutorial
seidlud is offline  
Old 05/02/2013, 21:15   #6
 
almar12's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 883
Received Thanks: 157
Quote:
Originally Posted by seidlud View Post
bad tutorial
Lol if you don't understand this tutorial you should go back to kindergarten. Seriously even a kid would know what to do.
almar12 is offline  
Old 05/02/2013, 21:21   #7
 
elite*gold: 0
Join Date: Mar 2013
Posts: 57
Received Thanks: 4
no comment, super mario
seidlud is offline  
Old 05/02/2013, 21:29   #8
 
elite*gold: 0
Join Date: Jul 2010
Posts: 623
Received Thanks: 175
Quote:
Originally Posted by almar12 View Post
Lol if you don't understand this tutorial you should go back to kindergarten. Seriously even a kid would know what to do.
I am not sure weather to be thankful or offended... ha ha.
iktov2 is offline  
Old 05/02/2013, 22:49   #9
 
elite*gold: 0
Join Date: Feb 2013
Posts: 195
Received Thanks: 15
Quote:
Originally Posted by almar12 View Post
Lol if you don't understand this tutorial you should go back to kindergarten. Seriously even a kid would know what to do.
hey now....
I had to read it 3 times :P
and I finished kindergarden 3 times as well

nah but serriously thanks Ikov you are very useful to these forums bro.
softuserz is offline  
Old 05/02/2013, 22:53   #10
 
elite*gold: 0
Join Date: Nov 2010
Posts: 265
Received Thanks: 97
Good job iktov! Looks much nicer than my barbaric code
Rumil12 is offline  
Thanks
1 User
Old 05/02/2013, 23:20   #11
 
almar12's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 883
Received Thanks: 157
Quote:
Originally Posted by iktov2 View Post
I am not sure weather to be thankful or offended... ha ha.
If you can explain something in kindergarden you made a good tutorial.
almar12 is offline  
Old 05/03/2013, 01:58   #12
 
elite*gold: 0
Join Date: Oct 2010
Posts: 38
Received Thanks: 1
i think deco hack works like this, i just changed a wlc to deco 4 item, and try to wear and it dced me...ofcourse...i ll find it
leondr is offline  
Old 05/03/2013, 22:01   #13
 
elite*gold: 0
Join Date: Nov 2010
Posts: 265
Received Thanks: 97
Quote:
Originally Posted by leondr View Post
i think deco hack works like this, i just changed a wlc to deco 4 item, and try to wear and it dced me...ofcourse...i ll find it
Ya might as well make ur lvl 1 commons into d12 elites while ur at it
Rumil12 is offline  
Old 05/04/2013, 04:17   #14
 
elite*gold: 0
Join Date: Feb 2013
Posts: 195
Received Thanks: 15
Quote:
Originally Posted by leondr View Post
i think deco hack works like this, i just changed a wlc to deco 4 item, and try to wear and it dced me...ofcourse...i ll find it
Your only touching visual client side and are very far from the real deal :P
softuserz is offline  
Old 05/26/2013, 21:59   #15
 
elite*gold: 0
Join Date: May 2013
Posts: 20
Received Thanks: 1
how to make this cheat with cheat engine adresses?
seid096 is offline  
Reply


Similar Threads Similar Threads
Koopa's Discount-Offer:Ectos 13,99€/stack! Lpicks 3,99/stack!
04/04/2012 - Guild Wars Trading - 0 Replies
Hey ;) My special offer until monday or sold-out. Enjoy :) Ectos in stock: 10 Stacks http://gwah.onlinewelten.com/images/Ektoplasmakuge l.png 8 stacks sold 1 Stack = 13,99€
[Tutorial] WolfTeam WIS/WT Aeria Inventory Hack
10/15/2011 - Wolfteam - 66 Replies
Hallo und herzlich Willkommen zu meinem kleinen Tutorial Ich habe seit längerem die Wolfteam Selection beachtet und mir ist folgendes aufgefallen: Ständig wird gefragt, wie und ob noch ein Hack funktioniert. Also habe ich mir gedacht, mach doch ein Theard auf, wo alle Hacks für Wolfteam Aeria und Wolfteam Softnyx drin sind :D. Gesagt getan. Erstmal zur Erklärung zwischen Softnyx und Aeria. Softnyx: Softnyx sind die Entwickler von WolfTeam. Es gibt bei Softnyx zwei Versionen: WolfTeam...
[Tutorial]How to make any item stackable/change max stack
10/07/2009 - Dekaron Private Server - 8 Replies
I have seen 4 threads asking about this now, so I decided to make a tutorial. We will work with items in itemetc.csv here, but it works with any items. Ok, so let's go data/share/item/itemetc.csv Now, let's examine the columns. Name Rank Type Code Attribute Description Quality Job Appraisal Value Weight ReqLv Price Width Heig ht StackNumber AutoStack StackDrop_Min StackDrop_M ax Has_Durability Can_Repair Durability_Low Durabi lity_Normal... Ok, I think We know what we are looking for....



All times are GMT +2. The time now is 11:53.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.