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.

HexMurder

Members
  • Joined

  • Last visited

Everything posted by HexMurder

  1. I'm not talking about a source for an anti-ban. Just a source. Any good one.
  2. I appreciate all the comments, and thanks for the information about anti-ban. But, I'm still looking for a well written source to study here ?
  3. Right, I get the whole idea of anti ban. I just want to see how people already implement it into their code.
  4. I'm a fairly experienced software developer and recently decided I wanted to learn to write bots. I have written a few very basic bots just to get the hang of it. I.e. power chopper, g.e. looter, a fishing bot that gets its own wood and cooks the fish. These are all useful of course, but they are very basic. And the code I have written for them is very procedural, and i am sure they would be detected very easily. I'm just looking for some basic, clean sources, that implement some anti ban methods that i can study. I have looked at a bunch of things in the snippet section but most of them are exactly that. Snippets. I'm by no means looking to copy / paste a source, I just want to learn from someone who already knows what they are doing. Also, at what point would it be acceptable to apply for scripter rank? Thanks in advance guys.
  5. I see.. Thanks. Is there a way to look up items in the api already? i'm currently using the grandExchange.buyItem method, which always results in the item being bought, and I just want to search it, and then query the price.
  6. Trying to get the price per item of the item I am currently looking at in the GE. i.e. the bot looks up a law rune and the value is "367" by default, so i want to retrieve the "367". I tried using the getOfferPrice method but it always returns 0. my code is below. Thanks in advance. grandExchange563,"Law rune", grandExchange.getOfferPrice(), 1; also tried grandExchange563,"Law rune", getGrandExchange.getOfferPrice(), 1;
  7. HexMurder posted a topic in Archive
    3 questions i believe are fairly simple. First question: (Main reason for posting) How do i randomize my getWalking().webWalk? Every time my bot runs back from the bank to my "Area" that i have defined, he always stands on the same block upon reaching his destination. So how would i randomize this so that he always walks somewhere withing my defined area, but not to the same point every time? Second question being: when i level up, how do i get the bot to click continue instead of ignoring it and continuing it's grind? Third: Why is my onMessage not working? Tried several things and can't seem to get it to register at all. public void onMessage(String message) { if(message.contains("You get some willow logs.")) { itemsGained++; } }
  8. would that make any difference if i use the same ip on all 4 accounts?
  9. What's a safe way to trade the gold i gather from my bots to my main? (using same ip for all)
  10. I'm sure this has been answered a hundred times over but i couldn't find the answer. (probably using wrong keywords) but anyways, i was just wondering if it was safe to have a bot or two running at the same time that i am playing legit on my main account. Same ip. So far i have been either strictly botting or strictly playing on my main. Any insight would be nice. Thanks guys.
  11. Thanks. I will look into using states. Not sure what they are but i will find out soon enough i'm sure. How would you recommend i make this less intensive right now? without using states? adding something like this? if(myPlayer().isAnimating()) { sleep(random(500, 4500)); }
  12. Can you go over (idk what they are technically called, but i'm gonna call them mouse events) mouse events? Like hovering the mouse over a skill to check the xp, or moving it off screen, etc?
  13. Thanks man. Do you know of any well written sources i could take a look at by chance? been looking around and most of them are very very messy. (Not to say that mine is clean lol). I'm just trying to get a feel for how the api works, and usually reading others code is a quick way to pick it up.
  14. the return of that function is a sleep? I had no clue. Thanks..
  15. i have no idea. Not sure how i would check. It seems that adding sleep(100); fixed it. Not sure why it was necessary. is this normal behavior? public final int onLoop() throws InterruptedException { if(inventory.isFull()) { bank(); } else { chop(); sleep(100); //this is what fixed it } return 0; } [/CODE]
  16. I am brand new to java / scripting. I have a background in C# and C++ so it hasn't been difficult for me to pick up thus far. (been playing around for about 2 hours now). But i just finished my first semi useful script that just chops willows, and banks them. It does it's purpose how i intended it to. However, when i am actually cutting the trees my CPU usage jumps from 5% to 60+%. and when i stop to go bank it jumps back down to 5% again. Maybe it's my sleep methods or something? can anyone give me some insight on my nooby mistake? lol thanks. package Woodcutter; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.event.WebWalkEvent; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "HexMurder", name = "A Test Script", info = "Null", version = 0.1, logo = "") public final class WC_Script extends Script { final Area TREE_WILLOW_DRAYNOR = new Area(3081, 3223, 3092, 3239); @Override public final void onStart() { log("WC test bot launhced."); } @Override public final void onExit() { log("WC test bot closed."); } @Override public final int onLoop() throws InterruptedException { if(inventory.isFull()) { bank(); } else { chop(); } return 0; } public void chop() throws InterruptedException { if(TREE_WILLOW_DRAYNOR.contains(myPosition())) { Entity tree = getObjects().closest("Willow"); if(tree != null) { if(tree.isVisible()) { if(!myPlayer().isAnimating() && !myPlayer().isMoving()) { tree.interact("Chop down"); sleep(random(800, 1600)); } } else { getWalking().webWalk(tree.getPosition()); } } } else { getWalking().webWalk(TREE_WILLOW_DRAYNOR); } } public void bank() throws InterruptedException { if(Banks.DRAYNOR.contains(myPosition())) { Entity bankbooth = getObjects().closest("Bank booth"); if(bankbooth != null) { bankbooth.interact("Bank"); sleep(random(1000, 2000)); } if(getBank().isOpen()) { bank.depositAll(1519); sleep(random(900, 1800)); } } else { getWalking().webWalk(Banks.DRAYNOR); } } } [/CODE]
  17. Great tutorial. I have a background in C# and C++ so this was very easy to pick up with your guide. Keep it up man! would love to see you finish this thing.

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.