Results 1 to 6 of 6

Thread: Logout when pots are over?

  1. #1
    Normal User
    Join Date
    Nov 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Logout when pots are over?

    How can I logout in the middle of the hunt if I have less than 20 strong mana pots? Notice that Im trying to logout in a safe place but in the nidle of the hunt, so i will probably have "battle" sign.

    Thank u

  2. #2
    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
    PHP Code:
    local nameMp "Mana Potion"

    if itemcount(nameMp) <= 20 and connected then
        setcavebot
    ("no")
        
    wait(1000)
        
    logout()
    end 
    This will disable cavebot once you have less than 20 mana potions and eventually you will lose your battlesign and log out.

    Alternatively change logout() to closetibia() to perform an xlog. However, if you're going to want to xlog, you will want to add "and maround() == 0" into the first line, like so.

    PHP Code:
    local nameMp "Mana Potion"

    if itemcount(nameMp) <= 20 and connected and maround() == 0 then
        setcavebot
    ("no")
        
    wait(1000)
        
    closetibia()
    end 
    Last edited by pink_panther; 11-13-2012 at 03:30 AM.

  3. #3
    Normal User
    Join Date
    Nov 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    The problem in the PZ sign. If I make the action as i said at firt, it will stop cavebot but will not logout because it has PZ sign. I would like to find an action to wait that PZ and then logout.
    Anyway, I think that "closetibia" will work for now!

    Thank u

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local nameMp "Mana Potion"

    if itemcount(nameMp) <= 20 and connected and maround() == 0 then
        setcavebot
    ("no")
        while (
    battlesigned) do
            
    wait(1000)
            
    updateworld()
        
    end
        closetibia
    ()
    end 

  5. #5
    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
    Did you even read what i said... it will stop and wait anyway...

  6. #6
    Normal User
    Join Date
    Nov 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thank u guys but the action that soder sent works perfecly as I want! Thank u again!

Posting Permissions

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