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.

mrgeorge

Members
  • Joined

  • Last visited

  1. I am sorry but may I ask what is the reason, just starting this as my first script. Thanks Polymorphism, like your name
  2. Please make the script so it right clicks the loot to pick up arrows. It left clicks the drop and at time there are other things on top of the arrows.
  3. import org.osbot.rs07.api.NPCS; import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.model.GroundItem; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "myName", info = "Kills chickens in Fally.", name = "ChickSlayer", version = 0.1, logo = "") public class Main extends Script { public void onStart() { } public void onExit() { } public int onLoop() throws InterruptedException { NPCS npc = getNpcs(); GroundItem arrows = groundItems.closest("Bronze arrow"); Walking walk = new Walking(); if (npc.closest("Chicken").isVisible() && !(myPlayer().isUnderAttack())) { attackNPC(npc); pickUpArrows(arrows, walk); sleep(1500); } else { camera.toEntity(npc.closest("Chicken")); } return 1500; } private void pickUpArrows(GroundItem arrows, Walking walk) throws InterruptedException { if (!myPlayer().isAnimating() && !myPlayer().isUnderAttack() && !myPlayer().isMoving()) { if (!arrows.isOnScreen()) { camera.toEntity(arrows); if (!arrows.isOnScreen()) { walk.walk(arrows); } } arrows.interact("Take"); } } private void attackNPC(NPCS npc) throws InterruptedException { if (npc.closest("Chicken").isAttackable() && npc.closest("Chicken").exists() && !(myPlayer().isUnderAttack()) && !(npc.closest("Chicken").isUnderAttack())) { npc.closest("Chicken").interact("Attack"); sleep(1500); } } } The code seems to compile and the script does run 75% of my logic. However I want to pick up the arrows right after the kill. And it is unable to do that. The script does in fact pick up the arrows but not right after the chicken is dead. It kills maybe 2 or 3 chickens then decides to pick up the arrows from the ground. It also picks up arrows while its in combat. Please look in the picture below.

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.