Jump to content

INodeRouteFinder


imancity

Recommended Posts

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);
Link to comment
Share on other sites

@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
Link to comment
Share on other sites

@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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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