Page 1 of 1

weird problem(?)

Posted: Sun Feb 22, 2015 1:42 am
by Tnik
Hello,

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);
		}
	}
	
and then increasepvpkills method

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();
	}
Any of you have any ideas how I can enable the pvp count and this specific pvp reward in this area?

thank you.

Re: weird problem(?)

Posted: Mon Feb 23, 2015 7:42 pm
by Tnik
any idea?

using l2j last rev btw

Re: weird problem(?)

Posted: Tue Feb 24, 2015 5:22 pm
by Tnik
fixed,you may lock it

Re: weird problem(?)

Posted: Sat Mar 14, 2015 1:00 am
by gmexid
was it (zoneId) vs ZoneId