Results 1 to 6 of 6

Thread: Changing reconect from waypoints to setup.

  1. #1
    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 Changing reconect from waypoints to setup.

    Hello to all I'm using this in waypoint and work great.

    PHP Code:
    setcavebot('off')
    logout()
    local chars = {"xxx""yyyy""zzzz"}
    connect('accc''pass'chars[table.find(charsname) + 1])
    wait(10002500)
    connect('accc''pass'chars[table.find(charsname) + 1])
    wait(10002500)
    connect('accc''pass'chars[table.find(charsname) + 1])
    wait(10002500)
    gotolabel('start')
    setcavebot('on'
    I try to use in setup due to the easy way for change and I'm trying something like this.
    setup
    PHP Code:
    --- Relog to next character --- 
    relog true -- if true then relog to the next char
    acc 
    'acc' -- your account number/name
    pass 
    'pass' -- your password
    localchars 
    = {'Knight''Rook'} -- Characters 
    namenick 
    name 

    and in waypoint "when I want the reconect"
    PHP Code:
    if relog then 
    logout
    ()
    wait(10002000)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    gotolabel('start')
    end 
    but I have this problem.

    5:33 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:7: attempt to perform arithmetic on a nil value
    I think is something wrong in the variables "chars" for get the other but idk

    Thanks =D

  2. #2
    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
    PHP Code:
    --- Relog to next character ---  
    relog true -- if true then relog to the next char 
    acc 
    'acc' -- your account number/name 
    pass 
    'pass' -- your password 
    chars 
    = {'Knight''Rook'} -- Characters  
    namenick 
    name 

  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
    5:12 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:4: attempt to perform arithmetic on a nil value
    still getting this.

    setup now
    PHP Code:
    pvpServer false

    --- Relog to next character --- 
    relog true -- if true then relog to the next account
    acc 
    'aaaaaaa' -- your account number/name
    pass 
    'zzzzzz' -- your password
    chars 
    = {'xxx''yyyy''zzzzz'} -- Characters 
    namenick 
    name 

    my waypoint

    PHP Code:
    if relog then 
    logout
    ()
    wait(10002000)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    connect(accpasschars[table.find(charsname) + 1])
    wait(10002500)
    gotolabel('start')
    end 
    the problem is with the "chars table" they dont select the other
    Last edited by adra0378; 12-22-2012 at 08:25 AM.

  4. #4
    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
    Test this, by ropiderz
    PHP Code:
    if relog then
        
    --[[ropiderz code]]--
        for 
    INDEXCHAR_NAME in ipairs(chars) do
            if (
    name == CHAR_NAMEthen
                INDEX_CHAR 
    INDEX
            end
        end
        
    if (INDEX_CHAR == #chars) then
            
    INDEX_CHAR 0
        end
        
    --[[end ropiderz code]]--
        
        
    logout() wait(10002000)
        
    connect(accpasschars[INDEX_CHAR 1]) wait(10002500)
        
    gotolabel('start')
    end 

  5. #5
    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
    Quote Originally Posted by soder View Post
    Test this, by ropiderz
    PHP Code:
    if relog then
        
    --[[ropiderz code]]--
        for 
    INDEXCHAR_NAME in ipairs(chars) do
            if (
    name == CHAR_NAMEthen
                INDEX_CHAR 
    INDEX
            end
        end
        
    if (INDEX_CHAR == #chars) then
            
    INDEX_CHAR 0
        end
        
    --[[end ropiderz code]]--
        
        
    logout() wait(10002000)
        
    connect(accpasschars[INDEX_CHAR 1]) wait(10002500)
        
    gotolabel('start')
    end 
    work perfect thanks alot

  6. #6
    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
    sorry for double post but in some accounts send this problem

    5:54 : GUI:Channel:Update - System.ArgumentOutOfRangeException: startIndex may not be greater than the length of the chain.
    Parameter Name: startIndex
    en System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    en System.String.Substring(Int32 startIndex)
    en iBot.GUI.Channel.Update()

Posting Permissions

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