Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Stamina Checks

  1. #11
    Banned
    Join Date
    Feb 2014
    Location
    Leetstreet
    Posts
    324
    Reputation
    38
    Rep Power
    0
    You might want to check $pzone or similar, or it will just attempt to logout in the middle of a spawn for example.

    I made a hotkey/action for this a while back, if you use it in a waypoint-action you need to remove auto()
    http://forums.tibiawindbot.com/showt...9-Safe-Stamina

  2. #12
    Free User
    Join Date
    Dec 2013
    Location
    Poland / Warsaw
    Posts
    53
    Reputation
    10
    Rep Power
    21
    Quote Originally Posted by RoxZin xD View Post
    {
    "type" : "lineedit",
    "name" : "StaminaCheck",
    "description" : "Write the number in hours of stamina to logout",
    "text" : "Stamina:",
    "value" : "15"
    },


    If you're going to use as a cavebot action:
    local staminaCheck = tonumber(getuseroption("StaminaCheck"))

    if $stamina < staminaCheck*60 then
    set('Cavebot/Enabled', 'no')
    waitping()
    logout()
    end


    As a persistent:
    local staminaCheck = tonumber(getuseroption("StaminaCheck"))

    auto(200)
    if $stamina < staminaCheck*60 then
    set('Cavebot/Enabled', 'no')
    waitping()
    logout()
    end
    should look like the action to check the stamina to exp gain

  3. #13
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Quote Originally Posted by kagar View Post
    should look like the action to check the stamina to exp gain
    What?



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  4. #14
    Free User
    Join Date
    Dec 2013
    Location
    Poland / Warsaw
    Posts
    53
    Reputation
    10
    Rep Power
    21
    Quote Originally Posted by RoxZin xD View Post
    What?
    so, check the hunt stamina

    PHP Code:
    --Refill--
    auto(1000)
    local ManaNameIs "mana potion"
    local Health1 "strong health potion"


    local ManaMinis tonumber(getuseroption("MinMana"))
    local Health1Minis tonumber(getuseroption("MinSHP"))


    local MinCapIs tonumber(getuseroption("MinCap"))


    if (
    $wptsection == "SmallHunt"then
        
    if itemcount(ManaNameIs) < (ManaMinis) or itemcount(Health1) < (Health1Minis) or $cap < (MinCapIs) or STAMINA then
            gotolabel
    ("LeaveSHN""SmallHunt")
            
    wait(100)
        
    end
    end 

  5. #15
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Quote Originally Posted by kagar View Post
    so, check the hunt stamina

    PHP Code:
    --Refill--
    auto(1000)
    local ManaNameIs "mana potion"
    local Health1 "strong health potion"


    local ManaMinis tonumber(getuseroption("MinMana"))
    local Health1Minis tonumber(getuseroption("MinSHP"))


    local MinCapIs tonumber(getuseroption("MinCap"))


    if (
    $wptsection == "SmallHunt"then
        
    if itemcount(ManaNameIs) < (ManaMinis) or itemcount(Health1) < (Health1Minis) or $cap < (MinCapIs) or STAMINA then
            gotolabel
    ("LeaveSHN""SmallHunt")
            
    wait(100)
        
    end
    end 
    --Refill--
    auto(1000)
    local ManaNameIs = "mana potion"
    local Health1 = "strong health potion"


    local ManaMinis = tonumber(getuseroption("MinMana"))
    local Health1Minis = tonumber(getuseroption("MinSHP"))


    local MinCapIs = tonumber(getuseroption("MinCap"))


    if ($wptsection == "SmallHunt") then
    if itemcount(ManaNameIs) < (ManaMinis) or itemcount(Health1) < (Health1Minis) or $cap < (MinCapIs) or $stamina < 14*60 then
    gotolabel("LeaveSHN", "SmallHunt")
    wait(100)
    end
    end


    This? Or what



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  6. #16
    Free User
    Join Date
    Dec 2013
    Location
    Poland / Warsaw
    Posts
    53
    Reputation
    10
    Rep Power
    21
    Quote Originally Posted by RoxZin xD View Post
    This? Or what
    I know I can do that, I would like to retrieve data from the previous action you wrote
    Last edited by kagar; 03-11-2014 at 05:49 PM.

  7. #17
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Quote Originally Posted by kagar View Post
    I know I can do that, I would like to retrieve data from the previous action you wrote
    Oh, now I got what u wanted

    --Refill-- 
    auto(1000)
    local staminaCheck = tonumber(getuseroption("StaminaCheck"))
    local ManaNameIs = "mana potion"
    local Health1 = "strong health potion"


    local ManaMinis = tonumber(getuseroption("MinMana"))
    local Health1Minis = tonumber(getuseroption("MinSHP"))


    local MinCapIs = tonumber(getuseroption("MinCap"))


    if ($wptsection == "SmallHunt") then
    if itemcount(ManaNameIs) < (ManaMinis) or itemcount(Health1) < (Health1Minis) or $cap < (MinCapIs) or $stamina < staminaCheck*60 then
    gotolabel("LeaveSHN", "SmallHunt")
    wait(100)
    end
    end



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

 

 

Posting Permissions

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