Signup Now
Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53
  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28

    Character Relogger on Low Stamina

    Character Relogger on Low Stamina


    Description

    Automatically logs the next character on list if stamina drops below a certain threshold.


    Configuration

    Edit the accountList, table on the init block to specify your Tibia credentials and characters' name. Also edit the minStamina variable to specify the stamina threshold.


    Code

    -- local SCRIPT_VERSION = '1.1.0'

    local minStamina = 16 * 60 -- In minutes
    local accountList = {
    {
    account = 'account1',
    password = 'password1',
    character = 'character1'
    },
    {
    account = 'account2',
    password = 'password2',
    character = 'character2'
    },
    {
    account = 'account3',
    password = 'password3',
    character = 'character3'
    }
    }

    -- DO NOT EDIT BELOW THIS LINE --
    for _, v in ipairs(accountList) do
    v.character = v.character:lower()
    end

    if $stamina < minStamina then
    local curAccount = table.find(accountList, $name:lower(), 'character')
    local nextAccount = accountList[(curAccount % #accountList) + 1]

    waitandlogout()
    waitping()
    keyevent(VK_ESCAPE)
    waitping()
    connect(nextAccount.account, nextAccount.password, nextAccount.character)
    end

    Git
    Last edited by Raphael; 04-26-2014 at 08:35 PM.

  2. #2
    Free User
    Join Date
    Feb 2014
    Posts
    8
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    Character Relogger on Low Stamina


    Description

    Automatically logs the next character on list (must be on the same account) if stamina drops below a certain threshold.


    Configuration

    Edit the account, password and charList variables on the init block to specify your Tibia credentials and character names. Also edit the minStamina variable to specify the stamina threshold.


    Code

    local account    = 'accountName'
    local password = 'accountPassword'
    local charList = {'Char1', 'Char2', 'Char3', 'Char4'}
    local minStamina = 16 * 60 -- In minutes

    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(charList)

    if $stamina < minStamina then
    local curChar = table.find(charList, $name:lower())
    local nextChar = charList[(curChar % #charList) + 1]

    logout()
    waitping()
    keyevent(VK_ESCAPE)
    waitping()
    connect(account, password, nextChar)
    end

    Gist
    @Raphael

    I dont know why its not working correctly, it does logout the character who got lot stamina, start typing acc/pass, but then it stucks on character list, doesnt try to connect the next char:

    Code:
        local account = 'xxxx'
        local password = 'xxxx'
        local charList = {'Pentagram Neo', 'Madein Brazil Cogu', 'Mousesports Cyx', 'Natus Vincere Markeloff'}
        local minStamina = 15 * 60 -- In minutes
    
        -- DO NOT EDIT BELOW THIS LINE --
        table.lower(charList)
    
        if $stamina < minStamina then
    setsetting('Persistent/Scripts/reconnect/Enabled', 'no')
        local curChar = table.find(charList, $name:lower())
        local nextChar = charList[(curChar % #charList) + 1]
    
        logout()
        waitping()
        keyevent(VK_ESCAPE)
        waitping()
        connect(account, password, nextChar)
        end
    Any Clues?

  3. #3
    Free User Deertier's Avatar
    Join Date
    Feb 2014
    Location
    Sweden
    Posts
    89
    Reputation
    13
    Rep Power
    21
    If this is used for cavebotting then maybe you should add

    if ($stamina < minStamina) and ($pzone == true) then


    Otherwise it's gonna try and logout during a hunt and not while in a protection zone.
    Also keep in mind guys that if you're using this for multiple characters on one account (cavebotting), you need to use the exact same backpacks unless you create an action that changes them to whatever character you're logged in on.

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Deertier View Post
    If this is used for cavebotting then maybe you should add

    if ($stamina < minStamina) and ($pzone == true) then


    Otherwise it's gonna try and logout during a hunt and not while in a protection zone.
    Also keep in mind guys that if you're using this for multiple characters on one account (cavebotting), you need to use the exact same backpacks unless you create an action that changes them to whatever character you're logged in on.
    I believe it's pretty explicit this is meant to be an action (as per the label on the title of the thread) and not a hotkey, therefore it should most likely be added after a deposit, which assures you are in pz.

  5. #5
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by mrmxc View Post
    @Raphael

    I dont know why its not working correctly, it does logout the character who got lot stamina, start typing acc/pass, but then it stucks on character list, doesnt try to connect the next char:

    Code:
    ...
    Any Clues?
    Are you sure you wrote the character names correctly? Letter by letter?

  6. #6
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    22
    Quote Originally Posted by Raphael View Post
    Are you sure you wrote the character names correctly? Letter by letter?
    I have the same problem, sometimes it works flawlessly and sometimes it just connect to the same character then it runs the cavebot until it reaches the relog action and repeat the issue. Not sure but some function or variable may be bugged.

  7. #7
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Leonardo View Post
    I have the same problem, sometimes it works flawlessly and sometimes it just connect to the same character then it runs the cavebot until it reaches the relog action and repeat the issue. Not sure but some function or variable may be bugged.
    Weird.

  8. #8
    Free User mexicows's Avatar
    Join Date
    Dec 2013
    Location
    Brasil, São Paulo
    Posts
    30
    Reputation
    14
    Rep Power
    0
    Quote Originally Posted by Leonardo View Post
    I have the same problem, sometimes it works flawlessly and sometimes it just connect to the same character then it runs the cavebot until it reaches the relog action and repeat the issue. Not sure but some function or variable may be bugged.
    exactly that, and the characters name is 100% correct, i guess its on the mood
    Level Latest Release Vocation City
    Any Warbot V1.0 (Magebot Functions) Any Null
    22+ Yalahar - Undeads Crypt - Optional Both Sides Druid/Sorc
    Yalahar
    http://i.imgur.com/Zd6zqui.jpg

  9. #9
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    Is it possible to somehow read character names from 'Select Character' box, and relog to next (wihout using character name list)

    Quote Originally Posted by mrmxc View Post
    @Raphael
    [...]

    Code:
    local charList = {'Pentagram Neo', 'Madein Brazil Cogu', 'Mousesports Cyx', 'Natus Vincere Markeloff'}
    [...]
    Lol at your names, where is pasha, Taz or LUq?

  10. #10
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    @Imba

    Nope.

    @Thread

    Script updated, not much changed though.

 

 

Posting Permissions

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