January 4, 201610 yr 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
January 4, 201610 yr Remember that these methods works if my player isn't in some kind of 2nd or 1st floor When you are no longer on the ground floor, you must do AREA.setPlane(1) or AREA.setPlane(2) or AREA.setPl..... for ever floor that you climb. Hope this helps
January 4, 201610 yr Author Can u give me example ? can't really understand where that must contain Edited January 4, 201610 yr by futurepasts
January 4, 201610 yr Well, afaik, the webwalker or any walking event doesn't walk between different planes, you need to make your own ladder/stair handler until support is added.
January 4, 201610 yr 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"); }
January 9, 201610 yr 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));
Create an account or sign in to comment