Jump to content
  • 0

type="ArenaZone"(pvpzone) No PvP point


losmodel

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.


  • Posts

    • Shaper price updated to 700e. 
    • very trusted and very skilled developer, good luck with your project and sales!
    • There is nothing you can do about it, as Tryskell said forums are "deprecated" now and 95 % of the people use Discord as it offers everything and fast. Also MMO games are mostly dead so I don't know what community you expect to attract. 
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11      QUOTE    0   Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11      QUOTE    0   Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11      QUOTE    0   Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11      QUOTE    0  
  • Topics

×
×
  • Create New...