Jump to content

Dynamic paths without WebWalker?


Hel

Recommended Posts

Hi, I was trying to create a method similar to walking.walkPath(path), but rather than pre-defining the path with positions, I wanted to randomly grab a position from an area, to try create some randomization to the path.

So far I came up with 
 

List<Position> pathToWalk = new ArrayList<>();
private void walkCustomPath(List<Area> areaList){
		pathToWalk.clear();
		for(int x = 0; x < areaList.size(); x++){
			pathToWalk.add(areaList.get(x).getRandomPosition());
		}
		walking.walkPath(pathToWalk);
	}


This works, but the walking is very gross compared to a regular pre-defined path with static positions, so I suppose what I was wondering is if there's a better way to go about this? Thanks

Edited by Slut
Link to comment
Share on other sites

40 minutes ago, Slut said:

Hi, I was trying to create a method similar to walking.walkPath(path), but rather than pre-defining the path with positions, I wanted to randomly grab a position from an area, to try create some randomization to the path.

So far I came up with 
 


List<Position> pathToWalk = new ArrayList<>();
private void walkCustomPath(List<Area> areaList){
		pathToWalk.clear();
		for(int x = 0; x < areaList.size(); x++){
			pathToWalk.add(areaList.get(x).getRandomPosition());
		}
		walking.walkPath(pathToWalk);
	}


This works, but the walking is very gross compared to a regular pre-defined path with static positions, so I suppose what I was wondering is if there's a better way to go about this? Thanks

why not just use that 
to "generate" the list of tiles, 1 from each area
then use the walk path method using that generated path

Link to comment
Share on other sites

You're already became botlike by selecting where you click based on coordinates. Players don't do that, they just spam click in the general direction. ;) Unless there are intricate obstacles being traversed. If you go to the web walking nodes on F2p you can notice massive amounts of bots all taking the same paths. So it's not exactly dynamic right out of the box, in the sense of players misnavigating and such. But it could be adjusted to do this. The easiest mix of the two would be to use webwalking but select each event you send based on easiest click x, y not "best" random tile 

Edited by dmmslaver
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...