Jump to content

Loot Alert


Recommended Posts

Posted (edited)
1 hour ago, Proxina said:

So back in the days of D3 with WW Barbs a program was created to alert you when something dropped off screen that you couldn't see. I'm wondering if the same thing could be made for OSRS to give a sound notification when something drops and you aren't tabbed in.

Yes it's pretty straight forward to do;

	List<GroundItem> groundItem = groundItems.getAll();
	String[] wantedItems = {"Visage", "Monkfish", "Yo mama"};
	//is the list empty?
	if(!groundItem.isEmpty()){
		//loop ground items
		for(int i=0;i<groundItem.size(); i++){
			//loop each wanted item
			for(int j=0; j<wantedItems.length; j++){
				//check if ground item is in our wanted list
				if(groundItem.get(i).getName().contains(wantedItems[j])){
					//make a beep
					Toolkit.getDefaultToolkit().beep();
				}
			}
		}
	}

Edit:

After rereading your OP, this will only work within the render of the client. After OSBuddy released the HD mode, the server render distance (for items, npcs) got heavily reduced. So you're only able to detect items/npcs within the default render distance of the rs client

Edited by Zappster

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...