Quantcast Container names for insects?? - ESOUI
Thread Tools Display Modes
06/07/18, 09:16 PM   #1
sapientNode
Join Date: Jun 2018
Posts: 2
Container names for insects??

I am using craft auto loot addon and wanted to put insects on the list of being auto looted.
Can someone help me with the container names for insects or direct me to the LUA with containers in them??
thx for the help
  Reply With Quote
06/07/18, 10:07 PM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 316
Rather than checking the container name, why not check what is in the container?I realize that's a bit hypocritical because I check the container name myself, but it's still probably a better method.
  Reply With Quote
06/07/18, 10:18 PM   #3
sapientNode
Join Date: Jun 2018
Posts: 2
Actually that would be better since I could better specify.
I am starting with reverse engineering craft auto loot though
Figured it is easier to just insert inside containers section. Suppose I could add more to it to add more detail...


Code:
function CraftAutoLoot:Initialize()
   ZO_ReticleContainerInteract:SetHandler("OnShow", function()
      local action, container, _, _, additionalInfo, _ = GetGameCameraInteractableActionInfo()
      if action == "Mine" or action == "Collect" or action == "Cut" or action == "Reel In" or ((container == "Apple Basket" or container == "Apple Crate" or container == "Barrel" or container == "Barrels" or container == "Basket" or container == "Cabinet" or container == "Corn Basket" or container == "Crate" or container == "Crates" or container == "Flour Sack" or container == "Greens Basket" or container == "Melon Basket" or container == "Millet Sack" or container == "Sack" or container == "Saltrice Sack" or container == "Seasoning Sack" or container == "Tomato Crate" or container == "Heavy Sack" or container == "Heavy Crate") and action == "Search") then
         SetSetting(SETTING_TYPE_LOOT, LOOT_SETTING_AUTO_LOOT, 1)
      else
	 SetSetting(SETTING_TYPE_LOOT, LOOT_SETTING_AUTO_LOOT, 0)
      end
   end)
end
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Container names for insects??

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off