You need something like:
" public void handleDungDeath(int i) {
Client c = (Client) Server.playerHandler.players[npcs[i].spawnedBy];
c.getItems().addItem(18349, 1);
c.sendMessage("You receive a Chaotic rapier as a reward!");
}"
It is basically the same code as defeating jad, just search jad's npc code, and copy and rename the id's and name of the publics and your done.