Results 1 to 4 of 4

Thread: Fix a disconnect script

  1. #1
    Premium User luancarlos's Avatar
    Join Date
    Jul 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question Fix a disconnect script

    PHP Code:
    local accountName "abc" local password "abc" local characterName "abc" 
    --DO NOT EDIT BELOW
    local relog == true

    if stamina <= 900 then
       relog 
    false
    end

    if (connected == false) and relog == true then 
        
    while (connected == false) do 
            
    connect(accountNamepasswordcharacterName
            
    wait(3000,5000
        
    end 
    end 
    I have an action in the start of my script, and i want the bot don't relog if the stamina is below 900. But if the char logout because kick, i want to relog.
    Please, can anybody here help me?

    Sorry my english, thank you.

  2. #2
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,480
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Just add an action to close tibia if your stamina is below 900.

  3. #3
    Premium User luancarlos's Avatar
    Join Date
    Jul 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Gryllz View Post
    Just add an action to close tibia if your stamina is below 900.
    or i can use an action to disable the reconnect action when the stamina is below 900 in the depot?
    Haha! Thanks *-*'

  4. #4
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,480
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Whats the point of disabling reconnect action if you can completely close your tibia if your stamina is under 900? PM me if you want me to tell you how to do it.

Posting Permissions

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