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 a post in a topic in Scripting Help
    The for keyword is meant to loop through an array/list
  2. 1 is a Room enum. 2 is an array of ObjectType 3 is an array of ConIbject
  3. What im trying to do: change the values within the third box. I was able to do it with the second box. But it wont let me do that for the third box. when ever i choose an option from the second box. it will highlight the one i chosed, then it will un-highlight for no reason. If anybody knows of a solution let me know
  4. you could also create an area using one tile. Check that one tile to see if a door is null or not. Because the position of a tile changes when you open and close the door.
  5. Joseph replied to Pinapple's topic in Archive
    this is help you out, not sure if they changed id or not. http://osbot.org/forum/topic/42894-herb-snippet/
  6. Joseph replied to Mikey's topic in Snippets
    no why do you ask
  7. Joseph replied to Mikey's topic in Snippets
    public int eatFood(int hp) throws InterruptedException { if (client.getSkills().getCurrentLevel(Skill.HITPOINTS) <= hp) { for (Item i: client.getInventory().getItems()) { if (i!=null && i.getDefinition().getActions()[0].equalsIgnoreCase("eat")) { client.getInventory().interactWithId(i.getId(), i.getDefinition().getActions()[0], true); } } } return 1000; } this method will only work with items that contain the action eat in the first index.
  8. Joseph replied to Apaec's topic in Snippets
    public void onPaint(Graphics g) { Graphics2D gr = (Graphics2D) g; gr.setColor(Color.black); //<----- Sets colour of rectangle gr.fillRect(7, 460, 100, 14); //<----- Sets dimensions of rectangle (x,y,width,height) }
  9. That's what we got osbot 2 API ;P
  10. Joseph replied to Mikey's topic in Snippets
    Oh because I was on my phone at the time and I still am. But I'll post it tomorrow. I was also going to tell you those tips too
  11. Joseph replied to Mikey's topic in Snippets
    There is a way easier way of do thing this.
  12. public List<Player> getPlayer(Area area) { List<Player> list = new ArrayList<Player>(); for(Player p: client.getLocalPlayers()){ if (p!=null){ if (area.contains(p)){ if (!p.getName().contains(client.getMyPlayer().getName())) list.add(p); } } } return list; } im not going to spoon feed you everything. But this method return a list of players that are within the area, not counting you of course. Now what you could do is, whoever you want to follow someone. You could loop through the new method, until you find the person you want, maybe by name, or however you want. Then you could use the MethodProvider#selectEntityOption method.
  13. I have: an empty interface - "ObjectType" a main Enum fulled with variables - "Main" and another Enum fulled with more variables. - "P" which implements the empty interface "ObjectType" with in the "Main" Enum im trying to access the "P" Enum and all its variables so with in the "Main" Enum constructor. I did this. Main(int requirement, int cost, ObjectType... objectType) so within the fixed variable im trying to add in the whole "P" Enum as one of the fixed variable arguments. So i did this. PARK(1, 1000, P.values()); Is this the proper way of doing this? Im not too sure i haven't tried it out yet. This idea popped into my head, this is the first time ive done this.
  14. Joseph replied to Tsopic's topic in Scripting Help
    i was going to ask the same thing :P
  15. Why do you say that, the osbot 2 API is basically the same as, and even better than osbot 1 API. Also change is usually better
  16. Nice little competition good luck
  17. Joseph replied to Joseph's topic in Snippets
    well when you want to deposit stuff into the bank, you need to open bank, then open the bag, then deposit items thats why i have a depositAllIntoBank() with will open the bag for you and deposit all the item, using the little button.
  18. Joseph replied to Joseph's topic in Archive
    well i have someone making me a pint as we speak so no need
  19. Joseph replied to Joseph's topic in Archive
    sorry for changing up my paint location -.-
  20. Joseph replied to Joseph's topic in Archive
    Jose.dpay
  21. Joseph replied to Joseph's topic in Archive
    i like it, and i dont mind waiting. Lets just see what happens :p
  22. Joseph posted a topic in Archive
    im requesting a paint for my Construction script, im looking for a chatbox size paint.
  23. String status; switch(getState()){ case ATTACK: status = "Attack"; break; } why dont you simply do this. It isnt that hard. Then simply draw status
  24. Just do it the way notoriousP said. I do that in my script all the time. Works great

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.