Results 1 to 6 of 6

Thread: Help with reconect

  1. #1
    Normal User BrainStorm's Avatar
    Join Date
    May 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Help with reconect

    Hello guys, i made one reconect in the end of my cavebot to change characters after it's done with the waypoints, but it just change from character 1 to character 2, he doesnt change to character 3 and to character 1.. Well im still learning how to make some actions so could someone help me with this one?

    OBS: This text show in Debug: LUA: DoAction:Cavebot: - LuaInterface.LuaScriptException: [string "chunk"]:23: invalid arguments to method call

    PHP Code:
    pausewalking(10000)

    if 
    name == "Character1" then
        logout
    ()
    wait(500,1000)
    connect("123456""abcdef""Character2")
    wait(500,1000)
    gotolabel("Start")

    elseif 
    name == "Character2" then
        logout
    ()
    wait(500,1000)
    connect("123456""abcdef""Character3")
    wait(500,1000)
    gotolabel("Start")

    elseif 
    name == "Character3" then
        logout
    ()
    wait(500,1000)
    connect("123456""abcdef""Character1")
    wait(500,1000)
    gotolabel("Start")
    end 
    Thanks!
    Last edited by BrainStorm; 03-06-2014 at 10:24 PM.

  2. #2
    Normal User BrainStorm's Avatar
    Join Date
    May 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I changed somethings and now its working!!
    Sorry about this!

  3. #3
    Normal User
    Join Date
    Feb 2014
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    does function logout() actually works? didnt know it even exist.. o.o

  4. #4
    iBot User
    Join Date
    Mar 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    MAAAAAAAN Thank you! Awesome action. I made some changes myself so it can be easier to edit:

    PHP Code:
    pausewalking(10000)

    local account "..."
    local password "..."
    local Character1 "Character1"
    local Character2 "Character2"
    local Character3 "Character3"
    local Character4 "Character4"
    local Character5 "Character5"
    local Character6 "Character6"
    local Character7 "Character7"
    local Character8 "Character8"
    local Character9 "Character9"
    local Character10 "Character10"


    if name == Character1 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter2)
    wait(500,1000)
    gotolabel("Start")

    elseif 
    name == Character2 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter3)
    wait(500,1000)
    gotolabel("Start")


    elseif 
    name == Character3 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter4)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character4 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter5)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character5 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter6)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character6 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter7)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character7 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter8)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character8 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter9)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character9 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter10)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character10 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter1)
    wait(500,1000)
    gotolabel("Start")
    end 

  5. #5
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Quote Originally Posted by annabethchase View Post
    MAAAAAAAN Thank you! Awesome action. I made some changes myself so it can be easier to edit:

    PHP Code:
    pausewalking(10000)

    local account "..."
    local password "..."
    local Character1 "Character1"
    local Character2 "Character2"
    local Character3 "Character3"
    local Character4 "Character4"
    local Character5 "Character5"
    local Character6 "Character6"
    local Character7 "Character7"
    local Character8 "Character8"
    local Character9 "Character9"
    local Character10 "Character10"


    if name == Character1 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter2)
    wait(500,1000)
    gotolabel("Start")

    elseif 
    name == Character2 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter3)
    wait(500,1000)
    gotolabel("Start")


    elseif 
    name == Character3 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter4)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character4 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter5)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character5 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter6)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character6 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter7)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character7 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter8)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character8 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter9)
    wait(500,1000)
    gotolabel("Start")
     

    elseif 
    name == Character9 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter10)
    wait(500,1000)
    gotolabel("Start")
      

    elseif 
    name == Character10 then
    logout
    ()
    wait(500,1000)
    connect(accountpasswordCharacter1)
    wait(500,1000)
    gotolabel("Start")
    end 
    I seen an action which was doing this few time ago, and yesterday was looking for it and couldn't find it, so today I'm lucky cuz the action seems it should be working
    Will try and give feedback

  6. #6
    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
    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

Posting Permissions

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