Results 1 to 3 of 3

Thread: Reconnecter not working

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5

    Reconnecter not working

    Been hurting my head for the last few hours, I'm used to scripting to neobot a long time ago but this just wont work.....

    If you manage to get it to work I'll be soo glad.




    RECONNECTER 2
    Code:
    local accounts = 
        {
        {acc = 'XXXXXX', pass = 'XXXXXXXX', name = "XXXXXXXX"}
        }
        local serversavetime = {from = '10:00', to = '9:59'}
    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')
        setsettings("Settings\\Actions\\List\\STOP-ATTACK-IF-STANDTIME\\Enabled", "no"),
        setsettings("Settings\\Actions\\List\\XLOG-SCRIPT\\Enabled", "no"),
        setsettings("Settings\\Actions\\List\\STAMINA-LOG-OUT-1430", "no"),
        setsettings("Settings\\Actions\\List\\RECONNECT-1", "yes")
        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)
                end
                setcavebot('on')
                setsettings("Settings\\Actions\\List\\STOP-ATTACK-IF-STANDTIME\\Enabled", "yes"),
                setsettings("Settings\\Actions\\List\\XLOG-SCRIPT\\Enabled", "yes"),
                setsettings("Settings\\Actions\\List\\STAMINA-LOG-OUT-1430", "yes"),
                if windowcount() < 4 then   setsettings("Settings\\Actions\\List\\RECONNECT-1", "no")   
            end
        end
    end

    RECONNECTER 1
    Code:
    if windowcount() < 4 then
    pausewalking(1500)
    setsettings("Settings\\Targeting\\Enabled","no")
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp","no")  
    closewindows()
    wait(500, 1000)
    openitem(mainBp, 'back')
    wait(500, 1000)
    resizewindows()
    openitem(lootBp, mainBp, true)
    wait(500, 1000)
    resizewindows()
    openitem(supplyBp, mainBp, true)
    wait(500, 1000)
    resizewindows()
    openitem(goldBp, mainBp, true)
    wait(500, 1000)
    resizewindows()
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp","yes")
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp","yes")
    setsettings("Settings\\Targeting\\Enabled","yes")
    end


    HI CAN I USE THIS??????

  2. #2
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    it should work now

    Lua Code:
    local accounts = 
        {
        {acc = '', pass = '', name = ""}
        }
        local serversavetime = {from = '10:00', to = '9:59'}
    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')
        setsettings("Settings\\Actions\\List\\STOP-ATTACK-IF-STANDTIME\\Enabled", "no")
        setsettings("Settings\\Actions\\List\\XLOG-SCRIPT\\Enabled", "no")
        setsettings("Settings\\Actions\\List\\STAMINA-LOG-OUT-1430", "no")
        setsettings("Settings\\Actions\\List\\RECONNECT-1", "yes")
    end
     
        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)
                    wait(500,1000)
                end
                setcavebot('on')
                setsettings("Settings\\Actions\\List\\STOP-ATTACK-IF-STANDTIME\\Enabled", "yes")
                setsettings("Settings\\Actions\\List\\XLOG-SCRIPT\\Enabled", "yes")
                setsettings("Settings\\Actions\\List\\STAMINA-LOG-OUT-1430", "yes")
                if windowcount() < 4 then  
                    setsettings("Settings\\Actions\\List\\RECONNECT-1", "no")   
            end
        end
    end
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5
    Not sure what you fixed but I'm sure I love you, added some "\\Enabled" saw that I forgot them but ye it's working perfectly now, I can finally rest...
    HI CAN I USE THIS??????

Posting Permissions

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