Jump to content
  • The item_instance data blob field demystified


    Talendrys
    • Status: Confirmed
      Main Category: Database
      Sub-Category: Minor
      Version: 22.1 Milestone: 24 Priority: Normal
      Related to:
      Implemented Version: 22.1
      Assigned: antz

    Hello,

    For a long time, the item_instance "data" blob field has been some mystery. In this post, I will describe the update that we need to do on the wiki to solve this misunderstanding:

    The data-field is a String separated by spaces between each values. Here's the value meaning sorted by index:

    1. Item GUID

    2. Item High GUID (Stored 0x4000 0000)

    3. Object Field Type (Mask value retrieved from the code: TypeMask enum, value is 3 or 7 depending if it's an item or a container)

    4. Item Entry (Entry ID of the item_template)

    5. Scale (Scale value, did not yet found the storage type, maybe float ?)

    6. Padding (No info on this)

    7. Owner Guid

    8. High Guid Owner (Should be always 0 for player)

    9. Item Field Contained (Can be the GUID of another item instance if stored in a bag or the GUID of the character if equipped)

    10. Item Field Container High Guid (Should be 0x4000 0000 or 0 depending if it's a bag or if it's a player)

    11. Creator GUID

    12. Creator HIGH Guid

    13. GUID Gift Creator

    14. High Guid Gift Creator

    15. Stack Count

    16. Duration

    17. Spell Charges 01

    18. Spell Charges 02

    19. Spell Charges 03

    20. Spell Charges 04

    21. Spell Charges 05

    22. Item Flags (Mask is ITEM_DYN_FLAGS)

    23. Perm Enchantment ID

    24. Perm Enchantment Duration

    25. Perm Enchantment Charges

    26. Enchantment ID Temp

    27. Enchantment Duration  Temp

    28. Enchantment Charges Temp

    29. Enchantment ID Max Inspect

    30. Enchantment Duration Max Inspect

    31. Enchantment Charges Max Inspect

    32. Enchantment Prop 0 ID

    33. Enchantment Prop 0 Duration

    34. Enchantment Prop 0 Charges

    35. Enchantment Prop  1 ID

    36. Enchantment Prop 1 Duration

    37. Enchantment Prop 1 Charges

    38. Enchantment Prop 2 ID

    39. Enchantment Prop 2 Duration

    40. Enchantment Prop 2 Charges

    41. Enchantment Prop 3 ID

    42. Enchantment Prop 3 Duration

    43. Enchantment Prop 3 Charges

    44. Item Field Property Seed

    45. Item Field Random Properties ID

    46. Item Field Text ID

    47. Item Field Durability

    48. Item Field Max Durability

    49. CONTAINER NUM SLOT (only available if it's a bag/container) MAX slots = 28, the slots are then always a combination of Item GUID + Item High GUID, so 28*2 = 56 FIELD SLOTS

    50. CONTAINER ALIGN PAD (???)

    51. CONTAINER FIELD SLOT 1 (Item GUID)

    52. CONTAINER FIELD SLOT 2 (Item HIGH GUID 0x4000 000)

    53. CONTAINER FIELD SLOT 3

    54. CONTAINER FIELD SLOT 4

    55. CONTAINER FIELD SLOT 5

    56. CONTAINER FIELD SLOT 6

    57. CONTAINER FIELD SLOT 7

    58. CONTAINER FIELD SLOT 8

    59. CONTAINER FIELD SLOT 9

    60. CONTAINER FIELD SLOT 10

    61. CONTAINER FIELD SLOT 11

    62. CONTAINER FIELD SLOT 12

    63. CONTAINER FIELD SLOT 13

    64. CONTAINER FIELD SLOT 14

    65. CONTAINER FIELD SLOT 15

    66. CONTAINER FIELD SLOT 16

    67. CONTAINER FIELD SLOT 17

    68. CONTAINER FIELD SLOT 18

    69. CONTAINER FIELD SLOT 19

    70. CONTAINER FIELD SLOT 20

    71. CONTAINER FIELD SLOT 21

    72. CONTAINER FIELD SLOT 22

    73. CONTAINER FIELD SLOT 23

    74. CONTAINER FIELD SLOT 24

    75. CONTAINER FIELD SLOT 25

    76. CONTAINER FIELD SLOT 26

    77. CONTAINER FIELD SLOT 27

    78. CONTAINER FIELD SLOT 28

    79. CONTAINER FIELD SLOT 29

    80. CONTAINER FIELD SLOT 30

    81. CONTAINER FIELD SLOT 31

    82. CONTAINER FIELD SLOT 32

    83. CONTAINER FIELD SLOT 33

    84. CONTAINER FIELD SLOT 34

    85. CONTAINER FIELD SLOT 35

    86. CONTAINER FIELD SLOT 36

    87. CONTAINER FIELD SLOT 37

    88. CONTAINER FIELD SLOT 38

    89. CONTAINER FIELD SLOT 39

    90. CONTAINER FIELD SLOT 40

    91. CONTAINER FIELD SLOT 41

    92. CONTAINER FIELD SLOT 42

    93. CONTAINER FIELD SLOT 43

    94. CONTAINER FIELD SLOT 44

    95. CONTAINER FIELD SLOT 45

    96. CONTAINER FIELD SLOT 46

    97. CONTAINER FIELD SLOT 47

    98. CONTAINER FIELD SLOT 48

    99. CONTAINER FIELD SLOT 49

    100. CONTAINER FIELD SLOT 50

    101. CONTAINER FIELD SLOT 51

    102. CONTAINER FIELD SLOT 52

    103. CONTAINER FIELD SLOT 53

    104. CONTAINER FIELD SLOT 54

    105. CONTAINER FIELD SLOT 55

    106. CONTAINER FIELD SLOT 56



    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×