Skip 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.

Chris

Scripter II
  • Joined

  • Last visited

Everything posted by Chris

  1. Yeah i started with the logic loop style but might switch to the state method
  2. Chris replied to daamurda's topic in Archive
    :salty:
  3. Post examples if you want *scripting*
  4. Chris replied to daamurda's topic in Archive
    with cannon it will be faster
  5. i too hate washed out jeans
  6. Chris replied to daamurda's topic in Archive
    like 6hrs max maybe less
  7. new
  8. Chris replied to ciel's topic in Archive
    import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import java.awt.*; @ScriptManifest(author = "Sinatra", info = "Grabs J.O.W", name = "S_JWGrabber", version = 1.0, logo = "") public class S_JWGrabber extends Script { private static final Position[] PATH_TO_BANK = { new Position(3293,3165,0), new Position(3295,3172,0), new Position(3293,3178,0), new Position(3286,3179,0), new Position(3277,3173,0), new Position(3271,3167,0) }; private static final Position[] PATH_TO_NPC = { new Position(3271,3167,0), new Position(3277,3173,0), new Position(3286,3179,0), new Position(3293,3178,0), new Position(3295,3172,0), new Position(3293,3165,0), new Position(3302,3165,0) }; private static final Area NPC_AREA = new Area(3289,3160,3303,3165); @Override public void onStart() { log("Time to grab some Jugs of Water ;)"); if (!getClient().isLoggedIn()){ log("Please login before using!"); } } @Override public int onLoop() throws InterruptedException { if (inventory.isFull() && getInventory().contains("Jug of water")){ getLocalWalker().walkPath(PATH_TO_BANK); //BankChecks RS2Object bankBooth = objects.closest("Bank Booth"); if (bankBooth != null && !bank.isOpen()) { if (bankBooth.interact("Bank")) { new ConditionalSleep(10000) { //returns if true (i hope) @Override public boolean condition() throws InterruptedException { return getBank().isOpen(); } }.sleep(); } } if (bank.isOpen()) { //do banking getBank().depositAll(); } else { bank.open(); sleep(random(400, 700)); } }else{ if (getInventory().isEmpty() && (!NPC_AREA.contains(myPlayer().getPosition()))){ getLocalWalker().walkPath(PATH_TO_NPC); sleep(random(300,700)); } NPC npc = npcs.closest("Hassan"); if (!dialogues.inDialogue()){ if (npc != null){ if (npc.isVisible()){ npc.interact("Talk-to"); sleep(random(300,600)); } } }else{ //handle dialogue if (getDialogues().isPendingContinuation()){ getDialogues().clickContinue(); } if (getDialogues().isPendingOption()){ getDialogues().selectOption(2); sleep(random(300,500)); getDialogues().clickContinue(); sleep(random(300,500)); getDialogues().clickContinue(); sleep(random(300,500)); getDialogues().clickContinue(); } } } return (random(300,600)); } @Override public void onExit() { log("Thanks for trying it out!"); } @Override public void onPaint(Graphics2D g) { } } This is a rough draft. I am new to scripting but this should get the job done. There is no paint and it is as simple as it gets im sure the other scripters can fix the issue Testing in f2p W394 EDIT: Known bug = when returning to "Hassan" it will bank check twice. CBA to fix XD im busy now Check the OSBOT API for better structure EDIT: this is it in action interacting(GIF): http://gyazo.com/9d84ee932dc49bfa3e9d849e8411d875 If inventory is full(GIF): http://gyazo.com/db19c2e3f13cdbc745a54da7920deb75 Banking issue (GIF): http://gyazo.com/1f2cc6de6d75dce9a25367b7f674fdd7
  9. Chris replied to Chris's topic in Scripting Help
    I ended up using the getskill method and it works ;) Thanks for the extra info
  10. Chris replied to Chris's topic in Scripting Help
    Im testing it now
  11. Chris replied to Chris's topic in Scripting Help
    Okay thanks
  12. Chris posted a topic in Scripting Help
    if (!myPlayer().isAnimating() && !myPlayer().isMoving()) { if (!myPlayer().isUnderAttack() && Guard.isVisible()) { Guard.interact("Attack"); sleep(random(500, 1000)); } else { camera.toEntity(Guard); } } } if (myPlayer().getHealth() <=30 && getInventory().contains("Lobster")) { inventory.getItem("Lobster").interact("Eat"); sleep(random(600, 1200)); } I get this issue when running http://gyazo.com/32407f7a8337725e1ea21a0d621e325d It would return to attack then eat a lobster when it is already full health
  13. How do I make a .jar in IntelliJ? my skype is: osbotsinatra1
  14. Chris replied to chad0ck's topic in Archive
    Fire rune crafter?
  15. Chris replied to chad0ck's topic in Archive
    cow killer
  16. Meh I tried states but I gave up on them
  17. @Override public int onLoop() throws InterruptedException { if (!inventory.contains("Lobster")&&MONSTER_AREA.contains(myPlayer())){ if (!BANK_AREA.contains(myPlayer())){ getLocalWalker().walkPath(PATH_TO_BANK); //walk to bank }else{ RS2Object bankBooth = (RS2Object)this.objects.closest(new String[] {"Bank booth"}); if (bankBooth != null){ if (bankBooth.interact("Bank")) { //checks if it will return true new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return getBank().isOpen(); } }.sleep(); if (getBank().isOpen()){ getBank().withdrawAll("Lobster"); sleep(random(377, 544)); } } bank.close(); log("STATE:. BANKED"); } } } if (!MONSTER_AREA.contains(myPlayer())){ getLocalWalker().walkPath(PATH_TO_MONSTER); log("STATE: WALKING BACK"); } This is the code I am dealing with. I want it to go from Varrock Palace to Varrock west bank and use the booth. Then head back to the guards. What am I doing wrong here and how can I improve my code?
  18. Chris replied to Casper's topic in Archive
    I can do this 1m: skype: osbotsinatra1
  19. Chris posted a topic in Price Check
    20 att 61 str 1 def 1 pray 44 range 71 mage 47 cmb No registered email

Account

Navigation

Search

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.