Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.startsWith("raredrops")) {
- try {
- String[] args = playerCommand.split(" ", 2);
- for (int i = 0; i < NpcHandler.maxListedNPCs; i++) {
- if (NpcHandler.NpcList[i] != null) {
- if (NpcHandler.NpcList[i].npcName.equalsIgnoreCase(args[1].replaceAll(" ", "_"))
- || NpcHandler.NpcList[i].npcName.equalsIgnoreCase(args[1].replaceAll(" ", " "))) {
- if (NPCDrops.rareDrops.get(NpcHandler.NpcList[i].npcId) != null) {
- c.getPA().showInterface(47000);
- for (int p = 0; p < 100; p++) {
- c.getPA().sendFrame126("", 47016 + p);
- }
- c.getPA().sendFrame126(
- "@red@NPC NAME: " + NpcHandler.NpcList[i].npcName.replaceAll("_", " "), 47016);
- for (int j = 0; j < NPCDrops.rareDrops.get(NpcHandler.NpcList[i].npcId).length; j++) {
- c.getPA()
- .sendFrame126(
- (j + 1) + ". "
- + ItemAssistant.getItemName(NPCDrops.rareDrops
- .get(NpcHandler.NpcList[i].npcId)[j][0])
- + ", Amount: "
- + NPCDrops.rareDrops.get(NpcHandler.NpcList[i].npcId)[j][1],
- 47018 + j);
- }
- return;
- }
- }
- }
- }
- c.sendMessage("This NPC cannot be searched.");
- } catch (Exception e) {
- c.sendMessage("::raredrops NPC NAME");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement