kanezp 5 Posted April 15, 2020 Report Share Posted April 15, 2020 When killing bosses, even if you get bones you get an announcement call, even when not a rare drop. if (IntStream.of(bosses).anyMatch(id -> id == npc.npcType)) { PlayerHandler.nonNullStream() .filter(p -> p.distanceToPoint(player.absX, player.absY) < 10 && p.heightLevel == player.heightLevel) .forEach(p -> { if (item.getAmount() > 100) p.sendMessage("@mag@" + Misc.formatPlayerName(player.playerName) + " received a rare drop: " + Misc.format(item.getAmount()) + " x " + Item.getItemName(item.getId()) + ", congratulations."); else p.sendMessage("@mag@" + Misc.formatPlayerName(player.playerName) + " received a rare drop: " + Item.getItemName(item.getId()) + ", congratulations."); How do I change this so that only rare drops show? Link to comment Share on other sites More sharing options...
Rythm 1 Posted April 15, 2020 Report Share Posted April 15, 2020 are the bones added to the rare drops? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now