if (source instanceof Player) {
final Player p2 = (Player) source;
int dmg = (hit.getDamage() * 1); //*1 means if u wanna make it so if u hit a 250 u get 250 tokens
if(this.getId()==131) // 131 is the npc id
p2.getPackets().sendGameMessage ("You have gained <col=FF0000>" + dmg + "</col> " + "damage tokens");
if(this.getId()==131)
p2.getInventory().addItem(13653,dmg); //13653 is the item u get if u hit a monster in this case penguin.
final Player p2 = (Player) source;
int multipler;
int dmg = (hit.getDamage() * multiplier);
if(getId()==131) {
[INDENT]p2.getPackets().sendGameMessage ("You have gained <col=FF0000>" + dmg + "</col> " + "damage tokens");
p2.getInventory().addItem(13653, dmg); //13653 is the item u get if u hit a monster in this case penguin.
[/INDENT]
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.