Skip to content

Commit b782164

Browse files
committed
Added a fix. Spew now is debug only.
1 parent c856a8e commit b782164

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

e3 Includes/e3_Loot.inc

+6-3
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ SUB loot_It
170170
| 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
171171
| Then check to see if there is room within the stack to loot it.
172172
/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
174174
/varset itemName ${Corpse.Item[${i}].Name}
175175
/varset itemSlot ${FindItem[=${itemName}].ItemSlot}
176176
/echo itemSlot: ${itemSlot}
@@ -179,13 +179,16 @@ SUB loot_It
179179
/for j 1 to 10
180180
/if (${Me.Inventory[${itemSlot}].Item[${j}].Name.Equal[${itemName}]}) {
181181
/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
183183
/goto :skip_Item
184184
} 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
186186
}
187187
}
188188
/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
189192
}
190193
} else /if (${Me.LargestFreeInventory} < ${Corpse.Item[${i}].Size}) {
191194
/echo [Auto-Loot]: I don't have a free inventory space large enough to hold [${Corpse.Item[${i}].Name}].

0 commit comments

Comments
 (0)