1. MSBT Item Count Fix

    For those who use MSBT 5.4.78, you might have noticed that the item count is not displaying total count correctly. As an example, If I have 20 Relics of Ulduar, and if I loot 3, MSBT's "%t" will not show 23, but 26. To correct this, just go under MSBT folder (under Interface/Addons) and edit line 102 of MSBTLoot.lua :

    local numTotal = numItems + numLooted
    becomes
    local numTotal = numItems

    Hoping that this will benefit somebody.

  2. May 25, 2020  

    Additional Fixes for item count loot 0

    For those who use MSBT 5.4.78, you might have noticed that the item count is not displaying total count correctly. As an example, If I have 20 Relics of Ulduar, and if I loot 3, MSBT's "%t" will not show 23, but 26. To correct this, just go under MSBT folder (under Interface/Addons) and edit line 102 of MSBTLoot.lua :

    local numTotal = numItems + numLooted
    becomes
    local numTotal = numItems

    Hoping that this will benefit somebody.
    if I may add, whenever you loot an item that doesn't exist in your inventory the numTotal is 0. to fix this issue I suggest an edit to the following lines


    local numItems = GetItemCount(itemLink) or 1
    local numTotal = numItems + numLooted

    becomes

    local iCount = GetItemCount(itemLink)
    local numItems = iCount > 0 and iCount or numLooted
    local numTotal = numItems

  3. May 27, 2020  
    I was looking for this, thanks for sharing guys!

  4. May 27, 2020  
    if I may add, whenever you loot an item that doesn't exist in your inventory the numTotal is 0. to fix this issue I suggest an edit to the following lines


    local numItems = GetItemCount(itemLink) or 1
    local numTotal = numItems + numLooted

    becomes

    local iCount = GetItemCount(itemLink)
    local numItems = iCount > 0 and iCount or numLooted
    local numTotal = numItems
    This works like a charm.

    PS: I hate those LUA conditionals in one line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •