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.

imancity

Trade With Caution
  • Joined

  • Last visited

Everything posted by imancity

  1. Will do. My roommate is in grad school for Computer Science so I was just having him do this with me, and I wanted to give it a shot myself. I'll def learn some Java to make this easier on me.
  2. For the second part where you want me to remove the */, it makes my whole bunch of code green. Doesn't seem right.
  3. I've never written code, let alone scripts, but I will for sure pay attention and be careful. Just trying to run my first one and then I'll study and see what does what. I learn best through trial and error. Thanks for the help everyone! I'll run it and see what happens, will post errors here.
  4. So I tried following the Tea Thiever tutorial and make my own simple Kebab Buyer to learn a little, and this is what I have so far. I compiled and tried it and nothing happens. The logger shows some error I could post if need be, but I closed out of it. The bot does absolutely nothing. FYI, I am completely new to scripting/programming so I may have made some completely newby mistakes and didn't realize at all. Here's the code: */ import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Kebab Buyer", author = "Faris", version = 1.0, info = "first script", logo = "") public class KebabBuyer extends Script { @Override public void onStart() { log("Let's buy some Kebabs!"); //Code here will execute before the loop is started } private enum State { BUY, BANK, WAIT }; private State getState() { if (inventory.contains("Coins")) return State.BUY; else stop(); if (inventory.isFull()) return State.BANK; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case BUY: getWalking().walk(new Position(3274, 3180, 0)); npcs.closest("Karim").interact("Talk-to"); if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } else if (dialogues.isPendingOption()) { dialogues.selectOption("Yes please."); } case BANK: getWalking().walk(new Position(3270, 3168, 0)); if (!getBank().isOpen()){ getBank().open(); } else { bank.depositAll("Kebab"); getBank().close();} case WAIT: return random(100,400); //The amount of time in milliseconds before the loop starts over } //@Override //public void onExit() { log("Thanks for using my script!"); //Code here will execute after the script ends //@Override //public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) return random(200,300); } }
  5. Could I try the Perfect Crabs? I love your ranging guild script, it's flawless except for one detail, it should log out when out of money. I had too little and mine mindlessly tried playing for an extra 3 hours last night with no coins, hope I didn't set off any ban sensors.

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.