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
  • nCH

    Members
    • Posts

      6
    • Joined

    • Last visited

    Posts posted by nCH

    1. its use local pathfinders .

        LocalPath<Tile> test2 = Walking.getDijPathFinder().calculate(start, finish);
       	java.util.Map<Tile,PathObstacle> testpo = test2.obstacles();
          java.util.Map<Tile,PathObstacle> testpo = test2.obstacles();
              MethodProvider.log("testpo size + " + testpo.size() );
      
      
              for(java.util.Map.Entry item : testpo.entrySet()){
      
                  MethodProvider.log("testpo  tile  + " + item.getKey());
                  PathObstacle potest =  testpo.get(item.getKey());
                  MethodProvider.log("potest  getName()  + " + potest.getName());
                  MethodProvider.log("potest  getAction()  + " + potest.getAction());
              }
          
      Quote

      16:01:29: [SCRIPT] testpo  tile  + (3205, 3229, 1)
      16:01:29: [SCRIPT] potest  getName()  + Staircase
      16:01:29: [SCRIPT] potest  getAction()  + Climb-up
      16:01:29: [SCRIPT] testpo  tile  + (3205, 3229, 0)
      16:01:29: [SCRIPT] potest  getName()  + Staircase
      16:01:29: [SCRIPT] potest  getAction()  + Climb-up
      16:01:29: [SCRIPT] test + 11

       

    2. On 5/8/2021 at 11:41 PM, Pandemic said:

      At this time you can't disable the retry logic with any entity interactions, however you could do a "dumb" interact like this and react however you'd prefer:

      GameObject rock = GameObjects.closest("Rocks");
      PointDestination pointDestination = new PointDestination(rock.getClickablePoint());
      InteractionEvent interactionEvent = new InteractionEvent(pointDestination);
      
      if (interactionEvent.interact("Mine")) {
        // Successfully interacted with a rock
      } else {
        // Failed to choose that action at the given point, move / rotate / etc.
      }

      It's a bit more verbose, and it wouldn't actually ensure that the entity at the point it interacts with is the exact same entity, but I imagine that'd be pretty rare.

      Hope that helps!

      "etClickablePoint()" its some random point on Object?
    ×
    ×
    • 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.