Jump to content
  • 0

type="ArenaZone"(pvpzone) No PvP point


losmodel
 Share

Question

Hello

My Questionis :  how to change the pvp points in ---> type="ArenaZone"

(like giran arena , coliseum, gludin arena  etc.. )

in this zone nobody gets +1 pvp point

 

need help change this for ArenaZone where i get +1pvp point  for kill

 

Sry for my bad eng.

 

for H5 Client

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

well you can simple change

java/com/l2jserver/gameserver/model/zone/type/L2ArenaZone.java

L2ArenaZone.java

		character.setInsideZone(L2Character.ZONE_PVP, false);
	character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false);

 

to

 

		character.setInsideZone(L2Character.ZONE_PVP, TRUE);
	character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false);

Link to comment
Share on other sites

  • 0
public class L2ArenaZone extends L2ZoneType
{
public L2ArenaZone(int id)
{
	super(id);
}

@Override
protected void onEnter(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		if (!character.isInsideZone(ZoneId.PVP))
		{
			character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);
		}
	}

	character.setInsideZone(ZoneId.PVP, true);
}

@Override
protected void onExit(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		if (!character.isInsideZone(ZoneId.PVP))
		{
			character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);
		}
	}

	character.setInsideZone(ZoneId.PVP, false);
}

@Override
public void onDieInside(L2Character character)
{
}

@Override
public void onReviveInside(L2Character character)
{
}
}

Link to comment
Share on other sites

  • 0

public class L2ArenaZone extends L2ZoneType
{
public L2ArenaZone(int id)
{
	super(id);
}

@Override
protected void onEnter(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		if (!character.isInsideZone(ZoneId.PVP))
		{
			character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);
		}
	}

	character.setInsideZone(ZoneId.PVP, true);
}

@Override
protected void onExit(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		if (!character.isInsideZone(ZoneId.PVP))
		{
			character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);
		}
	}

	character.setInsideZone(ZoneId.PVP, false);
}

@Override
public void onDieInside(L2Character character)
{
}

@Override
public void onReviveInside(L2Character character)
{
}
}

 

Good the easy way :D

 

character.setInsideZone(ZoneId.PVP, true);

 

You have brain...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock