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

    • Καλησπέρα σας,ενδιαφέρομαι για συγκρότηση ομάδας για reborn ενός θρυλικού Ελληνικού Server. 🙂 Ζητούνται άτομα με καλή γνώση σε l2Dev, σοβαρά και με όρεξη. O server δε θα είναι pvp. Θα ειναι very low rate. Περισσότερες πληροφορίες τηλεφωνικά μετά από επικοινωνία εδώ πέρα! Ευχαριστώ.   Good evening, I am interested in forming a team to reborn a legendary Greek Server. 🙂 Looking for people with good knowledge in l2Dev, serious and eager. The server will not be pvp. It will be a very low rate. More information by phone after contacting here! Thanks.
    • Hello Server Owners!   Always having trouble that players on your servers are not voting for your server? You can import your own usernames to vote for you, giving you a legitimate chance to climb the ranks every 24 hours. With our Toplist Voting Bot Extension, it's possible. This means increased visibility and a higher chance of reaching the top of the rankings. We currently support over 400+ Toplists for you to choose from. Whether you're into general gaming or niche-specific Toplists, you'll find the right fit for your server.   * Keep in mind to respect the terms of service of the Toplists and not to overflow *   If you're interested in a Trial, it's possible, upon verifying your e-mail you will receive one free whole token to get about 50-100 votes depending on the Toplist you choose. Boost your rankings with our Toplist Voting Bot and take the first step towards server success.   Discord: https://discord.gg/BfSfaDttbZ Website: https://toplistbot.com
    • Hello, the problem may be in the skill line. Check spaces is a common error.
    • Hello, I need help with this: When I paste the skilldata in the skilldata of the program, when I click generate show a error:   See the end of this message for details on how to invoke Just-In-Time (JIT) debugging instead of this dialog box.  Just-In-Time (JIT) debugging instead of this dialog box. ************** Exception text ************** System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length    in System.String.Substring(Int32 startIndex, Int32 length)    in L2OFFGMPanel.Editor.pchMK.ex0fw1kAOte16pCJFCj(Object , Int32 , Int32 )    in L2OFFGMPanel.Editor.pchMK.tW0WWWF2JnU(Object , EventArgs )    in System.Windows.Forms.Control.OnClick(EventArgs e)    in System.Windows.Forms.Button.OnClick(EventArgs e)    in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)    in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)    in System.Windows.Forms.Control.WndProc(Message& m)    in System.Windows.Forms.ButtonBase.WndProc(Message& m)    in System.Windows.Forms.Button.WndProc(Message& m)    in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded assemblies ************** mscorlib     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- _     Assembly version: 0.0.0.0.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- L2OFFGMPanel     Assembly version: 4.7.1.0     Win32 version: 4.8.4614.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- System     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4605.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4550.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4390.0 built by: NET48REL1LAST_C     Base code: file:///C:/2/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Configuration     Assembly version: 4.0.0.0.0     Win32 version: 4.8.4190.0 built by: NET48REL1LAST_B     Base code: file:///C:/2/Micros  
    • GRAND OPENING FROM - 16/06/2023, FRIDAY, 20:00 +2 GMT !
  • Topics

×
×
  • 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 Disabled AdBlock