Jump to content

Bot isn't walking


Recommended Posts

Posted

Hello guys maybe sombody know why my bot isn't walking ? I tried these methods but once my player is in 1st or 2nd or 3rd floor at any buiding any of these methods that i tried isn't working.First i check if my player is in area using

 

 

if(AREA.contains(myPlayer())){

 

walking.walk()

localWalker.walkPath();

getWalking().webWalk(new Position(x,z,y));

 

 

 

Remember that these methods works if my player isn't in some kind of 2nd or 1st floor it works great when im for example at varrock bank but it stops working once i get into building like that one in quest Romeo and juliet.

 

Hope sombody could help me.Thanks :)

Posted

Can u give me example ? can't really understand where that must contain :/

 

 

setPlane() is setting the Z axis for you're Area. Here is an example.

 

Ground floor is on plane(0)...Lumbridge bank is 2 Floor's above the ground floor so the plane is 2. 

final Area LUMBRIDGE_BANK = new Area(3205, 3208, 3216, 3229);

LUMBRIDGE_BANK.setPlane(2);

if(LUMBRIDGE_BANK.contains(myPlayer())){
   log("Player is on the 3rd of lumbridge castle");


} 
Posted

 

setPlane() is setting the Z axis for you're Area. Here is an example.

 

Ground floor is on plane(0)...Lumbridge bank is 2 Floor's above the ground floor so the plane is 2. 

final Area LUMBRIDGE_BANK = new Area(3205, 3208, 3216, 3229);

LUMBRIDGE_BANK.setPlane(2);

if(LUMBRIDGE_BANK.contains(myPlayer())){
   log("Player is on the 3rd of lumbridge castle");


} 

 

Or you can just do

private final Area LUMBRIDGE_BANK = new Area(new Position(3205, 3208, 2), new Position(3216, 3229, 2));
  • Like 2

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