blob: 75d0001fd4d8bab561b1ef59406de76e9e730ce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
# item\_loot\_items
`Back-to:Characters`
**The \`item\_loot\_items\` table**
Contains the items associated with a lootable inventory item such as a "watertight trunk" or "Bulging Sack of Gems"
This table is populated the first time the player right-clicks to open an item. Rows are deleted when
the player either removes an item or destroys the container item.
**Structure**
<table>
<colgroup>
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
</colgroup>
<tbody>
<tr class="odd">
<td><p><strong>Field</strong></p></td>
<td><p><strong>Type</strong></p></td>
<td><p><strong>Attributes</strong></p></td>
<td><p><strong>Key</strong></p></td>
<td><p><strong>Null</strong></p></td>
<td><p><strong>Default</strong></p></td>
<td><p><strong>Extra</strong></p></td>
<td><p><strong>Comment</strong></p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-container_id">container_id</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#item_loot_items-item_id">item_id</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-item_count">item_count</a></p></td>
<td><p>int(10)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#item_loot_items-follow_rules">follow_rules</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-ffa">ffa</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#item_loot_items-blocked">blocked</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-counted">counted</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#item_loot_items-under_threshold">under_threshold</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-needs_quest">needs_quest</a></p></td>
<td><p>tinyint(1)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#item_loot_items-rnd_prop">rnd_prop</a></p></td>
<td><p>int(10)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#item_loot_items-rnd_suffix">rnd_suffix</a></p></td>
<td><p>int(10)</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
</tbody>
</table>
**Description of the fields**
### container\_id
The GUID of the container item that holds the loot item(s). See item\_instance.guid
Note: A [container\_id](#item_loot_items-container_id) can have more than one [item\_id](#item_loot_items-item_id) associated with it.
### item\_id
The entry of the loot item. See item\_instance.itemEntry
Note: It is possible for there to be more than one of the same item in a container.
### item\_count
The stack size of the item. Only stackable items can be > 1.
### follow\_rules
Flag to determine if the core should apply additional loot rules when the item
is removed from the container.
### ffa
Flag to determine if free-for-all looting applies. This should typically be 0 because the items are inside
an item in the character's inventory.
### blocked
`field-no-description|6`
### counted
`field-no-description|6`
### under\_threshold
`field-no-description|6`
### needs\_quest
Flag to determine if the item is a quest item to be counted as a "quest drop".
### rnd\_prop
The random enchantment (if any) that was rolled and added to the item when the loot container was
originally opened.
For example: "Ebon Scimitar" (as opposed to a plain "Scimitar").
### rnd\_suffix
The random suffix (if any) that was rolled and added to the item when the loot container was
originally opened.
For example: "of the Monkey"
|