XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Make logout() function

  1. #1
    Funkgary's Avatar
    Join Date
    Feb 2012
    Location
    California, USA
    Posts
    368
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Make logout() function

    Fairly simple and straightfoward, you should create a logout() function that closes the connectiong between the client and tibia so we can create scripts that xlog under certain circumstances.

  2. #2
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Funkgary View Post
    Fairly simple and straightfoward, you should create a logout() function that closes the connectiong between the client and tibia so we can create scripts that xlog under certain circumstances.
    The closest thing to this right now is:
    lua code:
    Cavebot.Stop()
    Walker.Stop() --- Already included in Cavebot.Stop()

    We use this to logout characters in the depot in all of our scripts when your character reaches below 16:00 hours of stamina.

  3. #3
    Funkgary's Avatar
    Join Date
    Feb 2012
    Location
    California, USA
    Posts
    368
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    The closest thing to this right now is:
    lua code:
    Cavebot.Stop()
    Walker.Stop() --- Already included in Cavebot.Stop()

    We use this to logout characters in the depot in all of our scripts when your character reaches below 16:00 hours of stamina.
    ye but I need a logout script so when someone heals my monsters it xlogs so I can go to school and bot also. Tired of buying new AOL's because some asshole healed my coryms

  4. #4
    bkeener101's Avatar
    Join Date
    Jan 2013
    Location
    Louisville, KY, USA
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could achieve the same thing by creating a script to watch your targets health. (not real code, just an example in simple english):

    targetCurrentHealth = target.health
    if target.health > targetCurrentHealth then
    cavebot.stop()
    walker.start()
    Walker.Goto("exit")
    end
    Basically, if the targets health goes up, then stop targeting and send the walker to the label 'exit:'
    Of course, if the monster you are hunting heals itself, then you would have to set a specific amount of healing to trigger the effect.

  5. #5
    Funkgary's Avatar
    Join Date
    Feb 2012
    Location
    California, USA
    Posts
    368
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    ive got my script in order, and what your suggesting doesnt work because I could be anywere on the wpts offscreen from where the exit label would be. the logout function is an imperative necesity to what i am suggesting.

  6. #6
    bkeener101's Avatar
    Join Date
    Jan 2013
    Location
    Louisville, KY, USA
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would a logout function help you? If you are fighting a monster and someone heals it, you cannot logout because you are in battle. And if you xlog then you will stop healing yourself and die. What is it you want this function to do?

  7. #7
    Funkgary's Avatar
    Join Date
    Feb 2012
    Location
    California, USA
    Posts
    368
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    It is an xlog function bro, if someone heals my monsters it usually means they haven't got me surrounded yet. So if it auto disconnects the moment they heal it I will xlog, making the monster stop atking me for 30 seconds then giving me a 30 second window to logout before I die. My knight and a lot of other peoples knights are high enough levels to live for 30 seconds without healing. That's why, and whether or not you can think of a use for the function it would be helpful in a lot of other situations.

  8. #8

    Join Date
    Feb 2013
    Posts
    201
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You guys could also stop complaining about a feature that everybot used to have and this one doesnt, it would be nice to have, usefull sometimes, thats it. I approve this one.

  9. #9
    Lifetime Subscriber Hendy's Avatar
    Join Date
    Jan 2012
    Location
    Northern Ireland
    Posts
    1,593
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    And if you bothered checking Suggestion List II then you would know that it has already been suggested and you also would have seen that DarkstaR said "No comment" about it.

  10. #10
    Senior Member Bollo's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    1,865
    Mentioned
    174 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    The closest thing to this right now is:
    lua code:
    Cavebot.Stop()
    Walker.Stop() --- Already included in Cavebot.Stop()

    We use this to logout characters in the depot in all of our scripts when your character reaches below 16:00 hours of stamina.
    Isnt it able to call like a windows command to just shut down the Tibia thats running?

Posting Permissions

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