and change the whole "public static class Drop {" with this one:
Code:
public static class Drop {
public static Drop create(int itemId, int rate, int minAmount, int maxAmount) {
return new Drop((short) itemId, rate, minAmount, maxAmount);
}
private short itemId;
private double rate;
private int minAmount;
private int maxAmount;
public Drop(short itemId, double rate, int minAmount, int maxAmount) {
this.itemId = itemId;
this.rate = rate;
this.minAmount = minAmount;
this.maxAmount = maxAmount;
}
public short getItemId() {
return itemId;
}
public double getRate() {
return rate;
}
public void setItemId(short itemId) {
this.itemId = itemId;
}
public void setRate(double rate) {
this.rate = rate;
}
public int getMinAmount() {
return minAmount;
}
public int getMaxAmount() {
return maxAmount;
}
public void setMinAmount(int minAmount) {
this.minAmount = minAmount;
}
public void setMaxAmount(int maxAmount) {
this.maxAmount = maxAmount;
}
}
in NPC.java;
search for:
Code:
int chance =
shoud be in the drop() method
under it add:
Code:
int amount = Misc.random(d.getMinAmount(), d.getMaxAmount());