Jump to content

Loot Alert


Proxina

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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