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.

Joseph

Trade With Caution
  • Joined

  • Last visited

Everything posted by Joseph

  1. Joseph replied to Joseph's topic in Snippets
    i really would like that, i know you could use clipping flags, for obstacle handling but ive never used them so i dont know
  2. It uses the local path finder. When using entity, they must have been loaded. Also canReach() is bugged when checking to see if your on top of the position. So i tweaked it a bit. This doesnt contain obstacle handling, im still a bit confused on how im going to add it in. If you have an idea i would love to hear it. import java.util.LinkedList; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.util.LocalPathFinder; import org.osbot.rs07.input.mouse.MiniMapTileDestination; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.script.Script; public class Walking { /* * Doesn't contain obstacle handling. */ private LocalPathFinder pathFinder; private Script script; public Walking(Script script) { this.script = script; this.pathFinder = new LocalPathFinder(script.bot); } public boolean canReach(Position pos) { if (script.myPlayer().getPosition().equals(pos)) return true; else return script.map.canReach(pos); } public boolean setRun(int amount) { if (script.settings.getRunEnergy() >= amount && !script.settings.isRunning()) { if (script.settings.isDataOrbsActive()) return script.interfaces.getChild(548, 39).interact(); else return script.settings.setRunning(true); } return script.settings.getRunEnergy() >= amount && script.settings.isRunning(); } public boolean walkMiniMap(int threshold, Position pos) throws InterruptedException { MiniMapTileDestination des = new MiniMapTileDestination(script.bot, pos); if (canReach(pos)) { int fail = 0; script.mouse.click(des); //script.log("tries: " +fail); while (script.myPosition().distance(pos) > threshold && fail < 10) { MethodProvider.sleep(500); if (!script.myPlayer().isMoving()) fail++; } return fail != 10; } return false; } public void walkPath(int threshold, Entity entity) throws InterruptedException { LinkedList<Position> path = pathFinder.findPath(entity); if (pathFinder.foundPath()) { for (Position pos: path) { if (pos != null && script.myPosition().distance(pos) > threshold) { if (canReach(pos)) { this.walkMiniMap(threshold, pos); }else{ script.log("cant reach pos: " +pos.toString()); } } } }else script.log("error looking for path"); } public void walkPath(int threshold, Position endPos) throws InterruptedException { LinkedList<Position> path = pathFinder.findPath(endPos); if (pathFinder.foundPath()) { for (Position pos: path) { if (pos != null && script.myPosition().distance(pos) > threshold) { if (canReach(pos)) { this.walkMiniMap(threshold, pos); }else{ script.log("cant reach pos: " +pos.toString()); } } } }else script.log("error looking for path"); } }
  3. fuck it, fuck jagex
  4. @Divinity please move this to the right section
  5. check the op
  6. you dont bot but you still make scripts. How do i know your not lying . But naw, that some flaw shit, you should try fighting it.
  7. correct me if im wrong, but i havent seen any random that disable all tabs. and i love randomization
  8. That shits been fixed since 2.1.19
  9. else { // DEAD SPACE Rectangle deadSpaceLeftColumn = new Rectangle(520, 205, 25, 260); Rectangle deadSpaceRightColumn = new Rectangle(740, 205, 25, 260); Rectangle deadSpaceRightFromMap = new Rectangle(720, 10, 45, 155); Rectangle[] deadSpaceAll = new Rectangle[] { deadSpaceLeftColumn, deadSpaceRightColumn, deadSpaceRightFromMap }; int i = MethodProvider.random(0, deadSpaceAll.length - 1); if (deadSpaceAll[i] != null && MoveMouse.toRectangle(script, deadSpaceAll[i], true, 3)) { MethodProvider.sleep(MethodProvider.random(600, 900)); } } where you have this at is a bit useless since. The code below will never be empty nor null if (openableTabs != null && !openableTabs.isEmpty()) { So you should add a boolean to switch between both methods. Also, rather then putting the tabs in an arraylist couldnt you loop through all tab, add a boolean that check to see if it isnt open. Interact with it and add a break statement to end the loop. Plus, why does the method return item is selected true return script.inventory.isItemSelected();
  10. its better because even though you iterating through all players. You not consistently checking to see if that player is interacting with you especially with people that are like 10 tiles away. Also i was talking about this method script.myPlayer().getArea(radius);
  11. I think there a method that creates an area around an entity. You could use that, and loop through everybody in the area to see if they are interacting with you. Also it should be smaller or equal to one
  12. Joseph replied to Jack's topic in Scripting Help
    you could always use a enhanced for loop for (Item item: script.inventory.getItems()) { if (item != null && item.getName().equalsIgnoreCase(argument)) { blah blah } }
  13. im just wonder, i want to try out local path finder. they have a method that will find a path for you, using findPath(entity) but what if is the entity isnt in the loaded region. how would that method work? Also i read somewhere that local path finder returns npe. That there another way to do it. How? Thank you to who ever, is trying to help me out
  14. This is why @Ely said to be be patience, because this is a new market. We dont know what we want, and what other people want. So were trying to work on it. The new market hasnt been out for that long.
  15. Joseph replied to Joseph's topic in Snippets
    That's on the todo list, I'll hit you up soon, I have other things a bit more important, but I will comeback and update it soon
  16. Joseph replied to Joseph's topic in Snippets
    Yes I typed it all
  17. support++
  18. or you could use my script, which i feel might be better link: http://osbot.org/forum/topic/53910-ds-aio-crafter/
  19. This is exactly the same reason why, we moved into a monthly payment. Because of the word lifetime. Nothing is life time, so your tell me because you brought a script from osbot 1 lifetime. We should give you osbot 2 scripts. That doesn't work out like that. Osbot 1 & 2 are to different products. It like saying I brought free runs 1, and you guys came out if free runs 2. I should get it for free because I had free runs 1, and they are obsolete. It doesn't work like that. I say if you had a lifetime script, and it was longer then a month. No refund. If you had a monthly script, and you didn't get to use up the whole month, you could get a refund. If you had lifetime, and was able to use it for a month, then you could get a refund
  20. Is that's a good thing or bad thing
  21. Where would it go under, I'm down for one
  22. Speak for yourself
  23. i mean i like to post them up so everybody could see it. Maybe even for one of the managers @Ericthecmh to see them.
  24. created my own method, because the osbot api once is bugged. public boolean bankWithdrawModeAsItem() { return script.configs.get(115) == 0; } public boolean setBankWithdrawMode(boolean asItem) { if (script.bank.isOpen()) { int parent = 12; int child = asItem ? 19: 21; if (script.interfaces.getChild(parent, child) != null) return script.interfaces.getChild(parent, child).interact("item", "note"); } return false; }

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.