Results 1 to 2 of 2

Thread: Help me plz with reconnect Action

  1. #1
    Normal User
    Join Date
    Apr 2014
    Location
    Bucarest
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    3

    Question Help me plz with reconnect Action

    local accountName = "123456" local password = "abcdef" local characterName = "Character"
    --DO NOT EDIT BELOW!

    if (connected == false) then
    while (connected == false) do
    connect(accountName, password, characterName)
    wait(3000,5000)
    end
    end




    I need to remove --DO NOT EDIT BELOW! ?

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Lua Code:
    local MainBP = "Name of Backpack"
    local GoldBP = "Name of Backpack"
     
    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.")
            end
        end
     
        setsettings("Settings\\CaveBot\\Settings\\OpenNext  Bp", "no")
        while windowcount(MainBP) ~= 1 or windowcount(GoldBP) ~= 1 or windowcount() ~= 2 do
            closewindows()
            wait(400, 600)
     
            openitem(MainBP, 'back')
            wait(400, 600)
            resizewindow(MainBP, 0)
     
            openitem(GoldBP, MainBP, true)
            wait(400, 600)
     
            resizewindows()
        end
        setsettings("Settings\\CaveBot\\Settings\\OpenNext  Bp", "yes")
        setcavebot("yes")
        settargeting("yes")
        setlooting("yes")
    end



    PS. If you need more backpacks let me know here I'll update it for you
    Last edited by Eli; 04-08-2014 at 10:29 AM.

Tags for this Thread

Posting Permissions

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