Jump to content
  • 0

Multifuncion zone Flag Inside


Question

Posted

Hello, i have added multifuncion zone from this site. Everything is fine, but when player die inside zone (multifuncion) then he deflag after ~30 seconds.

 

Multifuncion .java 

	public void onDieInside(final L2Character character)
	{
		if (character instanceof L2PcInstance)
		{
			final L2PcInstance activeChar = ((L2PcInstance) character);
			activeChar.updatePvPFlag(1);

L2PcInstance.java

 

	public boolean doDie(final L2Character killer)
	{
		if (isInsideZone(ZONE_MULTIFUNCTION))
		{
			updatePvPFlag(1);
		}

public void updatePvPStatus()
	{
		if ((TvT.is_started() && _inEventTvT) || (CTF.is_started() && _inEventCTF) || (DM.is_started() && _inEventDM) || (VIP._started && _inEventVIP))
			return;
		
		if (isInsideZone(ZONE_PVP))
			return;
		
		if (isInsideZone(ZONE_MULTIFUNCTION))
		{
			updatePvPFlag(1);
		}
		
		setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME);
		
		if (getPvpFlag() == 0)
		{
			startPvPFlag();
		}
	}


	public void updatePvPStatus(final L2Character target)
	{
		L2PcInstance player_target = null;
		
		if (isInsideZone(ZONE_MULTIFUNCTION) || player_target.isInsideZone(ZONE_MULTIFUNCTION))
		{
			updatePvPFlag(1);
		}

L2Character.java

 

	public boolean doDie(final L2Character killer)
	{
			if (this instanceof L2PcInstance)
			{
				final L2PcInstance player = (L2PcInstance) this;
				if (player.isInsideZone(ZONE_MULTIFUNCTION))
				{
					updatePvPFlag(1);
				}

 

pack: l2jfrozen

 

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..