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.

Simple door snippet

Featured Replies

You could also use that. Which return a rs2Object at the specific location.

client.getCurrentRigion.getObjectAtLocal(id, x, y, z);

  • Author

You could also use that. Which return a rs2Object at the specific location.

client.getCurrentRigion.getObjectAtLocal(id, x, y, z);

 

Not a huge fan of using IDs for doors and gates, used it in the past and they seem to change once in a while..

  • 1 month later...

should check if the door is already open

it does? It checks whether it is at the same location as the closed door.

i just use this

public boolean gateIsOpen() {
		
		RS2Object gate = closestObjectForName("Gate");
		if(Arrays.asList(gate.getDefinition().getActions()).contains("Open")){
			return false;
		}
		else {return true;}
	}
  • Author

 

i just use this

public boolean gateIsOpen() {
		
		RS2Object gate = closestObjectForName("Gate");
		if(Arrays.asList(gate.getDefinition().getActions()).contains("Open")){
			return false;
		}
		else {return true;}
	}

 

You might start opening doors you don't need/want to open.

You might start opening doors you don't need/want to open.

 

I usually walk up to the tile next to the door and then closestObjectforName does the trick

  • Author

I usually walk up to the tile next to the door and then closestObjectforName does the trick

 

What if a tile is next to 2 doors and the client returns the other one instead of the one you want when you request the closest? Rare situation, but I had to change mine because of one ><

  • 2 weeks later...

How about osbot creates a decent pathgenerator that handles doors. SMH.

Huge lack of skills in this dev team. inb4 ban because devs are butthurt.

If they are professional they give me a reply why they haven't done anything useful to this bot since it's release.

No decent web, no door handling, no decent equipment loading, grounditems have the wrong height, and the list goes on.

Pretty sure they correctly calculate the height of the items in osbot 2.

How about osbot creates a decent pathgenerator that handles doors. SMH.

Huge lack of skills in this dev team. inb4 ban because devs are butthurt.

If they are professional they give me a reply why they haven't done anything useful to this bot since it's release.

No decent web, no door handling, no decent equipment loading, grounditems have the wrong height, and the list goes on.

i can agree with some but http://osbot.org/osbot2_api/org/osbot/rs07/api/DoorHandler.html

  • 2 weeks later...

I use the folowing code.

If returns null: Means the door is open, else just interact with it.

 

public static RS2object getobjectAt(String name, Postion pos, Script script){

         return script.objects.closest(New Filter<RS2Object>(){

 

                 boolean match(RS2object d){

                          If(d != null  && d.getPosition() == pos && d.getName().equals("Door") && d.getDefinition() != null && Arrays.asList(d.getDefinition().getActions()).contains("Open"))

                                 return true;

                }

        });

}

 

Don't mind if I made some mistakes, just typed that in notepad at my work xD

 

 

Khaleesi x3

Edited by Khaleesi

  • Author

use this method:

 

 

public static RS2object getobjectAt(String name, Postion pos, Script script){

         return script.objects.closest(New Filter<RS2Object>(){

 

                 boolean match(RS2object d){

                          If(d != null  && d.getPosition() == pos && d.getName().equals("Door"))

                                 return door;

                }

        });

}

 

Don't mind if I made some mistakes, just typed that in notepad at my work xD

 

 

Khaleesi x3

 

Yh this is rather old :p

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

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.