🧙‍♂️ Brought to you by Peptides.gg — Use code UO20 for 20% off — GLP-1's, 90+ Peptides and more!

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

Started by TimSt · 2023-11-01 · 2 posts · General Discussions
#0
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


#1
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

← Browse more General Discussions discussions