XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Walker.isStuck()

  1. #1
    Lifetime Subscriber Stusse's Avatar
    Join Date
    Dec 2011
    Location
    solid-scripts.com
    Posts
    3,523
    Mentioned
    346 Post(s)
    Tagged
    1 Thread(s)

    Walker.isStuck()

    Pretty sure it've already been suggested at some point, however:

    Walker.isStuck()

    When the state of "Can't find the next waypoint".

    Perhaps should return boolean or even time being stuck.

    /Stusse

  2. #2
    Kamoblindside77's Avatar
    Join Date
    Aug 2012
    Location
    New Zealand
    Posts
    330
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    heck yea
    Bought character from @RobD
    Sold 10kk to @kiwiwarrior
    Bought Account from @Glenhye

  3. #3
    Boomtune's Avatar
    Join Date
    Dec 2012
    Location
    Germany
    Posts
    322
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Something like this is very needed.... XenoBot is the most stuckable bot, it is always getting stuck at some point!

  4. #4
    Lifetime Subscriber thorekz's Avatar
    Join Date
    Dec 2011
    Location
    Santiago, Chile
    Posts
    1,247
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Boomtune View Post
    Something like this is very needed.... XenoBot is the most stuckable bot, it is always getting stuck at some point!
    yep :/
    boats, teleports, special areas...
    Quod per sortem sternit fortem.

  5. #5
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by thorekz View Post
    yep :/
    boats, teleports, special areas...
    If you get stuck at any of these places, it's because you suck at making scripts.

  6. #6

    Join Date
    Nov 2013
    Location
    Poland
    Posts
    104
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    If you get stuck at any of these places, it's because you suck at making scripts.
    True.
    GL & HF

  7. #7
    Lifetime Subscriber thorekz's Avatar
    Join Date
    Dec 2011
    Location
    Santiago, Chile
    Posts
    1,247
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    If you get stuck at any of these places, it's because you suck at making scripts.
    could be lol
    Quod per sortem sternit fortem.

  8. #8
    Boomtune's Avatar
    Join Date
    Dec 2012
    Location
    Germany
    Posts
    322
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    If you get stuck at any of these places, it's because you suck at making scripts.
    I'm make scripts for a couple of years now... started on ElfBot... went over NeoBot and iBot and now XenoBot.
    I have to say that XenoBot was the bot wich made me the most problems in making scripts... still it's a pretty nice bot!

    Look at a problem here.... my script is working fully afk except sometimes he get's "stuck" in the middle of a little hunt place....



    What's the problem here? It's nearly impossible for me to fix it... tryed alot of different wpt's!

    If XenoBot would just skip waypoints till it finds the right one again.... like every other bot does!

    Hope you can help me with that.


    EDIT:
    Here another one.
    However you need to wait till someone is luring ghastly or something so character moves some sqm and your char continue hunting. Or just walk manual some sqm and your char continues walking.



    It's impossible for me to fix it... tryed alot of different ways to make waypoints and I always get stuck.
    Last edited by Boomtune; 07-03-2014 at 05:26 PM.

  9. #9
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Skipping waypoints (when stuck) would be bad unless it'll skip only if you are too far away from the next one - that would be best I guess.

  10. #10
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    IsStuck as been added and will be in next release.

    @Boomtune

    The issue you are seeing happens when someone is blocking on the minimap on one of those dark-red tiles, and you are off screen. Try to mapclick, you get the same exact issue. Due to how Tibia works, paths remain blocked by creatures when you leave the screen. XenoBot mitigates this (and is the only bot that does) by ignoring blocking tiles IF the minimap color is one that's always walkable. Those dark-redish-brown tiles, however, are not always walkable, and assuming they are walkable would cause major bugs elsewhere.

    The reason other bots don't get stuck here is because they will skip waypoints that they can't reach. This is why you commonly end up with someone in the middle of a spawn trying to buy potions as a gastly facerolls them, or spamming exani hur up on a water border.

    The XenoBot solution for this is to isolate your character in screen-size chunks using special areas, making it impossible to go off-screen of a waypoint before you see it (this also assumes you have waypoints evenly spread at 6-10 sqm intervals).

    So, yes, XenoBot does get stuck more in these scenarios. But would you rather be stuck, or banned?

Posting Permissions

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