Hey! I remember you from my server, even though you got the answer, maybe I can tell you something more or stuff to add.
So yeah, in the method dropItems you can make something like c.npcKills++, so it counts the npc counter, if you want it for a specific npc, you could do something like;
Code:
npcs[i].npcType == npcIdHere;
And you could handle the rewards in a few ways, I'll give you an example
Code:
private void giveAchievementReward(String level) {
switch (level) {
case "normal":
c.getItems.addItemToBank(995, 1000000);
break:
case "hard":
c.getItems.addItemToBank(995, 5000000);
break;
}
}
And you can call it like this in initialize or somehting
Code:
if (c.npcKills >= 50 && !c.completedFishingAchievement) {
Achievments.giveFishingAchievementReward();
}
And then in the achievement class
Code:
public void giveFishingAchievementReward() {
giveAchievementReward("normal");
c.completedFishingAchievement = true;
}
This will make it so it gives a normal achievement reward, just giving an example, if you have more questions, you can always pm me.