Results 1 to 4 of 4

Thread: Advanced Reconnect

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

    Advanced Reconnect

    Hello there, im woundring if someone out there have this action, or have the time to make it, when it get logout at server save it pause bot and when it comes online again it start again at the same wpt, anyone out there that can make this for little me ?

  2. #2
    Normal User
    Join Date
    Jul 2012
    Location
    Warsaw, PL
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    Wrong section, it's in script request, and i already made thread for that.

  3. #3
    Normal User Nikare's Avatar
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    1. You need to add to actions:
    Code:
    local TIME = {FROM = tosec("6:00"), TO = tosec("6:30"), CURRENT = tosec(time())}
    
    if (TIME.CURRENT >= TIME.FROM) and (TIME.CURRENT <= TIME.TO) then
        gotolabel("logout")
    end
    2. Then add label "logout" + exit from the resp.
    3. Reconnect + ReOpenBP
    Code:
    --Set true or false for reopen Backpacks
    ReopenBackpack = false
    
    --Configure here the name of Backpacks
    --Configure aki o nome das Backpacks
    local MainBP = "Backpack of Holding"
    local LootBP = "Dragon Backpack"
    local StuckBP = "Demon Backpack"
    local SuppBP = "Yellow Backpack"
    local GoldBP = "Golden Backpack"
    
    --Configure here account, password and name of the character
    --Configura aki o seuaccount, senha e nome do char
    ACCname = "NikareACC"
    PASSWORD = "NikarePASS"
    CHARACTERNAME = "Nikare"
    
    --dont change below
    
    local accounts = 
        {
            {acc = ACCname, pass = PASSWORD, name = CHARACTERNAME}
        }
    local serversavetime = {from = '05:00', to = '05:15'}
    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
    4. Add action in wpt with back to hunt.
    Last edited by Nikare; 11-11-2012 at 09:50 AM.

  4. #4
    Normal User
    Join Date
    Oct 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks alot !! Rep for you

Posting Permissions

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