Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with area check

Featured Replies

Script wont reconise when my player is in lumbbank area (stays in while loop just clicking around the bank)

 

Any help is appreciated.

case WALK_TO_LUMBY_BANK:

while (!lumbbank.contains(myPlayer())) {
if (myPosition().getZ() != 2) {
state = determineState();
break;
}
while (myPlayer().isMoving()) {
sleep(random(3000, 5000));
}

mouse.click(new MiniMapTileDestination(bot, lumbbank.getRandomPosition()));

while (myPlayer().isMoving()) {
sleep(random(3000, 5000));
}

}
state = State.USING_BANK;
break;

case USING_BANK:
if (determineState() != State.USING_BANK) {
state = determineState();
break;
}

if (!bank.isOpen()) {
bank.open();
sleep(random(300, 500));
}

if (!inventory.isEmpty()) {
bank.depositAll();
sleep(random(300, 500));
bank.depositWornItems();
sleep(random(300, 500));
}

if (!bank.contains("Dragon spear") || !bank.contains("Games necklace(1)")) {
bank.close();
state = State.LOGOUT;
break;
}

if (!inventory.contains("Dragon spear") || !inventory.contains("Games necklace(1)")) {
bank.withdraw(1249, 1); //dragon spear
sleep(random(300, 500));
bank.withdraw(3868, 1); //games necklace(1)
sleep(random(300, 500));
}
break;

Lumby bank area;

 

lumbbank = new Area(3210, 3218, 3208, 3220);

while (!lumbbank.contains(myPlayer())) {}

instead of myPlayer use myPosition

 

myplayer() is fine.

 

@OP, it's probably because with the new area updates, plane is important. You'll have to call

Area.setPlane(2) //or whatever the plane is (plane = z value)

 

apa

  • Author

myplayer() is fine.

 

@OP, it's probably because with the new area updates, plane is important. You'll have to call

Area.setPlane(2) //or whatever the plane is (plane = z value)

 

apa

That worked, thanks alot.

what are you going to do with dragon spear? Corp bug v3?

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.