Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Nearest Object -> Object Algorithm!


    jangan

    Recommended Posts

    Posted

    Hello friends,

     

    I am trying to get the nearest object to another object, not CurrentLocalPlayerLocation.

     

    Example: Nearest Table -> Ladder -> Door!

     

    You must assume that there are multiple objects of tables and ladders in a distance range of 1-55 randomly BUT 1 Single DOOR

     

    And that I am trying to map the distance from the Door -> (Nearest Ladder to Door) -> (Nearest Table to That Ladder) -> We will walk to that table

     

    so the idea is..

     

    To walk to the nearest table -> walk to the nearest ladder to that table -> walk to the nearest door and only door to the table!

     

     

    ---------------------------

     

    I am doing this for a project that i will share later :D

    I am trying to map a region in runescape!

     

     

     

     

    Generally if Pandemic shares the code for .Closest() in game objects, it will answer my question :D


    Okay i figured out another way to do it.. not a good enough method. 

     

    But here is so far my progress with my Barrows Bot :D

     

    C8wDz0D.png

     

     

    Orange = Chest

    Green = Double Doors infront of the chest

    Yellow = us the current player location

     

     

     

    Soon i will map the entire area

    Posted

    I am also working on one, everything is working but I still have a lot of work to do on the maze. It is going to be the death of me lol.

     

    I am using a recursive method capable of backtracking to solve the maze, there may be a better way, but it seems to be the simplest, and is more human-like than just taking the correct path 100% of the time.

     

    I'm not sure I follow your question, but you can use the location of another game object relative to the one your looking for to find it  (so long as neither is null) with a distance modifier in the filter. I did a similar thing in my script  :)

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.