Scan Inventory

04/16/2013 02:51 Afro-Head#16
I edit my post before, since i post in a hurry the Function to get the Loot info :o
Now its the right Function in my post, excuse me.

To read the Inventory just use this Way:
Code:
1. Inventory Size: [[PlayerStruct + 0xDC0] + 0x10]
2. Inventory Pointer: [[PlayerStruct + 0xDC0] + 0xC]

for i=0 to Inventory Size-1
(loop from inventory slot 0 up to what ever player has maximum)

3. Inventory Base of Item: [Inventory Pointer + i * 0x4]

4. Item ID: [Inventory Base of Item + 8]
(Or Name, Price...described in the Link you post before)
end for loop...
02/22/2015 10:14 DrSMERTb#17
Quote:
Quote:
Originally Posted by PhilMeBeer View Post
GA(PWI=0xAD60C4)+30+C68+C+[I*4] ----- I=1-(GA+30+C68+10)
+8 = Item Id
+10 = Item Count
+40+0 = Description only shows after has been mouse overed .... find source from id instead < sry havent found yet
name from id is dependant on the type of item and is generally stored in hash lists (or for some items also somewhere in the item structure). It's easiest to inject a function that updates description as if you hovered over it with mouse.

For example:

itemAddress[i] = [[[player + 0xC68] + 0xC] + i * 4]
funcAddress[i] = [[itemAddress[i] + 0] + 0x34]

pushad
mov ECX, itemAddress[i]
mov EAX, funcAddress[i]
call EAX
popad

then itemdesc[i]= [[[itemAddress[i] + 0x40] + 0]
Hi, try to use this asm code. But nothing comes out.
I use last offsets for 1.5.1
....
for (int i=0;i<InvCount;i++)
{
......
DWORD func = Read(Inv+0x0);
func = Read(func+0x34); //this true?
asm
{
pushad
mov ECX, Inv
mov EAX, func
call EAX
popad
}
.....
}
can be offsets functions changed?