[Elvarg/MistPS] Npc Drops
Alright so i'm trying to hard code some drops for certain npcs. In the class NpcDropDefinitions in the handleDrop method i have tried adding this:
Code:
if(npc.getId() == 7402) {
if(Misc.getRandom(0) == 0) {
GroundItemManager.spawnGroundItem((player), new GroundItem(new Item(6570), npc.getPosition(), player.getUsername(),, false, 150, true, 150));
}
}
This was just a test to check if it would work which it did not.
Any ideas on how I would get this to drop hard coded items?