weird problem(?)

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Tnik
Posts: 18
Joined: Sun Aug 31, 2014 6:50 am

weird problem(?)

Post 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.
Computer Science
Tnik
Posts: 18
Joined: Sun Aug 31, 2014 6:50 am

Re: weird problem(?)

Post by Tnik »

any idea?

using l2j last rev btw
Computer Science
Tnik
Posts: 18
Joined: Sun Aug 31, 2014 6:50 am

Re: weird problem(?)

Post by Tnik »

fixed,you may lock it
Computer Science
gmexid
Posts: 33
Joined: Fri Mar 01, 2013 10:09 pm

Re: weird problem(?)

Post by gmexid »

was it (zoneId) vs ZoneId
Post Reply