Results 1 to 2 of 2

Thread: Reconnect

  1. #1
    Normal User gizmoo's Avatar
    Join Date
    Jan 2013
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    4

    Reconnect

    Hello i use this reconnect script but when character get reconnected bot don't open bps whats wrong ?

    --[[
    Name: Auto Safe Reconnect by BlakW
    Version: v5.0.0
    ]]--


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


    ----- Backpack Name Settings -----
    --Main Backpack Name:
    local mainBackpackName = ("golden backpack")

    --Loot Backpack Name:
    local lootBackpackName = ("yellow backpack")

    --Supplies Backpack Name:
    local supBackpackName = ("beach bag")

    --Gold Backpack Name:
    local goldBackpackName = ("fur 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
    setcavebot("yes")
    wait(1000, 2500)
    setlooting("yes")
    wait(1000, 2500)
    settargeting("yes")
    wait(2000, 3500)
    end

  2. #2
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    What a complicated code, for such a simple task.
    PHP Code:
    if windowcount() < 1 then
    openitem
    (bpMain"back"true)
    wait(1000)
    openitem(bpGoldbpMaintrue)
    wait(1000)
    ... 
    keep going
    end 
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

Posting Permissions

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