Results 1 to 3 of 3

Thread: Reconnect + Stamina + check position

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Reconnect + Stamina + check position

    Hi guys,

    I need put one stamina check on this reconnect script and, if is possible, one check position ( if he dies and log on temple, closeclient() )

    PHP Code:
    --[[ 
        
    NameAuto Safe Reconnect by BlakW  
        Version
    v3.0.0 
    ]]-- 
         
         
    --
    Account
    local accountNameIs = ("123456"

    --
    Password
    local passwordNameIs = ("abcdef"

    --
    Character name
    local characterNameIs = ("BlakW"

    --
    Reopen backpacks
    local reopenBps = ("yes"

    --
    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"

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


    if (
    connected == false
    then 
        connect
    (accountNameIspasswordNameIscharacterNameIs
        
    wait(6001800
        
    pausewalking(10000

        if ((
    pzone == true) and (maround(7falseunpack(templeNpcNames)) >= 1)) 
        
    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(7false) == 0) and (lootbodiescount == 0)) 
        
    then 
            closewindows
    () 
            
    wait(20003500
            while ((
    windowcount(mainBackpackName) == 0)) 
            do 
                
    openitem(mainBackpackName"back"
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(supBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(lootBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(goldBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
        
    end 
        setcavebot
    ("yes"
        
    wait(10002500
        
    setlooting("yes"
        
    wait(10002500
        
    settargeting("yes"
        
    wait(20003500
    end 

    Thanks!

  2. #2
    Normal User JuvereOcules's Avatar
    Join Date
    Aug 2012
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by kisae View Post
    Hi guys,

    I need put one stamina check on this reconnect script and, if is possible, one check position ( if he dies and log on temple, closeclient() )

    PHP Code:
    --[[ 
        
    NameAuto Safe Reconnect by BlakW  
        Version
    v3.0.0 
    ]]-- 
         
         
    --
    Account
    local accountNameIs = ("123456"

    --
    Password
    local passwordNameIs = ("abcdef"

    --
    Character name
    local characterNameIs = ("BlakW"

    --
    Reopen backpacks
    local reopenBps = ("yes"

    --
    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"

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


    if (
    connected == false
    then 
        connect
    (accountNameIspasswordNameIscharacterNameIs
        
    wait(6001800
        
    pausewalking(10000

        if ((
    pzone == true) and (maround(7falseunpack(templeNpcNames)) >= 1)) 
        
    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(7false) == 0) and (lootbodiescount == 0)) 
        
    then 
            closewindows
    () 
            
    wait(20003500
            while ((
    windowcount(mainBackpackName) == 0)) 
            do 
                
    openitem(mainBackpackName"back"
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(supBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(lootBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(goldBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
        
    end 
        setcavebot
    ("yes"
        
    wait(10002500
        
    setlooting("yes"
        
    wait(10002500
        
    settargeting("yes"
        
    wait(20003500
    end 

    Thanks!
    Try That one:
    PHP Code:
    --[[ 
        
    NameAuto Safe Reconnect by BlakW  
        Version
    v3.0.0 
    ]]-- 
         
         
    --
    Account
    local accountNameIs = ("123456"

    --
    Password
    local passwordNameIs = ("abcdef"

    --
    Character name
    local characterNameIs = ("BlakW"

    --
    Reopen backpacks
    local reopenBps = ("yes"

    --
    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"

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


    if (
    connected == false)  and maround(7falseunpack(templeNpcNames)) == and stamina 14*60 then 
        connect
    (accountNameIspasswordNameIscharacterNameIs
        
    wait(6001800
        
    pausewalking(10000

        if ((
    pzone == true) and (maround(7falseunpack(templeNpcNames)) >= 1)) 
        
    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(7false) == 0) and (lootbodiescount == 0)) 
        
    then 
            closewindows
    () 
            
    wait(20003500
            while ((
    windowcount(mainBackpackName) == 0)) 
            do 
                
    openitem(mainBackpackName"back"
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(supBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(supBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(lootBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(lootBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
            while ((
    windowcount(goldBackpackName) == 0) and (windowcount(mainBackpackName) == 1)) 
            do 
                
    openitem(goldBackpackNamemainBackpackNametrue
                
    wait(2000
                
    resizewindows() 
            
    end 
            wait
    (20003500
        
    end 
        setcavebot
    ("yes"
        
    wait(10002500
        
    setlooting("yes"
        
    wait(10002500
        
    settargeting("yes"
        
    wait(20003500)
    elseif 
    maround(7falseunpack(templeNpcNames)) ~= or stamina 14*60 then
        closetibia
    ()
    end 
    PS: They will close tibia if stamina lower than 14h or if one of thease Temple NPC's around, even if tibia is runing that is what you want?
    Last edited by JuvereOcules; 11-06-2012 at 10:18 AM.

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    #JuvereOcules

    Ye, i think it will work! thanks.

    #Ropiderz

    I'll test your version too, thank you dude!

Posting Permissions

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