EC: Stop Loot All from running forever if the loot bag can not hold more weight

TimStTimSt Posts: 1,874
edited November 2023 in General Discussions
The EC has a bug where Loot All will run forever if the loot bag cannot hold more weight.  The follow code will fix that.

Add the following code to the function TextParsing.SpecialTexts in the file source\TextParsing.lua
function TextParsing.SpecialTexts()
local senderText = SystemData.Text
local find = wstring.find

--start of added code
if ( senderText ~= nil) then
local text = GetStringFromTid(1080016) -- "That container cannot hold more weight."
if( senderText == text ) then
ContainerWindow.LootAllBtn()
end
end
--end of added code


Comments

  • Thanks Tim, here's a small adjustment to take care of the same thing in the organizer.

    			if (Actions.MassOrganize == true ) then
    Actions.MassOrganize = false -- abort organizer
    else
    ContainerWindow.LootAllBtn() -- abort lootall.
    end

    return

Sign In or Register to comment.