ItemRarity within the item data structure

03/09/2019 19:27 Term!nX#1
Hello,

I am currently updating my script engine but since the somewhat bigger update a few weeks ago they seem to have changed the item struct.

So far I found:

ItemStruct
+ 0x0 = itemId (int)
+ 0x24 = value (int)
+ 0x2C = modelId (int)
+ 0x4C = quantity (byte)
+ 0x54 = end of data structure

But I do not seem to be able to find the itemRarity. I went through many offsets with different items but I cannot find a single value that would let me reliably distinguish between white, blue, gold and green items. Does anyone have more info on that?

Best regards
03/09/2019 19:32 DerMoench14#2
It's + 0x38 (ptr).
On this Pointer do a MemoryRead (word).
BTW: quantity is an unsigned short (word), too!
03/09/2019 19:55 Term!nX#3
Thank you very much for your fast answer.

Please have a look at the picture:

The first 3 items in the main bag are all golden items. But if I click through the slots, the assumed rarity at 0x38 changes to random values which do not correlate to the items actual rarity.
03/09/2019 20:18 DerMoench14#4
Yeah, because im stupid and forgot something, sry.
Corrected it above.
03/09/2019 22:23 Term!nX#5
Yep that did the trick. Thank you so much.