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.

Polymorphism

Members
  • Joined

  • Last visited

Everything posted by Polymorphism

  1. For my situation this worked, but still looking for something that is universal for Polygon Area. safeArea = new Area(new Position(sX - is.maxDistance, sY - is.maxDistance, sZ), new Position(sX + is.maxDistance, sY + is.maxDistance, sZ)); safeTiles = safeArea.getPositions(); bounding = new Position[safeTiles.size()]; for (int i = 0; i < safeTiles.size(); i++) { if (safeTiles.get(i).distance(startPosition) == is.maxDistance) bounding[i] = safeTiles.get(i); }
  2. Yeah, mine is a variable Polygon area which is dynamically generated based on player position and settings. That's where my issue comes into play.
  3. I've tried all sorts of different way to get this. What I'm look for is the outside tiles of an Area or Position[] I hate to ask on here, but I really could use this help if anyone has any input. Thank you ahead of time.
  4. I added a shit ton of items with updated ids. itemIdNames.php now outputs all ids and names in the format below without new lines id:name; Also, clicking on the 2 small code boxes will navigate you to that url
  5. This explains the need i had to just scrape jagex's website.
  6. This seems like the intellij equivalent of what I posted. Although I'm not sure if what I posted would work, never tried it with source files. Just know of it from experience
  7. I've had the need to write both of these in a script currently under development. RSBuddy's price API didn't seem to update often enough (or just not return the proper data). The PriceLookup API uses Jagex's JSON API for their website. The Item ID to/from Name API uses a (relatively modern) list of IDs and Names which I added to database. Simply change the function being executed in the URL and enter the proper argument. Downloads can be found on my website below http://polycoding.com/osb/ Old School RuneScape Id to/from Name API Get an item's ID from its name. http://polycoding.com/osb/itemIdNames.php?getId=ITEM_NAME Get an item's name from its ID. http://polycoding.com/osb/itemIdNames.php?getName=ITEM_ID Polycoding Old School RuneScape Grand Exchange Price Lookup Usage public PriceLookup prices = new PriceLookup(); System.out.println(prices.getPriceById(1333)); //print price for Rune Scimitar by inputting ID System.out.println(prices.getPriceByName("rune scimitar")); //print price for Rune Scimitar by inputting name System.out.println(prices.getId("rune scimitar")); //getting the ID of Rune Scimitar using Polycoding API
  8. No problem, I have been thinking the same thing honestly. Gonna follow to see if someone has a viable answer.
  9. I don't use Intellij very much, so I'm not 100% sure but give them links a read and try https://www.jetbrains.com/help/idea/2016.3/configuring-module-dependencies-and-libraries.html#add_module_dependency https://blog.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/
  10. The following post is for eclipse Untested, but here's an idea. (seriously not sure if it'll work, never done it before) When you get ready to export and what all them libraries to go with your script jar, open them in the project window and Export..Jar file On the export (not as runnable jar) screen in eclipse tick the checkbox for each of the projects which is a library (given you have the source code). You'll probably have to change your dependencies from external jars to include those projects for your api(s)
  11. So assuming threshold=1 would be exact position or threshold=0 would be? I'm giving this a go, still new to this API so haven't learned the ins and outs
  12. In one of my scripts, there is a safespot tile the player should be moved back to under certain conditions. I have the conditions laid out properly, as the webwalking event is firing (also another issue, seems to take it at least 2 seconds to start walking) It's obvious that the final destination had not been reached but it's sitting there indefinitely saying it had been, causing the script to hang a flood the logger. (the safespot is that tucked away corner of the bones) Below is some code, please don't nag about the sleeping. Dynamic sleeping is irrelevant in this snippet
  13. Meh, looks overcomplicated to hell. You'd still have to parse out the quantity by going with substring and trim. I found it easier on my eyes to do it this way, and the speed difference is so little it's laughable. Now if we were doing like 20k of these in one go this would be done a little different.
  14. Takes a little bit of regex but it's simple to do. Instead of adding the item name to a list, in my loop() I do if valuableLootName !empty then force loot the one item, then resume normal function. String tmpLootName = ""; if (msg.contains("aluable drop")) { tmpLootName = msg.replace("<col=ef1020>", "").replace("</col>", "") .replaceFirst("(.{0,15})", "").replaceFirst("(\\d x)", "") .replaceFirst("\\(([^\\)]+)\\)", "").trim(); log("DROP MESSAGE: " + tmpLootName); valuableLootName = tmpLootName; }
  15. holy hell, mustve sucked writing this up. Gotta be only of the only efficient ways to do it though
  16. This is awesome, I love webwalking lol. Thank you!
  17. Good to know, do you know how it'll react to not having the key to get to hill giants in edge dung
  18. does it handle doors, ladders, etc? is the stronghold of security mapped for webwalking? if so, do the bot take care of the questions? if not, whats the best method to take care of navigating the stronghold & answering the questions. I believe that's it for now...
  19. Instead of checking your health, check if youre under attack. Also use dynamic sleep, not that while static sleep crap
  20. This? " [OPEN] SDN Upload Requests " http://osbot.org/forum/forum/181-open-sdn-upload-requests/
  21. This script will curse whatever NPC name you type, until you can't any more. It will attempt to walk back to the starting position if moved Will wait a few seconds after each "npc is already cursed" (or whatever the game says) Logout when can't cast anymore and dumps stats in logger 1-28=-1 = Script hasn't really had any testing by me, but is based off my teleporter that had a few changes made to it. DOWNLOAD POLY CURSER HERE
  22. Quick n easy, would do it again! Bought 4m and it was easier than buying condoms.
  23. To those of you who were interested in seeing my script release. It's a tad later than "tomorrow" but i decided to add a few more features and improve stability. http://osbot.org/forum/topic/114629-poly-powertrainer-powerfight-powerbones-powerlooting/
  24. Thank you everyone! You guys seem a bit more active than other places. You mind me asking, where can I find information on scripter reqs? I've done a few searches and skimmed the topics but can't find much thats relevant.

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.