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

Thread: Reconect with multiple accounts

  1. #1
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4

    Exclamation Reconect with multiple accounts

    Hey guys,

    I have 3 acc, acc1 with 1 char, acc2 with 2 chars and acc3 with 1 char

    I have this code so far, but it's not working, can anyone help me please?? Thx

    Code:
    local ACC = "xxx"
    local PASS = "xxx"
    local ACC2 = "yyy"
    local PASS2 = "yyy"
    local ACC3 = "zzz"
    local PASS3 = "zzz"
    local CHARS = {"Char1","Char2","Char3","Char4"}
    local label1 = 'Start'
    
    local INDEX_CHAR 
    if (stamina <= 1800) then
        for INDEX, CHAR_NAME in ipairs(CHARS) do 
            if (name == CHAR_NAME) then 
                INDEX_CHAR = INDEX 
            end 
        end 
        if (INDEX_CHAR == #CHARS) then 
            INDEX_CHAR = 0 
        end 
        setsettings('Settings\\Actions\\List\\Openbp\\Enabled','no') wait(3000, 4500)
        setcavebot("no") wait(3000, 4500)
        setsettings('Settings\\Actions\\List\\reconect\\Enabled','no')
        wait(120000, 120000)
        while (connected == true) do
            logout() wait(3000, 4500)
        end
        if (INDEX_CHAR == 0) then
            connect(ACC, PASS, CHARS[INDEX_CHAR + 1]) wait(3000, 4500)
            elseif (INDEX_CHAR == 1) then
                connect(ACC2, PASS2, CHARS[INDEX_CHAR + 1]) wait(3000, 4500)
                    elseif (INDEX_CHAR == 2) then
                        connect(ACC2, PASS2, CHARS[INDEX_CHAR + 1]) wait(3000, 4500)
                            elseif (INDEX_CHAR == 3) then
                                connect(ACC3, PASS3, CHARS[INDEX_CHAR + 1]) wait(3000, 4500)
        end
        gotolabel(label1) wait(3000, 4500)
        setcavebot("yes") wait(3000, 4500)
        setsettings('Settings\\Actions\\List\\Openbp\\Enabled','yes') wait(3000, 4500)
        setsettings('Settings\\Actions\\List\\reconect\\Enabled','yes')
        wait(3000, 4500)
    end

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    reconnect()

  3. #3
    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
    its not working because you are playing with variables you dont even know. i already explained you how to do that
    click the image below to see my thread.



  4. #4
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4
    Quote Originally Posted by mexicowss View Post
    its not working because you are playing with variables you dont even know. i already explained you how to do that
    Hey bro, I think you're thinking I'm other person, thats my first post about reconect, I'm pretty sure we never talked before...

    Btw, Can you help me bro?? That script isnt my, I found it in forum and it work just perfectly with 1 acc and 4 chars, but now I need a little more, can you help me?

    Like I said, I have 3 accs, two of them with 1 char, and one with 2 chars...

  5. #5
    iBot User
    Join Date
    Sep 2013
    Location
    Maceiˇ -AL/BR
    Posts
    19
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    14
    Rep Power
    4
    You can do one waypoint for each account. For example:

    I have 4 accounts with 2 EK on each one, then i'd make some action waypoints and every time that one EK went to deposit on DP the bot would verify the stamina and go to a certain label.

    local CharName = {'char1ACC1'}
    local currentchar = table.find(CharName,name)
    local togo = 'char1ACC2'

    if currentchar then
    if currentchar == #CharName and pzone and stamina <= 2520 then
    gotolabel(char1ACC2)
    end
    end
    And the label "char1ACC2" would be like:

    local CharName = {'char1ACC1','char1ACC2'}
    local AccAndPass = { acc = 'acc', pass = 'pass' } -- ACC2
    local labeltogo = 'w000'

    if pzone and stamina <= 2520 then
    setcavebot('off')
    logout()
    wait(400,600)
    end

    local currentchar = table.find(CharName,name)

    if currentchar then
    if currentchar == #CharName then
    currentchar = 1
    else currentchar = currentchar+1
    end
    else currentchar = 1
    end

    if (connected == false)
    then
    connect(AccAndPass.acc,AccAndPass.pass,CharName[currentchar])
    setcavebot('on')
    wait(500,600)
    gotolabel(labeltogo)
    wait(500,600)
    end

    I don't know if this is functional, i don't even tested it... but it's an idea.
    Last edited by xakaboom; 04-29-2014 at 09:31 AM.

  6. #6
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4
    Bump!

  7. #7
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Search!

    Plenty of mutli char reconnectors floating around.

    http://www.tibiaibot.com/forum/showt...-HUDS-AND-MORE

  8. #8
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4
    Quote Originally Posted by pink_panther View Post
    Search!

    Plenty of mutli char reconnectors floating around.

    http://www.tibiaibot.com/forum/showt...-HUDS-AND-MORE

    Lol bro, I just did it so many times and dont find the script...

  9. #9
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Try harder

  10. #10
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4
    Quote Originally Posted by pink_panther View Post
    Try harder
    If I had not tried, I would not have created this topic, believe I try so much

Posting Permissions

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