Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Connect() and Reconnect() does not work for preview bot?

  1. #1
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Connect() and Reconnect() does not work for preview bot?

    Connect() and Reconnect() does not work for preview bot?

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    im not playing on preview server but I think reconnect should work there

  3. #3
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by RafiXWPT View Post
    im not playing on preview server but I think reconnect should work there
    It just opens the window where you type in your account and password but it does not do anything more than that.

  4. #4
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    show us your reconnect action

  5. #5
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by RafiXWPT View Post
    show us your reconnect action
    Code:
    if connected == false then
    wait(2000, 3000)
    connect(AccName, AccPw, AccChar)
    wait(2000, 3000)
    end
    Also tried with:

    Code:
    if connected == false then
    wait(2000, 3000)
    reconnect()
    wait(2000, 3000)
    end
    PauseOnDeath is disabled.

  6. #6
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    here is reconnect made by Blakw, working in 100%
    --[[
    Name: Auto Safe Reconnect by BlakW
    Version: v5.0.0
    ]]--


    --Reopen backpacks:
    local reopenBps = ("yes")


    ----- Backpack Name Settings -----
    --Main Backpack Name:
    local mainBackpackName = ("Backpack of Holding")

    --Loot Backpack Name:
    local lootBackpackName = ("Blue Backpack")

    --Supplies Backpack Name:
    local supBackpackName = ("Green Backpack")

    --Gold Backpack Name:
    local goldBackpackName = ("Golden Backpack")


    ----- Backpacks to Use -----
    --Use Main Backpack:
    local useMainBackpack = ("yes")

    --Use Loot Backpack:
    local useLootBackpack = ("yes")

    --Use Supplies Backpack:
    local useSuppliesBackpack = ("yes")

    --Use Gold Backpack:
    local useGoldBackpack = ("yes")


    ----- Safe Temple Settings -----
    --Temple NPCs:
    local templeNpcNames = {"Alia", "Tyrias", "Brewster", "Rahkem", "Kasmir", "Amanda", "Isimov", "Yberius", "Maealil", "Quentin", "Lynda", "Lorietta", "Prezil", "Kjesse", "Asralius"}

    --Temple Position Range (sqm):
    local templePositionRange = 7


    ----- Engine [Do not edit unless you know what you are doing] -----
    if (connected == false)
    then
    reconnect()
    wait(600, 1800)
    pausewalking(10000)

    if ((pzone == true) and (maround(10, false, unpack(templeNpcNames)) >= 1)
    or (pzone == true) and (islocationxyz(32787, 31276, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(32595, 32744, 6, templePositionRange))
    or (pzone == true) and (islocationxyz(33213, 32454, 1, templePositionRange))
    or (pzone == true) and (islocationxyz(32213, 31133, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(33004, 31490, 11, templePositionRange))
    or (pzone == true) and (islocationxyz(32649, 31925, 11, templePositionRange))
    or (pzone == true) and (islocationxyz(33217, 31814, 8, templePositionRange))
    or (pzone == true) and (islocationxyz(32317, 32826, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(33194, 32853, 8, templePositionRange))
    or (pzone == true) and (islocationxyz(32369, 32241, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(32360, 31782, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(32957, 32076, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(32732, 31634, 7, templePositionRange))
    or (pzone == true) and (islocationxyz(33447, 31323, 9, templePositionRange)))
    then
    wait(1500)
    closetibia()
    wait(1500)
    message("Reconnect Message: Tibia client has been closed because character was inside a temple. This is to protect your character from being killed by other players.")
    end

    wait(2500)
    if ((reopenBps == ("yes")) and (windowcount() == 0) and (maround(7, false) == 0) and (lootbodiescount == 0))
    then
    closewindows()
    wait(2000, 3500)
    while ((windowcount(mainBackpackName) == 0) and (useMainBackpack == ("yes")))
    do
    openitem(mainBackpackName, "back")
    wait(2000)
    resizewindows()
    end
    wait(2000, 3500)
    while ((windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useSuppliesBackpack == ("yes")))
    do
    openitem(supBackpackName, mainBackpackName, true)
    wait(2000)
    resizewindows()
    end
    wait(2000, 3500)
    while ((windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useLootBackpack == ("yes")))
    do
    openitem(lootBackpackName, mainBackpackName, true)
    wait(2000)
    resizewindows()
    end
    wait(2000, 3500)
    while ((windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1) and (useGoldBackpack == ("yes")))
    do
    openitem(goldBackpackName, mainBackpackName, true)
    wait(2000)
    resizewindows()
    end
    wait(2000, 3500)
    end
    wait(10000, 15000)
    setcavebot("yes")
    wait(1000, 2500)
    setlooting("yes")
    wait(1000, 2500)
    settargeting("yes")
    wait(2000, 3500)
    end


    If it won't work 4u, that mean something is wrong with your bot, because here everything is okey

  7. #7
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Did you try it with the preview bot?

    Beacuse it's not working.

  8. #8
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    so thats mean Preview bot is fcked up :x here on 2.0.2 working

  9. #9
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by RafiXWPT View Post
    so thats mean Preview bot is fcked up :x here on 2.0.2 working
    I got it to reconnect if i logout and sees the character list.

    BUT if does not type in account and password if I close the character list. It just puts up the window where you enter you account name and password and get stuck there.

  10. #10
    Normal User
    Join Date
    Dec 2012
    Location
    Sweden
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    bump

    Is there no-one else that uses reconnect() and/or connect() on the preview bot version that has the same problem as me?

Posting Permissions

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