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.

Isolate

Java Lifetime Sponsor
  • Joined

  • Last visited

Everything posted by Isolate

  1. as for the dropping you could try something like: void dropAllExceptA(String...names) throws InterruptedException { if(Tab.INVENTORY.isOpen(this.bot)){ for(int i = 1; i < 29; i++){ Item item = inventory.getItemInSlot(i); if(item != null && !item.getName().equals(names)){ item.interact("Drop"); sleep((long) random(0, 0)); } } }else{ tabs.open(Tab.INVENTORY); sleep((long) random(0, 0)); } } void dropAllExceptB(String...names) throws InterruptedException { if(Tab.INVENTORY.isOpen(this.bot)){ Item[] items = inventory.getItems(); if(items != null) { for (int i = 0; i < items.length; i++) { Item item = items[i]; if (item != null && !item.getName().equals(names)) { item.interact("Drop"); sleep((long) random(0, 0)); } } } }else{ tabs.open(Tab.INVENTORY); sleep((long) random(0, 0)); } } i dont actually know if there's alot of difference between the methods but you could alter the length of sleeps to make it quicker Yes i wrote 29.
  2. You know. i totally didnt gather it was meant to be dirty until you specified. that bit about your personal pleasures being satisfied followed by a wink, went straight over my head. thanks for clarification.
  3. I feel like something is wrong here. edit: i'm assuming you removed something before posting the script, a few lines somewhere, otherwise that error makes no sense
  4. Gave me a fun idea. Whats better about an enum compared to having a list of areas in a separate class?
  5. Isolate replied to Isolate's topic in Archive
    that'd require me to make an account and pay for membership :P all my past scripts i could make using logic and not need to waste my money
  6. Reuse in which way, more than one time in the same script or across multiple?
  7. Well i don't see the point in coding more than you have to... Sure this: public enum Location { //your pre-definding the value of whatever you need. AREA_ONE(new Area(3092, 3246, 3095, 3240)), AREA_TWO (new Area(3215, 9623, 3219, 9620)), AREA_WHATEVER_YOU WANT (new Area(3207, 3220, 3210, 3216)), ; //these are the private fields you pre-definded private Area area; //constructor add what values you need to pre-define private Location(Area area){ this.area = area; } //these are simple getter methods. //setter method arent allowed because the values are pre-fined so they are basically static. public Area getArea(){ return this.area; } } Looks great and all but why when Area AREA_ONE = new Area(3092, 3246, 3095, 3240); Area AREA_TWO = new Area(3215, 9623, 3219, 9620); Area AREA_WHATEVER_YOU_WANT = new Area(3207, 3220, 3210, 3216); Would do the same thing or even storing it it a lil nooby class like public class Areas { static Area AREA_ONE = new Area(3092, 3246, 3095, 3240); static Area AREA_TWO = new Area(3215, 9623, 3219, 9620); static Area AREA_WHATEVER_YOU_WANT = new Area(3207, 3220, 3210, 3216); } would do the same thing It might just be me being super lazy but i see no point in over complicating the situation Someone plz enlighten me.
  8. Isolate replied to Isolate's topic in Archive
    I can see alot of threads for magic scripts, do none of them work? :P
  9. Isolate replied to Isolate's topic in Archive
    Should have chosen better wording
  10. Isolate posted a topic in Archive
    Want to see if i've still got it. Give me something simple i can play with please
  11. Yes, but the problem here is how to stretch out the time before anything repeats :3
  12. Hi

    Isolate replied to Isolate's topic in Spam/Off Topic
    Soo.... Where'd Everyone Go..... Serisouly..... This place is ded 6 people commented on my thread, and none are h8, something is wrong.
  13. Hi

    Isolate replied to Isolate's topic in Spam/Off Topic
    Your name changed color
  14. Hi

    Isolate posted a topic in Spam/Off Topic
    Well this place has gotten kinda quite hasn't it
  15. What's grammar 0.0
  16. Did osbot loose the ability to interact with widgets? + the lack of checks is intense
  17. If for some reason or another the debug option 'location' doesn't show z/Plane. you could always:
  18. Does player location debug show it? or you could just make a script to log it or draw your coords on the screen.
  19. Isolate replied to Joseph's topic in Scripting Help
    Oh I seee. would be same result though no?
  20. Isolate replied to Joseph's topic in Scripting Help
    I thought that's what you wanted? Feels easier.
  21. Isolate replied to Joseph's topic in Scripting Help
    Ffs, editing post on my phone just fucked up te formattiñg, I'll be home in two hours to fix
  22. Isolate replied to Joseph's topic in Scripting Help
    Sorry if this is wrong, had < 5 to do it. you get the gist though... fix and use: Position[] areaBounds(Position tile1, Position tile2){ List<Position> tiles = new LinkedList<Position>(); //TOP if(tile1.getX() > tile2.getX()){ for(int i = tile1.getX(); i != tile2.getX(); i--){ tiles.add(new Position(i, tile1.getY(), tile1.getZ())); } }else if(tile1.getX() < tile2.getX()){ for(int i = tile1.getX(); i != tile2.getX(); i++){ tiles.add(new Position(i, tile1.getY(), tile1.getZ())); } } //Side 1 if(tile1.getY() > tile2.getY()){ for(int i = tile1.getY(); i != tile2.getY(); i--){ tiles.add(new Position(tile1.getX(), i, tile1.getZ())); } }else if(tile1.getY() < tile2.getY()){ for(int i = tile1.getY(); i != tile2.getY(); i++){ tiles.add(new Position(tile1.getX(), i, tile1.getZ())); } } //side 2 if(tile2.getY() > tile1.getY()){ for(int i = tile2.getY(); i != tile1.getX(); i--){ tiles.add(new Position(tile2.getX(), i, tile2.getZ())); } }else if(tile2.getY() < tile1.getY()){ for(int i = tile2.getY(); i != tile1.getX(); i++){ tiles.add(new Position(tile2.getX(), i, tile2.getZ())); } } //bottom if(tile2.getX() > tile1.getX()){ for(int i = tile2.getX(); i != tile1.getX(); i--){ tiles.add(new Position(i, tile1.getY(), tile1.getZ())); } }else if(tile2.getX() < tile1.getX()){ for(int i = tile2.getX(); i != tile1.getX(); i++){ tiles.add(new Position(tile2.getX(), i, tile2.getZ())); } } //convert list to array, return array or convert constructor to list return null; }
  23. I must be missing something, what did you need help with?
  24. Good to see someone else finally bothered to make one of these.

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.