Post: [PI] Rare drop announcing
03-10-2015, 01:50 AM #1
Stunz
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
    

public static final String SUPER_RARES[] = {"armadyl", "bandos", "godsword"};

public static final String RARES[] = {"dragon chainbody", "whip" , "of fury"};


    	public static final void announce(Client c, int id) {
String item = ItemAssistant.getItemName(id).toString();
for (String superRares : SUPER_RARES) {
if (item.toLowerCase().contains(superRares)) {
for (int j = 0; j < PlayerHandler.players.length; j++) {
if (PlayerHandler.players[j] != null) {
Client c2 = (Client) PlayerHandler.players[j];
c2.sendMessage("@red@"+c.playerName+" has received x1 "+item+" as a extreme rare drop!");
}
}
return;
}
}
for (String rares : RARES) {
if (item.toLowerCase().contains(rares)) {
for (int j = 0; j < PlayerHandler.players.length; j++) {
if (PlayerHandler.players[j] != null) {
Client c2 = (Client) PlayerHandler.players[j];
c2.sendMessage("@red@"+c.playerName+" has received x1 "+item+" as a rare drop.");
}
}
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Stunz for this useful post:

KillManz G

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo