Automatically changes your cavebot settings to work with the tools that you have.
init start
local tools = {
Shovel = {"Shovel", "Light Shovel", "Sneaky Stabber of Eliteness", "Squeezing Gear of Girlpower", "Whacking Driller of Fate"},
Rope = {"Rope", "Elvenhair Rope", "Sneaky Stabber of Eliteness", "Squeezing Gear of Girlpower", "Whacking Driller of Fate"},
Machete = {"Machete", "Heavy Machete", "Sneaky Stabber of Eliteness", "Squeezing Gear of Girlpower", "Whacking Driller of Fate"},
Pick = {"Pick", "Sneaky Stabber of Eliteness", "Squeezing Gear of Girlpower", "Whacking Driller of Fate"},
}
local function fixToolSetup(path, options)
for _, item in ipairs(options) do
if itemcount(item) > 0 then
return setsetting(path, item)
end
end
end
init end
for toolType, options in pairs(tools) do
local path = 'Cavebot/'..toolType
if itemcount(getsetting(path)) == 0 then
fixToolSetup(path, options)
end
end
auto(5000)