Jump to content

Bot isn't walking


futurepasts

Recommended Posts

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 :)

Link to comment
Share on other sites

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");


} 
Link to comment
Share on other sites

 

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