today I successfully created a custom zone which absolutely works,I mean all of my features.
there's one problem though,if i get a pvp there,it doesn't increase my pvps kill plus it doesn't give any reward for this area and I trully don't know why since my code seems fine
I tried everything,I removed from conditions regarding pvp stats(if isinInside(ZoneId.PVP)),but still nothing,I also disabled the anti feedmanager,but still..
My last attempt was to create a lame void,but still nothing..
my zone is PVP type (thats why no pvp counts I guess,because its like arenas)and SPECIAL(its my new zone).
my void
Code: Select all
public void pvpAndReward()
{
if (isInsideZone(ZoneId.SPECIAL))
{
addItem("Reward", 6393, 1, this, true);
setPvpKills(getPvpKills() + 1);
}
}
Code: Select all
public void increasePvpKills(L2Character target)
{
if ((target instanceof L2PcInstance) && AntiFeedManager.getInstance().check(this, target))
{
setPvpKills(getPvpKills() + 1);
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
sendPacket(new UserInfo(this));
sendPacket(new ExBrExtraUserInfo(this));
}
pvpAndReward();
}
thank you.