Signup Now
Results 1 to 2 of 2
  1. #1
    Free User shAdOwArt's Avatar
    Join Date
    Apr 2015
    Location
    Kharos
    Posts
    189
    Reputation
    151
    Rep Power
    20

    Automatic Tool Setup

    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)
    Last edited by shAdOwArt; 09-19-2016 at 12:31 PM.

  2. #2
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,167
    Reputation
    25
    Rep Power
    23
    Nice xD i have forgot to change it few times in the past years lol
    Old 'n Proud Neobot-Elfbot and blackd user

 

 

Posting Permissions

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