yesterday i tried to code a decent lootshare for delta but every time i tried it disabled NPC drops
here's the codes i think is used if i should make a decent lootshare
in NPC.java
Code:
		public int getKiller() {
		int Killer = 0;
		int Count = 0;
		for (int i = 1; i < PlayerHandler.maxPlayers; i++) {
			if (false) {
				Killer = i;
				Count = 1;
			} else {
				if (Killing[i] > Killing[Killer]) {
					Killer = i;
					Count = 1;
				} else if (Killing[i] == Killing[Killer]) {
					Count++;
				}
			}
		}
		return Killer;
	}
in NPCHandler.java
Code:
public void MonsterDropItems(int NPCID, NPC npc) {
		try {
			int totalDrops = dropCount[NPCID] / 3;
								client p = (client) server.playerHandler.players[npc
							.getKiller()];//
			if (totalDrops > 0) {
				// Random roller = new Random();
				for (int i = 0; i < dropCount[NPCID]; i += 3) {
					double roll = Math.random() * 10000;
										if (p != null) {
						if (p.debug)
							p.sM("Roll:  " + roll + ", Itemid:  "
									+ drops[NPCID][i] + ", amt:  "
									+ drops[NPCID][i + 1] + ", percent:  "
									+ drops[NPCID][i + 2]);
					}
					if(p.playerEquipment[p.playerRing] != 2572){
					if (roll <= drops[NPCID][i + 2]) {
						if (p != null) {
							if (p.debug)
								p.sM("Rewarding " + drops[NPCID][i]);
						}
						if ((drops[NPCID] != null) && (npc != null))
							ItemHandler.addItem((int) drops[NPCID][i],
									npc.absX, npc.absY,
									(int) drops[NPCID][i + 1], npc.getKiller(),
									false);
}
						/*if ((drops[NPCID] != null) && (npc != null))
							ItemHandler.addItem((int) drops[NPCID][i],
									npc.absX, npc.absY,
									(int) drops[NPCID][i + 1], npc.getKiller(),
									false);
						}*/}
					if(p.playerEquipment[p.playerRing] == 2572){
					if (roll/1.10 <= drops[NPCID][i + 2]) {
						if (p != null) {
							if (p.debug)
								p.sM("Rewarding " + drops[NPCID][i]);
						}
						if ((drops[NPCID] != null) && (npc != null))
							ItemHandler.addItem((int) drops[NPCID][i],
									npc.absX, npc.absY,
									(int) drops[NPCID][i + 1], npc.getKiller(),
									false);
						}}
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
can someone give advice on what to change?