@@ -170,7 +170,7 @@ SUB loot_It
170
170
| If 1 ) No open slots 2 ) The item on the corpse is stackable 3 ) I have one of the stackable items in my inventory already
171
171
| Then check to see if there is room within the stack to loot it.
172
172
/ if (! ${Me.LargestFreeInventory} && ${Corpse.Item[${i}].Stackable} && ${Bool[${FindItem[= ${Corpse.Item[${i}].Name}]}]}) {
173
- / bc [Auto- Loot]: Check stackables
173
+ / if (${Debug} || ${Debug_Loot}) / bc [Auto- Loot]: Check stackables
174
174
/ varset itemName ${Corpse.Item[${i}].Name}
175
175
/ varset itemSlot ${FindItem[= ${itemName}].ItemSlot}
176
176
/ echo itemSlot: ${itemSlot}
@@ -179,13 +179,16 @@ SUB loot_It
179
179
/ for j 1 to 10
180
180
/ if (${Me.Inventory[${itemSlot}].Item[${j}].Name.Equal[${itemName}]}) {
181
181
/ if (! ${Me.Inventory[24 ].Item[${j}].FreeStack} ) {
182
- / bc [Auto- Loot]: I' ve got a stack, but its full, skipping
182
+ / if (${Debug} || ${Debug_Loot}) / bc [Auto- Loot]: I' ve got a stack, but its full, skipping
183
183
/ goto : skip_Item
184
184
} else {
185
- / bc [Auto- Loot]: I' ve got a stack, but its NOT full, I should loot this
185
+ / if (${Debug} || ${Debug_Loot}) / bc [Auto- Loot]: I' ve got a stack, but its NOT full, I should loot this
186
186
}
187
187
}
188
188
/ next j
189
+ } else / if (${Me.Inventory[${itemSlot}].Name.Equal[${itemName}]} && ! ${Me.Inventory[24 ].Item[${j}].FreeStack} ) {
190
+ / if (${Debug} || ${Debug_Loot}) / bc [Auto- Loot]: I' ve got a stack, but its full, skipping
191
+ / goto : skip_Item
189
192
}
190
193
} else / if (${Me.LargestFreeInventory} < ${Corpse.Item[${i}].Size}) {
191
194
/ echo [Auto- Loot]: I don' t have a free inventory space large enough to hold [${Corpse.Item[${i}].Name}].
0 commit comments