Results 1 to 3 of 3

Thread: Help with action to reconnect and re-open backpack's

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Help with action to reconnect and re-open backpack's

    im kind of new to the ibot community and would like to know what action should i use to reconnect and reopen backpacks, in this case one main and then stackable-loot-gold
    thanks in advance!

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    i tried using this one, it reconnects but dosnt opens backpacks


    --Set true or false for reopen Backpacks
    ReopenBackpack = true

    --Configure here the name of Backpacks
    --Configure aki o nome das Backpacks
    local MainBP = "Backpack of Holding"
    local LootBP = "Blue Backpack"
    local GoldBP = "Golden Backpack"

    --Configure here account, password and name of the character
    --Configura aki o seuaccount, senha e nome do char
    ACCname = "account"
    PASSWORD = "password"
    CHARACTERNAME = "Character Name"

    --dont change below

    local accounts =
    {
    {acc = ACCname, pass = PASSWORD, name = CHARACTERNAME}
    }
    local serversavetime = {from = '6:00', to = '6:20'}
    serversavetime = {from = tosec(serversavetime.from), to = tosec(serversavetime.to)}
    local randdelay = {min = 0, max = 300}
    local startlabel = ''
    local curchar = 1

    --dont change things below

    local randomdelay = math.random(randdelay.min, randdelay.max)
    if not connected then
    setcavebot('off')
    local curtime = tosec(time())
    if curtime < serversavetime.from or curtime > serversavetime.to+randomdelay then
    connect(accounts[curchar].acc, accounts[curchar].pass, accounts[curchar].name)
    wait(3000,4000)
    updateworld()
    if connected then
    if startlabel ~= '' then
    gotolabel(startlabel)
    if ReopenBackpack == true then
    wait(2000) openitem(MainBP, "back") wait(1000) openitem(LootBP, MainBP, true) wait(1000) resizewindows() wait(1000) openitem(GoldBP, MainBP, true) wait(1000) resizewindows() wait(1000) setcavebot("on") wait(300) settargeting("on") wait(300) setlooting("on")
    end
    end
    setcavebot('on')
    end
    end
    end

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    The code looks great, maybe you should go info->Debug and copy if anything appears there when the Action is enabled and make sure you have MainBP, LootBP, etc assigned

Posting Permissions

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