Results 1 to 8 of 8

Thread: Disconnect

  1. #1
    iBot User
    Join Date
    Aug 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    Disconnect

    I need to make an action way-point that does the following:

    If cap is less then X or mana potions less then X
    Then disconnect

    Please help me

  2. #2
    iBot User
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    7
    Rep Power
    0
    if cap < X or itemcount("mana potion") < X
    then
    disconnect()
    end


    Change X for the value you want
    Last edited by 4Play; 12-27-2012 at 10:20 PM.

  3. #3
    iBot User
    Join Date
    Aug 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    doesn't seem to work, I made an action way-point where I'd want the character to logout, but it does nothing. I tried to change the cap X to 1000 just to test this even.

  4. #4
    Banned
    Join Date
    Jul 2012
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    16 Post(s)
    Reputation
    27
    Rep Power
    0
    PHP Code:
    if cap or itemcount(MPname) < Y
    then
    gotolabel 
    ('Z')
    end 

    cap < X = add number of cap u want to logout, MPname change to your setup configuration when appears type of potion and Y number to logout.
    then Z make a label with name Z ( for example call it disconnect) and when go to action Z , in the action Z put
    disconnect()

  5. #5
    iBot User
    Join Date
    Aug 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Keloketukiere View Post
    PHP Code:
    if cap or itemcount(MPname) < Y
    then
    gotolabel 
    ('Z')
    end 

    cap < X = add number of cap u want to logout, MPname change to your setup configuration when appears type of potion and Y number to logout.
    then Z make a label with name Z ( for example call it disconnect) and when go to action Z , in the action Z put
    disconnect()
    I am sorry, but I am to noobish with this bot to understand half of that, I just made my scrips to go by a safe place every round and made an action way-point there and added this code into it:

    if (cap() < 1000) or (itemcount("mana potion") < 100)
    then
    closetibia()
    end


    And I've no idea why it's not working.


    Edit*

    I don't use an lables and I don't have any setup for backpacks or anything like that.

  6. #6
    Banned
    Join Date
    Jul 2012
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    16 Post(s)
    Reputation
    27
    Rep Power
    0
    Quote Originally Posted by Lordsnutten View Post
    I am sorry, but I am to noobish with this bot to understand half of that, I just made my scrips to go by a safe place every round and made an action way-point there and added this code into it:

    if (cap() < 1000) or (itemcount("mana potion") < 100)
    then
    closetibia()
    end


    And I've no idea why it's not working.


    Edit*

    I don't use an lables and I don't have any setup for backpacks or anything like that.

    delete the () after the cap, it will be like this, try it :
    PHP Code:
    if cap 1000 or itemcount("mana potion") < 100
    then
    closetibia
    ()
    end 

  7. #7
    iBot User
    Join Date
    Aug 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    It seems to be working perfectly now, huge thanks

  8. #8
    Banned
    Join Date
    Jul 2012
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    16 Post(s)
    Reputation
    27
    Rep Power
    0
    now works?

Posting Permissions

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