Results 1 to 9 of 9

Thread: xlog if less than x potions

  1. #1
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5

    xlog if less than x potions

    local nameHp = "Great Health Potion"

    if Self.ServerItemCount("great health potion") <= 120 and connected then
    setcavebot("no")
    wait(1000)
    closetibia()
    end

    Hey guys for some reason this isn't working!
    pretty shitty scripter.
    When I'm getting drained and obviously not waking up to alerts I'd like my ek's to xlog after the server log says using one of x great health potions or manas
    because sometimes the bp is closed in dp refilling and he xlogs with my old script/action, think this would solve that issue.

    thanks in advance
    Last edited by IWEED; 02-08-2013 at 08:07 AM.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  2. #2
    iBot User
    Join Date
    Feb 2012
    Posts
    759
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    12 Post(s)
    Reputation
    50
    Rep Power
    6
    Just change the script that u r using. There is many 100% afk scripts in Free Scripts Section

  3. #3
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Ok so. Most scripts usually closes bps inside pz right?

    So..You can add in your script

    PHP Code:
    if itemcount("great health potion") < 120 and not pzone then
    setcavebot
    ("no")
    wait(1000)
    closetibia()
    end 

  4. #4
    Banned
    Join Date
    Feb 2012
    Location
    Maringá - PR
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    you could also use alarm shit lol

  5. #5
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    .....................
    Last edited by IWEED; 02-12-2013 at 04:51 AM.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by BUgWT View Post
    Ok so. Most scripts usually closes bps inside pz right?

    So..You can add in your script

    PHP Code:
    if itemcount("great health potion") < 120 and not pzone then
    setcavebot
    ("no")
    wait(1000)
    closetibia()
    end 

    and lots of scripts also close them outside pzones.

    Also, what is the point of turning off cavebot if you're about to xlog?


    PHP Code:
    if servercountitem("great health potion") < 120 then closetibia() end 

  7. #7
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    hello, is prossible add to use a potion to heal ur life before log out?
    for exemplo:

    if itemcount("great health potion") =< 5 and hppc > 60 then
    setcavebot("no")
    wait(5000)
    closetibia()
    else if itemcount("great health potion") =< 5 and hppc < 60 then
    useitemon("great health potion")
    setcavebot("no")
    wait(5000)
    closetibia()
    end
    end
    The action work, I helped you, so thank doing:
    Rep +
    A action funcionou, eu ajudei vc, então agradeça fazendo:
    Rep +
    Its to increase my reputation as helper.

  8. #8
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Thanks pink_panther!
    Last edited by IWEED; 03-05-2013 at 06:01 AM.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  9. #9
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Vigilante Alert View Post
    hello, is prossible add to use a potion to heal ur life before log out?
    for exemplo:

    local nameHp = "great health potion"
    local xminHp = 10 -- xLog when you have less than this many potions


    if servercountitem(nameHp) < xminHp then
    setsettings("Settings\\Healer\\Rules\\HealthPotion\\HealRange", "0 to 100 %")
    wait(5000)
    closetibia()
    end


    Change HealthPotion to whatever your Health Potion rule is called, this way it will set health potions to heal to 100%, wait 5 seconds for it to heal then xlog.


    Please note that if you use servercount, it will consider the count as 0 when you log in, so you need to log in, use a health potion with a hotkey, then load your script.

Posting Permissions

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