XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Make logout() function

  1. #11
    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 Bollo View Post
    Isnt it able to call like a windows command to just shut down the Tibia thats running?
    Sure, you can kill the process Tibia.exe with an external piece of code.

  2. #12
    Funkgary's Avatar
    Join Date
    Feb 2012
    Location
    California, USA
    Posts
    368
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Hendy View Post
    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.
    I checked your suggestion list, it's not in there. It only has the suggestion "reconnect" not "disconnect"

  3. #13
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    Sure, you can kill the process Tibia.exe with an external piece of code.
    Could you integrate this into the xenobot script? and how?

  4. #14

    Join Date
    Dec 2012
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've seen this suggested before, however - I honestly can't believe that this bot does not have this function. It's such a great bot - but I agree with @Funkgary that this would be SOOOO useful for a very wide variety of applications, despite what anyone says.

    I realize there are some other work arounds, but once again - I agree is it not the same thing as a log out function or Xlog function... Just my 2 cents

  5. #15
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Eion View Post
    Could you integrate this into the xenobot script? and how?
    I would belive it's as simple as:
    Code:
    os.execute("taskkill /F /IM Tibia.exe")
    Would close all Tibia.exe ofc.

  6. #16
    XenoBot Scripts Developer Syntax's Avatar
    Join Date
    Feb 2011
    Posts
    1,658
    Mentioned
    431 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Milice View Post
    I would belive it's as simple as:
    Code:
    os.execute("taskkill /F /IM Tibia.exe")
    Would close all Tibia.exe ofc.
    os.execute is not possible in later versions of XenoBot, security reasons of course.

  7. #17
    Banned
    Join Date
    Aug 2011
    Location
    Sweden
    Posts
    106
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Syntax View Post
    os.execute is not possible in later versions of XenoBot, security reasons of course.
    Oh, okay. My bad then ^^ Wasn't aware of that.

  8. #18
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I went out of the way to create my own program that will reconnect after disconnects. I have the .LUA write a variable to a text file upon logging out because of low stamina and my program reads that file. It avoids logging in around server save and makes several checks so it does not attempt to inject or log in after an update. This allows me to run 24/7 basically on any account with 3 or more characters. Whenever the settings are loaded for a script. I have the .LUA open the backpacks and then I make a bunch location checks with an isLocation() function that I created to find out where to move the walker to, avoiding the walker stuck. There are still a few bugs in it, but I have been running 3 accounts for almost 3 days straight now switching between characters with no problem. It is really nice for when my ISP disconnects or Tibia lags... Sadly, I had to rely on mouse clicks to control xenobot as it has some sort of protection against debugging tools.

    I don't understand why Xeno does not have a logout/reconnect feature built in. I have heard it was unsafe but never heard the explanation as to why.

Posting Permissions

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