Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Auto reconnect by blakw

  1. #1
    iBot User gamalyel's Avatar
    Join Date
    Jan 2014
    Posts
    50
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    3

    Auto reconnect by blakw

    Lua Code:
    --[[
        Name: Auto Safe Reconnect Full by BlakW 
        Version: v5.1.0
    ]]--
     
     
    --Reopen backpacks:
    local reopenBps = ("yes")
     
     
    ----- Backpack Name Settings -----
    --Main Backpack Name:
    local mainBackpackName = ("Backpack of Holding")
     
    --Loot Backpack Name:
    local lootBackpackName = ("Blue Backpack")
     
    --Supplies Backpack Name:
    local supBackpackName = ("Green Backpack")
     
    --Gold Backpack Name:
    local goldBackpackName = ("Golden Backpack")
     
     
    ----- Backpacks to Use -----
    --Use Main Backpack:
    local useMainBackpack = ("yes")
     
    --Use Loot Backpack:
    local useLootBackpack = ("yes")
     
    --Use Supplies Backpack:
    local useSuppliesBackpack = ("yes")
     
    --Use Gold Backpack:
    local useGoldBackpack = ("yes")
     
     
    ----- Safe Temple Settings -----
    --Temple NPCs:
    local templeNpcNames = {"Alia", "Tyrias", "Brewster", "Rahkem", "Kasmir", "Amanda", "Isimov", "Yberius", "Maealil", "Quentin", "Lynda", "Lorietta", "Prezil", "Kjesse", "Asralius"}
     
    --Temple Position Range (sqm):
    local templePositionRange = 7
     
     
    ----- Engine [Do not edit unless you know what you are doing] -----
    if (connected == false and dead == false)
    then
            reconnect()
            wait(600, 1800)
            pausewalking(10000)
     
            if ((pzone == true) and (maround(10, false, unpack(templeNpcNames)) >= 1) 
    or (pzone == true) and (islocationxyz(32787, 31276, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32595, 32744, 6, templePositionRange)) 
    or (pzone == true) and (islocationxyz(33213, 32454, 1, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32213, 31133, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(33004, 31490, 11, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32649, 31925, 11, templePositionRange)) 
    or (pzone == true) and (islocationxyz(33217, 31814, 8, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32317, 32826, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(33194, 32853, 8, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32369, 32241, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32360, 31782, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32957, 32076, 7, templePositionRange)) 
    or (pzone == true) and (islocationxyz(32732, 31634, 7, templePositionRange))  
    or (pzone == true) and (islocationxyz(33447, 31323, 9,  templePositionRange)))
            then
            wait(1500)
            closetibia()
            wait(1500)
            message("Reconnect Message: Tibia client has been closed because character was inside a temple. This is to protect your character from being killed by other players.")
        end  
     
        wait(1000, 1500)
        setcavebot("no")
        wait(1000, 2500)
        setlooting("no")
        wait(1000, 2500)
        settargeting("no")
     
        wait(2500)
        if ((reopenBps == ("yes")) and (windowcount() == 0) and (maround(7, false) == 0) and (lootbodiescount == 0))
        then
            closewindows()
            wait(2000, 3500)
            while ((windowcount(mainBackpackName) == 0) and (useMainBackpack == ("yes")))
            do
                openitem(mainBackpackName, "back")
                wait(2000)
                resizewindows()
            end
            wait(2000, 3500)
            while ((windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useSuppliesBackpack == ("yes")))
            do
                openitem(supBackpackName, mainBackpackName, true)
                wait(2000)
                resizewindows()
            end
            wait(2000, 3500)
            while ((windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useLootBackpack == ("yes")))
            do
                openitem(lootBackpackName, mainBackpackName, true)
                wait(2000)
                resizewindows()
            end
            wait(2000, 3500)
            while ((windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useGoldBackpack == ("yes")))
            do
                openitem(goldBackpackName, mainBackpackName, true)
                wait(2000)
                resizewindows()
            end
            wait(2000, 3500)
        end
        wait(10000, 15000)
        setcavebot("yes")
        wait(1000, 2500)
        setlooting("yes")
        wait(1000, 2500)
        settargeting("yes")
        wait(2000, 3500)
    end



    seems perfet to me, but just dont work with my knight, just my druid.
    -.-
    Im trying everything.
    Any idea?

    // Use lua tags next time please.
    // RafiXWPT
    Last edited by RafiXWPT; 03-12-2014 at 08:14 AM.

  2. #2
    iBot User
    Join Date
    May 2012
    Location
    Poland
    Posts
    102
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    What is not working? Reconnect or opening backpacks?

    If backpack open is not working, maybe u have got wrong MainBP or others?

  3. #3
    iBot User gamalyel's Avatar
    Join Date
    Jan 2014
    Posts
    50
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    3
    Well, dont know dude.
    My backpacks r ok.
    I will take another look.

    PS: opening is not working

  4. #4
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    You could try making 2 different actions, one for reconnecting and other just for opening backpacks

  5. #5
    iBot User gamalyel's Avatar
    Join Date
    Jan 2014
    Posts
    50
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    10
    Rep Power
    3
    Ok, but there is an action like "ifnotopen" ? or stuff like that...
    cuz, If I just make an action to open backpack it will be crazy (open...open...open...)

  6. #6
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    updateworld() is handy with "while" operator..


    Lua Code:
    local MainBP = "backpack name"
    local GoldBP = "backpack name"
    local SuppBP = "backpack name"
    local LootBP = "backpack name"
     
     
    if (time() < "10:00" or time() > "10:15") and not connected then
        setcavebot("no")
        settargeting("no")
        setlooting("no")
     
        while not connected do 
            reconnect()
            wait(2000, 4000)
            updateworld()
        end
     
        local TEMPLE_NPCS = {"Maealil", "Alia", "Isimov", "Quentin", "Yberius", "Rahkem", "Kasmir", "Amanda", "Prezil", "Tyrias", "Brewster", "Kjesse", "Lorietta"}
     
        for _, NPC in ipairs(TEMPLE_NPCS) do
            if maround(7, false, NPC) > 0 then
                closetibia()
                message("You died, check iBot files folder to get more details")
            end
        end
     
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no")
        while windowcount(MainBP) ~= 1 or windowcount(GoldBP) ~= 1 or windowcount(LootBP) ~= 1 or windowcount(SuppBP) ~= 1 or windowcount() ~= 4 do
            closewindows()
            wait(400, 600)
     
            openitem(MainBP, 'back')
            wait(400, 600)
            resizewindow(MainBP, 0)
     
            openitem(LootBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
            openitem(GoldBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
            openitem(SuppBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
        end
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes")
        setcavebot("yes")
        settargeting("yes")
        setlooting("yes")
        updateworld()
    end
    Last edited by Eli; 03-16-2014 at 02:18 PM.

  7. #7
    iBot User Xaoo's Avatar
    Join Date
    May 2014
    Location
    London
    Posts
    136
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    21
    Rep Power
    3
    Quote Originally Posted by Eli View Post
    updateworld() is handy with "while" operator..


    Lua Code:
    local MainBP = "backpack name"
    local GoldBP = "backpack name"
    local SuppBP = "backpack name"
    local LootBP = "backpack name"
     
     
    if (time() < "10:00" or time() > "10:15") and not connected then
        setcavebot("no")
        settargeting("no")
        setlooting("no")
     
        while not connected do 
            reconnect()
            wait(2000, 4000)
            updateworld()
        end
     
        local TEMPLE_NPCS = {"Maealil", "Alia", "Isimov", "Quentin", "Yberius", "Rahkem", "Kasmir", "Amanda", "Prezil", "Tyrias", "Brewster", "Kjesse", "Lorietta"}
     
        for _, NPC in ipairs(TEMPLE_NPCS) do
            if maround(7, false, NPC) > 0 then
                closetibia()
                message("You died, check iBot files folder to get more details")
            end
        end
     
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no")
        while windowcount(MainBP) ~= 1 or windowcount(GoldBP) ~= 1 or windowcount(LootBP) ~= 1 or windowcount(SuppBP) ~= 1 or windowcount() ~= 4 do
            closewindows()
            wait(400, 600)
     
            openitem(MainBP, 'back')
            wait(400, 600)
            resizewindow(MainBP, 0)
     
            openitem(LootBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
            openitem(GoldBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
            openitem(SuppBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
        end
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes")
        setcavebot("yes")
        settargeting("yes")
        setlooting("yes")
        updateworld()
    end
    I know It's been a long time ago but can u edit this script for opening backpacks after kick/freeze too..? Or maybe its actually works?

  8. #8
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by Xaoo View Post
    I know It's been a long time ago but can u edit this script for opening backpacks after kick/freeze too..? Or maybe its actually works?
    It working

  9. #9
    iBot User Xaoo's Avatar
    Join Date
    May 2014
    Location
    London
    Posts
    136
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    21
    Rep Power
    3
    btw, someone re-selling paid scripts ;] Just search a little.

  10. #10
    iBot User Xaoo's Avatar
    Join Date
    May 2014
    Location
    London
    Posts
    136
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    21
    Rep Power
    3
    eh;/ bots reopening backpacks all the time.. Why?

    Code:
    local MainBP = "Brocade Backpack"
    local GoldBP = "Yellow Backpack"
    local LootBP = "Backpack"
     
     
    if (time() < "10:00" or time() > "10:14") and not connected then
        setcavebot("no")
        settargeting("no")
        setlooting("no")
     
        while not connected do 
            reconnect()
            wait(2000, 4000)
            updateworld()
        end
     
        local TEMPLE_NPCS = {"Maealil", "Alia", "Isimov", "Quentin", "Yberius", "Rahkem", "Kasmir", "Amanda", "Prezil", "Tyrias", "Brewster", "Kjesse", "Lorietta"}
     
        for _, NPC in ipairs(TEMPLE_NPCS) do
            if maround(7, false, NPC) > 0 then
                closetibia()
                message("You died, check iBot files folder to get more details")
            end
        end
     
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "no")
        while windowcount(MainBP) ~= 1 or windowcount(GoldBP) ~= 1 or windowcount(LootBP) ~= 1 or windowcount() ~= 3 do
            closewindows()
            wait(400, 600)
     
            openitem(MainBP, 'back')
            wait(400, 600)
            resizewindow(MainBP, 0)
             
            openitem(LootBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
            
            openitem(GoldBP, MainBP, true)
            wait(400, 600)
            resizewindows()
            wait(500,1000)
     
        end
        setsettings("Settings\\CaveBot\\Settings\\OpenNextBp", "yes")
        setcavebot("yes")
        settargeting("yes")
        setlooting("yes")
        updateworld()
    end

Posting Permissions

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