Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

Thread: [Release] Relog to the next character

  1. #1
    Normal User ReptileReX's Avatar
    Join Date
    May 2013
    Location
    Poland
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    4

    [Release] Relog to the next character

    Relog to the next character

    Description: Below script allows you to relog to your next character from specified list. It is very useful while you are creating i.e Ultimate Rookgard script

    How it works: It will logout your current character and it will login to the next one specified in characters variable.

    Usage:

    1. Create Action waypoint in the right moment in your script
    2. Copy and paste there below code
    3. Customize script with your data (account name, password and character names)
    4. You are done

    Code:

    Lua Code:
     
    --[[
      _____            _   _ _      _____     __   __
     |  __ \          | | (_) |    |  __ \    \ \ / /
     | |__) |___ _ __ | |_ _| | ___| |__) |___ \ V / 
     |  _  // _ \ '_ \| __| | |/ _ \  _  // _ \ > <  
     | | \ \  __/ |_) | |_| | |  __/ | \ \  __// . \ 
     |_|  \_\___| .__/ \__|_|_|\___|_|  \_\___/_/ \_\
                | |                                  
                |_|
     
     Name: Relog To The Next Character
     Author: ReptileReX
     Version: 1.0.0
    --]]
     
    -- Your account name, its needed to use connect() function
    local accountName = "account1"
     
    -- Your account password, its needed to use connect() function
    local accountPass = "password123"
     
    -- List of your characters to login as lua table
    -- Make sure that actual character name is also included below
    local characters = {"Character One", "Character Two", "Character Three"}
     
    -- Actual character name [ DO NOT EDIT ]
    local actualCharacter = name
     
    -- Next character name to login [ DO NOT EDIT ]
    local nextCharacter = nil
     
    -- Logout your character until you are not connected
    while (connected == true) do
        if (battlesigned == false) then
            logout()
        end
        updateworld()
        wait(1500, 2000)
    end
     
    -- Getting a name of your next character and store it in variable
    -- When there isn't next character then store "nil" value
    for i, nextName in pairs(characters) do
        if (nextName == actualCharacter) then
            nextCharacter = characters[i + 1] or nil
            break
        end
    end
     
    -- Login to your next character until you are connected
    -- Only when nextCharacter is not equal to nil value
    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()


    Script on PasteBin: http://pastebin.com/F5i2FPZv
    Raw version of script: http://pastebin.com/raw.php?i=F5i2FPZv

    If you like it, just add me some reputation points, or you can also leave a comment here
    Last edited by Eli; 02-05-2014 at 04:48 PM.

  2. #2
    iBot User Deepling [troll <3]'s Avatar
    Join Date
    May 2013
    Location
    Gray Island
    Posts
    673
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    54 Post(s)
    Reputation
    127
    Rep Power
    6
    I will try it when tibia will be online... :/

    Can you remake this action to this? It's will be very usefull for me
    Four char on the same acc, stoped in dp, then check stamina, log and relog to the next character
    Last edited by Deepling [troll <3]; 08-28-2013 at 07:40 AM.

  3. #3
    iBot User
    Join Date
    Jul 2012
    Posts
    132
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    22
    Rep Power
    5
    Lol its shit after kick bot relog on next character and stuck fail

  4. #4
    Normal User ReptileReX's Avatar
    Join Date
    May 2013
    Location
    Poland
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    4
    1. Please improve your english skills and then try to talk with somebody or just give more details
    2. How you've tested it while servers were and currently are offline ? lold
    3. If you are not advanced in scripting just leave it because you are doing it wrong.

  5. #5
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Quote Originally Posted by Zikkk View Post
    Lol its shit after kick bot relog on next character and stuck fail
    You are wrong. You need to add this action as a WAYPOINT ACTION when your character passes the rookgaard. Also you can add a reconnect action to your ACTIONS.

  6. #6
    Normal User ReptileReX's Avatar
    Join Date
    May 2013
    Location
    Poland
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    4
    Come on, leave some comments here !

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Deepling View Post
    I will try it when tibia will be online... :/

    Can you remake this action to this? It's will be very usefull for me
    Four char on the same acc, stoped in dp, then check stamina, log and relog to the next character
    signed

  8. #8
    Normal User ReptileReX's Avatar
    Join Date
    May 2013
    Location
    Poland
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    4
    Quote Originally Posted by Deepling View Post
    I will try it when tibia will be online... :/

    Can you remake this action to this? It's will be very usefull for me
    Four char on the same acc, stoped in dp, then check stamina, log and relog to the next character
    I already made it, but watch out because I didn't test it yet
    You should place it as Cavebot Action in depot

    Code:
    --[[
      _____            _   _ _      _____     __   __
     |  __ \          | | (_) |    |  __ \    \ \ / /
     | |__) |___ _ __ | |_ _| | ___| |__) |___ \ V / 
     |  _  // _ \ '_ \| __| | |/ _ \  _  // _ \ > <  
     | | \ \  __/ |_) | |_| | |  __/ | \ \  __// . \ 
     |_|  \_\___| .__/ \__|_|_|\___|_|  \_\___/_/ \_\
                | |                                  
                |_|
                
     Name: Relog To The Next Character
     Author: ReptileReX
     Version: 1.0.0
    --]]
    
    -- Your account name, its needed to use connect() function
    local accountName = "account1"
    
    -- Your account password, its needed to use connect() function
    local accountPass = "password123"
    
    -- How much stamina left to relog to the next character
    -- By default 930 minutes = 15:30h
    local staminaLeft = 930
    
    -- List of your characters to login as lua table
    -- Make sure that actual character name is also included below
    local characters = {"Character One", "Character Two", "Character Three"}
    
    -- Actual character name [ DO NOT EDIT ]
    local actualCharacter = name
    
    -- Next character name to login [ DO NOT EDIT ]
    local nextCharacter = nil
    
    -- We are updating all bot variables
    updateworld()
    
    -- Ignore below action when stamina is ok
    if (stamina > staminaLeft) then
        return false
    end
    
    -- Ignore below action when you are not in protection zone
    if (pzone == false) then
        return false
    end
    
    -- Logout your character until you are not connected
    while (connected == true) do
        if (battlesigned == false) then
            logout()
        end
        updateworld()
        wait(1500, 2000)
    end
    
    -- Getting a name of your next character and store it in variable
    -- When there isn't next character then store it as first character
    for i, nextName in pairs(characters) do
        if (nextName == actualCharacter) then
            nextCharacter = characters[i + 1] or characters[0]
            break
        end
    end
    
    -- Login to your next character until you are connected
    -- Only when nextCharacter is not equal to nil value
    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()
    
    -- You can force bot to go to the valid label here 
    -- gotolabel("StartScript")
    Last edited by ReptileReX; 09-05-2013 at 12:51 PM.

  9. #9
    iBot User Deepling [troll <3]'s Avatar
    Join Date
    May 2013
    Location
    Gray Island
    Posts
    673
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    54 Post(s)
    Reputation
    127
    Rep Power
    6
    "-- Actual character name
    local actualCharacter = name

    -- Next character name to login
    local nextCharacter = nil"
    What if i told you I want bot few days without reset etc? For example 4 days 24/7 ? I think it's will not work :/

  10. #10
    Normal User ReptileReX's Avatar
    Join Date
    May 2013
    Location
    Poland
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    4
    It will work just fill correctly below variables

    Code:
    -- Your account name, its needed to use connect() function
    local accountName = "account1"
    
    -- Your account password, its needed to use connect() function
    local accountPass = "password123"
    
    -- How much stamina left to relog to the next character
    -- By default 930 minutes = 15:30h
    local staminaLeft = 930
    
    -- List of your characters to login as lua table
    -- Make sure that actual character name is also included below
    local characters = {"Character One", "Character Two", "Character Three"}
    Variables actualCharacter and nextCharacter are internal and they shouldn't be edited.
    So don't worry about them
    Last edited by ReptileReX; 09-05-2013 at 12:53 PM.

Posting Permissions

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