Results 1 to 6 of 6

Thread: Cannot relog to Character

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

    Cannot relog to Character

    I have got the problem that my char wont relog to next character.
    Anyone know why?


    --------------------------------------------------------------

    Stand 32081 32186 7 0
    Action 32081 32186 7 local accountName = "my account name"
    local accountPass = "py password"
    local characters = {"Charname1", "Charname2"}
    local actualCharacter = name
    local nextCharacter = nil
    while (connected == true) do
    if (battlesigned == false) then
    logout()
    end
    updateworld()
    wait(1500, 2000)
    end
    for i, nextName in pairs(characters) do
    if (nextName == actualCharacter) then
    nextCharacter = characters[i + 1] or nil
    break
    end
    end
    if (nextCharacter ~= nil) then
    while (connected == false) do
    connect(accountName, accountPass, nextCharacter)
    updateworld()
    wait(1500, 2000)
    end
    end

    -- We are updating all bot variables (i.e name, connected)
    updateworld()



    -------------------------------------------------------------------


    Shouldnt this one work so i can relog to next char of my charlist, cuse somehow nothing happens
    Last edited by Xray_2013; 11-08-2013 at 07:03 AM.

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Don't know if it works or not. I wanted something similar, and tried it long time ago. Here it is:

    PHP Code:
    logout()
    while 
    not connected do
    wait(800,1000)
    keyevent(0x28)
    wait(1000,1200)
    keyevent(0xD)
    end 
    It will logout then press the down arrow, then press enter

  3. #3
    iBot User
    Join Date
    Nov 2012
    Posts
    319
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    33
    Rep Power
    5

    Cool

    I use this reconect, one guy give me some time ago....

    PHP Code:
    setcavebot('off')
    logout()
    local chars = {"char1","char 2"}
    connect('acc''pass'chars[table.find(charsname) + 1])
    wait(10002500)
    connect('acc''pass'chars[table.find(charsname) + 1])
    wait(10002500)
    setcavebot('on')
    gotolabel('start'
    sometimes it get stuck, for this i put 2 or 3 times the part of connect ..and then work perfect.

  4. #4
    Normal User
    Join Date
    Nov 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thanks!!!
    Now it works as i wanted it

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Ropiderz made this some time ago.
    Lua Code:
     
    local ACC, PASS = "account", "password"
    local CHARS = {"char1","char2","char3","char4"}
     
    --[[ ENGINE ]]--
    local INDEX_CHAR
    if (stamina <= 900 and pzone) 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
        setcavebot("no") wait(3000, 4500)
        logout() wait(3000, 4500)
        connect(ACC, PASS, CHARS[INDEX_CHAR + 1]) wait(3000, 4500)
        gotolabel("start") wait(3000, 4500)
        setcavebot("yes") wait(3000, 4500)
    end

  6. #6
    Normal User
    Join Date
    Nov 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Cant you do a script like the following

    eventkey (0x28) --Use arrow key down
    wait ()
    eventkey(0xD) --Press Enter
    wait()

    In this way you have never to put manually all chars into a script / account

Posting Permissions

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