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.

Camaro

Scripter II
  • Joined

  • Last visited

Everything posted by Camaro

  1. I dont see why not, are you having issues?
  2. you're supposed to PM the scripters in the private script section, not make your own post. Try again, maybe you'll have better odds.
  3. Click that button until it looks just like that.
  4. new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return CurrentWorld == HoptoWorldfinal; } }.sleep(); that will never work since you never update the values. do this instead new ConditionalSleep(MethodProvider.random(10000, 10000)) { @Override public boolean condition() throws InterruptedException { return script.getWorlds().getCurrentWorld() == HoptoWorldfinal; } }.sleep();
  5. Not possible yet
  6. You have to enable human input on the actual osbot client. Then you can draw an area on the screen
  7. Not sure exactly how that works, but this might Player p = getPlayers().singleFilter(p -> p != null && p.getName().replace(" ", "").equals("namewithoutspaces"))
  8. Why do you need to take the spaces out in the first place?
  9. Just realized what youre trying to do Player Name = getPlayers().closest("Example Name"); Name = Name.replace(' ', '_'); Name is a Player instance. Youre trying to call a String function Player player = getPlayers().closest("Example Name"); String name = player.getName().replace(' ', '_'); also forget what I said above, single quotes work fine
  10. need double quotes Name.replace(" ", "_");
  11. fix is submitted, will be ready by tomorrow
  12. Ive used this at hill giants, moss giants, lesser demons, and tzhaar successfully. @omgpros @Lol_marcus I know you two have used this a ton, which locations seemed to work the best?
  13. Last thing, you should only sleep if the interact was successful if (FISH.interact("Bait")) { new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); } }.sleep(); }
  14. new ConditionalSleep(Script.random(10000, 15000)) { public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); <-- take the exclamation point away } }.sleep(); And you should be good!
  15. Fishing spots are actually NPCs, try that instead and see if its fixed
  16. What I put is perfectly fine for someone who is beginning to learn how to do different tasks in the same script. Its the 'state' style. Whats so bad about it for a beginner?
  17. Interesting, it should walk/run towards them if they arent visible. Maybe its the area you are defining? That area tells the script where to look for safespots AND monsters, so if thy arent in the area it wont attack them. Maybe try without it for now. And make sure the npcs are spelled exactly in the gui, may also be an issue.
  18. I havent tried it at that location myself, but I dont see why it wouldnt work there. Is it having trouble attacking or finding safespots?
  19. Pretty sure hes wondering more about how tasks work in general, which your answer fails to do
  20. I hope you realize I only slightly edited his code so it would actually work
  21. Are you running in resized or fixed mode
  22. the 'Task' represent the only task that will be performed throughout the entirety of the script, which is chosen by the dialog that shows at the beginning of the script. Also, they are different tasks. Each function webwalks to a different bank. What are you on about?
  23. I think something like this is more what you're looking for package core; import javax.swing.JOptionPane; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "Bank Walker", version = 1, author = "Marcus", logo = "", info = "Walks and runs to banks") public class Main extends Script { int task; @Override public void onStart() throws InterruptedException { String userOptions[] = {"Varrock", "Falador", "Edgeville"}; String userChoice = ""+(String)JOptionPane.showInputDialog(null, "Choose a location", "Bank Walker", JOptionPane.PLAIN_MESSAGE, null, userOptions, userOptions[1]); if(userChoice.equals("Varrock")) { task = 1; } else if (userChoice.equals("Falador")) { task = 2; } else if (userChoice.equals("Edgeville")) { task = 3; } else { stop(false); } } @Override public int onLoop() throws InterruptedException { switch (task) { case 1: return taskOne(); case 2: return taskTwo(); case 3: return taskThree(); } return 700; } public int taskOne() throws InterruptedException { if (Banks.GRAND_EXCHANGE.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.GRAND_EXCHANGE); } return 700; } public int taskTwo() throws InterruptedException { if (Banks.FALADOR_WEST.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.FALADOR_WEST); } return 700; } public int taskThree() throws InterruptedException { if (Banks.EDGEVILLE.contains(myPosition())) { stop(false); } else { combat.toggleAutoRetaliate(false); getWalking().webWalk(Banks.EDGEVILLE); } return 700; } }
  24. I've though about adding something like that, but either way, what you're experiencing is a problem and shouldn't be happening. Does it occur when the bot attacks something, the monster reverses, and bot bot tries to go after it still? Its the only way I could see that happening?
  25. Arcus doesnt exist anymore. You were scammed.

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.