Results 1 to 2 of 2

Thread: Connect action

  1. #1
    iBot User
    Join Date
    Dec 2012
    Posts
    17
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4

    Connect action

    Hello

    I just want to make very simple reconnecter to next character, i even do not want to check if character is login or not, because I know that he is not.
    So I made action point inside my script and put such code there :

    PHP Code:
    local accountName "login"

    local accountPass "pass"

    local character "character name"
    connect(accountNameaccountPasscharacter)
            
    updateworld()
            
    wait(15002000

    I log off from game and set this action at the beggining and run cavebot, but nothing happened, cavebot just stay on this action, no window to logging appeared in tibia client, nothing. So how to use this function ?


    Edit

    Also such simple script doesn't work :

    PHP Code:
    <Waypoints>
          <
    w000>Action 31977 32277 7 logout();wait(4000,5000)</w000>
          <
    w001>Action 31977 32277 7 reconnect()</w001>
          <
    w002>Stand 31984 32277 7 0</w002>
          <
    w003>Stand 31977 32277 7 0</w003>
     </
    Waypoints
    the character is beeing logout, and scripts stoped at recconect, but when I made reconnect hotkey, and press this hotkey it works.
    Last edited by mareczek1234; 06-05-2014 at 05:36 AM.

  2. #2
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    Try this action maybe work, and use tag [luas] not [code] =D
    Lua Code:
     
    local accountName = "login"
    local accountPass = "pass"
     
    setcavebot("no") 
    wait(3000, 4500) 
    logout() 
    wait(3000, 4500) 
     
    connect(accountName, accountPass, charname) 
    wait(3000, 4500) 
    gotolabel(label1) -- Go to label to start
    wait(3000, 4500)
    setcavebot("yes") 
    wait(3000, 4500)

Posting Permissions

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