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

Thread: Way To Reconnect Every 30 minutes

  1. #1
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5

    Way To Reconnect Every 30 minutes

    Hi @blakw, @Solaris, @Eli @Manuu

    i was trying some tip to reconnect character in every 30 minutes.

    Its one Account with 20 Characters

    i'm Trying in iBot+

    But. i dont know one way to check if passed 30 minutes since last character logged off.

    Tryed with Action.
    But LifeTime are breaking my action (i Tryed to put 0 in LifeTime)

    Lua Code:
     
    local StartTime = time()
    local EndTime = time()
     
    setsettings("Settings//Actions//List//Reconnect//Enabled","no")
     
    print("Starting Wait Time At: "..StartTime)
     
    for i = 1,65 do
        print("Loop "..i.." of 65")
        wait(30000,35000)
    end
    EndTime = time()
    print("Ending Wait Time At: "..EndTime)
    wait(2000,5000)
    updateworld()
     
        while (connected == false) do
             connect(account, password, FirstCharName)
             updateworld()
             wait(1500, 2000)
                updateworld()
                gotolabel('Start')
                wait(500,1000)
                setsettings("Settings//Actions//List//Reconnect//Enabled","yes")
                wait(1000)
         end


    But in Loop 2~4 LifeTime break this action

    Someone knows a better way.

    This is Script that i'm trying to do (to get mouthpieces in acc with 20 chars every 30 min)


    i Tryed with ibot normal. but reconnect next char action dont work, but in ib+ are working (Same Action Code)
    Attached Files Attached Files
    Last edited by Targets; 12-18-2014 at 03:35 PM.



  2. #2
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Try using simple methods, like using variable name and wait()

    PHP Code:
    ACC "xxxx"
    PASS "xxxxx"
    CHARS = {"xxxx","xxxx","xxx"
    labelx 'inicio'
    lastchar 'xxx' 
    local INDEX_CHAR 
        
    for INDEXCHAR_NAME in ipairs(CHARS) do 
            if (
    name == CHAR_NAMEthen 
                INDEX_CHAR 
    INDEX 
            end 
        end 
        
    if (INDEX_CHAR == #CHARS) then 
            
    INDEX_CHAR 
        end 
    if name == lastchar then 
           logout
    ()
    wait(1800000)
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
    else
    logout()
    wait(1000)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
        
    end 
    you can also modify the code and use the array index to reach the last char instead of putting the name of the last character.
    Last edited by mexicowss; 12-18-2014 at 05:29 PM.
    click the image below to see my thread.



  3. #3
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    Quote Originally Posted by mexicowss View Post
    Try using simple methods, like using variable name and wait()

    PHP Code:
    ACC "xxxx"
    PASS "xxxxx"
    CHARS = {"xxxx","xxxx","xxx"
    labelx 'inicio'
    lastchar 'xxx' 
    local INDEX_CHAR 
        
    for INDEXCHAR_NAME in ipairs(CHARS) do 
            if (
    name == CHAR_NAMEthen 
                INDEX_CHAR 
    INDEX 
            end 
        end 
        
    if (INDEX_CHAR == #CHARS) then 
            
    INDEX_CHAR 
        end 
    if name == lastchar then 
           logout
    ()
    wait(1800000)
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
    else
    logout()
    wait(1000)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
        
    end 
    you can also modify the code and use the array index to reach the last char instead of putting the name of the last character.
    yes i know, but is just a "easy" way to get First Char xD

    the principal problem is get like time() + 30 min

    for now i'm doing for 1 to 30 with wait(60k,65k)



  4. #4
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Targets View Post
    yes i know, but is just a "easy" way to get First Char xD

    the principal problem is get like time() + 30 min

    for now i'm doing for 1 to 30 with wait(60k,65k)
    the wait(60000*30) will solve this problem with no stress

    btw this would fit better:

    PHP Code:
    ACC "xxxx"
    PASS "xxxxx"
    CHARS = {"xxxx","xxxx","xxx"
    labelx 'inicio'
    local INDEX_CHAR 
        
    for INDEXCHAR_NAME in ipairs(CHARS) do 
            if (
    name == CHAR_NAMEthen 
                INDEX_CHAR 
    INDEX 
            end 
        end 
        
    if (INDEX_CHAR == #CHARS) then 
            
    INDEX_CHAR 
        end 
    if name == CHARS[20then 
           logout
    ()
    wait(60000*30)
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
    else
    logout()
    wait(1000)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
        
    end 
    it will run the script click the box, logout , login next char, and if its the last char of the account it will wait 30 min untill reconnect the first one.

    PS: Notice that wait() is a little delayed on ibot+ and its not 100% accuracy, when you set wait(1000) sometimes i takes 2~3 seconds instead of 1, so maybe you should set a lower value for wait() (1/2 or 1/3).
    Last edited by mexicowss; 12-18-2014 at 06:05 PM.
    click the image below to see my thread.



  5. #5
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    Quote Originally Posted by mexicowss View Post
    the wait(60000*30) will solve this problem with no stress

    btw this would fit better:

    PHP Code:
    ACC "xxxx"
    PASS "xxxxx"
    CHARS = {"xxxx","xxxx","xxx"
    labelx 'inicio'
    local INDEX_CHAR 
        
    for INDEXCHAR_NAME in ipairs(CHARS) do 
            if (
    name == CHAR_NAMEthen 
                INDEX_CHAR 
    INDEX 
            end 
        end 
        
    if (INDEX_CHAR == #CHARS) then 
            
    INDEX_CHAR 
        end 
    if name == CHARS[20then 
           logout
    ()
    wait(60000*30)
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
    else
    logout()
    wait(1000)
        
    connect(ACCPASSCHARS[INDEX_CHAR 1])
        
    gotolabel(labelx)
        
    end 
    it will run the script click the box, logout , login next char, and if its the last char of the account it will wait 30 min untill reconnect the first one.

    PS: Notice that wait() is a little delayed on ibot+ and its not 100% accuracy, when you set wait(1000) sometimes i takes 2~3 seconds instead of 1, so maybe you should set a lower value for wait() (1/2 or 1/3).
    yes, i'm using like this:

    Lua Code:
     
     
    for i = 1,35 do
    wait(30000,35000)
    end



  6. #6
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Targets View Post
    yes, i'm using like this:

    Lua Code:
     
     
    for i = 1,35 do
    wait(30000,35000)
    end
    Theres no need using for conditional for this, use simply wait() and try to figure out the best value.
    I just tested its working flawlessly, execpt for the wait() bug/delay on ibot+
    click the image below to see my thread.



  7. #7
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    Quote Originally Posted by mexicowss View Post
    Theres no need using for conditional for this, use simply wait() and try to figure out the best value.
    I just tested its working flawlessly, execpt for the wait() bug/delay on ibot+
    Yes, but with this way are working 100% for me



  8. #8
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by Targets View Post
    Yes, but with this way are working 100% for me
    So why did u star a thread? lol
    anyway here's your script working the way you want it to.

    just edit setup.
    Attached Files Attached Files
    click the image below to see my thread.



  9. #9
    iBot User
    Join Date
    Feb 2012
    Posts
    37
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by mexicowss View Post
    So why did u star a thread? lol
    anyway here's your script working the way you want it to.

    just edit setup.

    Here have one bug

    22:58:05 : Cavebot loginnext : [string "local INDEX_CHAR ..."]:19: attempt to perform arithmetic on local 'INDEX_CHAR' (a nil value)

    Here have one bug

    22:58:05 : Cavebot loginnext : [string "local INDEX_CHAR ..."]:19: attempt to perform arithmetic on local 'INDEX_CHAR' (a nil value)
    Scripter,
    and Tester.


    Atenciosamente,
    Ataulpho



    Scripts? Look here


  10. #10
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Quote Originally Posted by Ataulpho View Post
    Here have one bug

    22:58:05 : Cavebot loginnext : [string "local INDEX_CHAR ..."]:19: attempt to perform arithmetic on local 'INDEX_CHAR' (a nil value)

    Here have one bug

    22:58:05 : Cavebot loginnext : [string "local INDEX_CHAR ..."]:19: attempt to perform arithmetic on local 'INDEX_CHAR' (a nil value)
    Ensure that character names are equal to real character name.


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

Posting Permissions

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