Jump to content

INodeRouteFinder


Recommended Posts

Posted

What do you need INodeRouteFinder for?

 

@Christopher - That's a really bad way to use WebWalkEvent.

 

Thanks for letting me know

        WebWalkEvent event = new WebWalkEvent(position);
        PathPreferenceProfile ppp = new PathPreferenceProfile();
        ppp.setAllowTeleports(true);
        event.setPathPreferenceProfile(ppp);
        event.prefetchRequirements(bot.getMethods());
        execute(event);
Posted

@Christopher - It was bad because of the way web walking is designed. 

 

1. There are internal distance checks to the destination which are NOT arbitrary numbers, but based on the pathing algorithm.

2. If he's using an area as the destination, I wrote it so it returns if the player is in the area... not checking distance to some random position.

3. It's kind of spaghetti, not really checking and using events properly.

 

Not trying to bash, hopefully that clears some things up.

  • Like 2
Posted

@Christopher - It was bad because of the way web walking is designed. 

 

1. There are internal distance checks to the destination which are NOT arbitrary numbers, but based on the pathing algorithm.

2. If he's using an area as the destination, I wrote it so it returns if the player is in the area... not checking distance to some random position.

3. It's kind of spaghetti, not really checking and using events properly.

 

Not trying to bash, hopefully that clears some things up.

 

I can take anything you throw at me. I learn by being bashed! Thanks for the helpful information. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...