I have added this code to my pack and its not working...after trying to fix it 2hours...
public void increasePvpKills(L2Character target)
{
if (((target instanceof L2PcInstance)) && (AntiFeedManager.getInstance().check(this, target)))
{
setPvpKills(getPvpKills() + 1);
for (L2ZoneType zone : L2World.getInstance().getRegion(getX(), getY()).getZones()) {
if ((zone.isCharacterInZone(this)) && (zone.getName() != null) && (zone.getId() == 40001)) {
addItem("PvPReward", 14720, 1L, this, true);
}
}
sendPacket(new UserInfo(this));
sendPacket(new ExBrExtraUserInfo(this));
}
}
The location is Primival Isle, but when i kill someone as flagged [pvp] I don't get any reward...