Jump to content
  • 0

Add Point pvp in arena zone


Question

10 answers to this question

Recommended Posts

  • 0
Posted

L2Arenazone.java:

	character.setInsideZone(L2Character.ZONE_PVP, TRUE);

 

Just copy/paste my posts won't help you...

To author, what you wanna do?

  • 0
Posted

I want :

 

 

ex:  Coliseum ( zone arena )  don't give pvp point after a kill

 

 

i want :

i kill a player at Coliseum , i have a PvP point

i want just Add Point pvp in arena zone

  • 0
Posted

L2Arenazone.java:

	character.setInsideZone(L2Character.ZONE_PVP, TRUE);

 

This should works there...

 

In L2ArenaZone.java

  • 0
Posted
* This program is free software: you can redistribute it and/or modify it under

* the terms of the GNU General Public License as published by the Free Software

* Foundation, either version 3 of the License, or (at your option) any later

* version.

*

* This program is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS

* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more

* details.

*

* You should have received a copy of the GNU General Public License along with

* this program. If not, see <http://www.gnu.org/licenses/>.

*/

package com.end.gameserver.model.zone.type;

 

import com.end.gameserver.model.actor.L2Character;

import com.end.gameserver.model.actor.instance.L2PcInstance;

import com.end.gameserver.model.zone.L2ZoneType;

import com.end.gameserver.network.SystemMessageId;

 

/**

* A PVP Zone

* @author durgus

*/

public class L2ArenaZone extends L2ZoneType

{

public L2ArenaZone(int id)

{

super(id);

}

 

@Override

protected void onEnter(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

protected void onExit(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, false);

}

 

@Override

public void onDieInside(L2Character character)

{

}

 

@Override

public void onReviveInside(L2Character character)

{

}

}

 

 

Don't work

 

* This program is free software: you can redistribute it and/or modify it under

* the terms of the GNU General Public License as published by the Free Software

* Foundation, either version 3 of the License, or (at your option) any later

* version.

*

* This program is distributed in the hope that it will be useful, but WITHOUT

* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS

* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more

* details.

*

* You should have received a copy of the GNU General Public License along with

* this program. If not, see <http://www.gnu.org/licenses/>.

*/

package com.end.gameserver.model.zone.type;

 

import com.end.gameserver.model.actor.L2Character;

import com.end.gameserver.model.actor.instance.L2PcInstance;

import com.end.gameserver.model.zone.L2ZoneType;

import com.end.gameserver.network.SystemMessageId;

 

/**

* A PVP Zone

* @author durgus

*/

public class L2ArenaZone extends L2ZoneType

{

public L2ArenaZone(int id)

{

super(id);

}

 

@Override

protected void onEnter(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

protected void onExit(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

public void onDieInside(L2Character character)

{

}

 

@Override

public void onReviveInside(L2Character character)

{

}

}

 

don't work too

  • 0
Posted

if you want to make it right you need a manager.

 

You can do it from l2pcinstance 

 

// Check if the L2PcInstance is in an arena or a siege area

if (isInsideZone(ZONE_PVP) && ((L2PcInstance) attacker).isInsideZone(ZONE_PVP))

return true;

{

addPoints(getCharId(), (getLevel() / 2) + Rnd.get(-5, 5));

}

 

 

 

 

 

// If in Arena, do nothing

if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))

return;

{

addPoints(getCharId(), (getLevel() / 2) + Rnd.get(-5, 5));

}

 

 

not tested but you should see how the raidboss points are working and you will fix it easy...

Guest
This topic is now closed to further replies.


  • Posts

    • ⚔️ L2Origins – Season 1 High Five Classic Welcome to L2Origins, a project built for players who miss the authentic High Five experience while enjoying carefully designed quality-of-life improvements that preserve the original gameplay. Every system has been created with one goal in mind: long-term progression, balanced PvP, and a competitive community. Server Highlights ⚔️ High Five Classic Gameplay 📈 Rates: x5 Adena / x5 Drop & Spoil / x15 Skill EXP 👥 Up to 3 game clients per PC 🏰 Siege & Territory War Rewards ⚔️ Party and Solo Instances 🏆 Advanced Ranking System 🎯 Global Teleport & NPC Buffer 🛡️ Active Anti-Bot Protection 💬 All-In-One Community Board 🎁 Daily Login Rewards 🌎 English Project with an international community. Exclusive L2Origins Systems 🏆 Achievement Skills Unlock permanent passive skills by progressing through: PvP Achievements Olympiad Participation Achievements Every milestone rewards your character with unique passive bonuses, encouraging long-term progression. ⚔️ Faction System Choose one of 7 unique factions, each offering its own permanent bonuses and balanced penalties. 🛡️ The Knights ⚔️ Dark Legion 🔮 Arcane Council 🏹 Hunters Guild 💰 Merchants Union 🗡️ Shadow Assassins 🌿 Guardians of Nature Your choice defines your playstyle and creates a new layer of PvP strategy. 👕 DressMe System Customize your character with classic High Five armor appearances. Each DressMe appearance also grants its own exclusive passive bonuses, allowing players to personalize both their look and combat style. 🏅 Olympiad & PvP Olympiad Participation Rewards PvP Ranking Faction Ranking Event Ranking Arena Ranking Compete against other players and climb multiple leaderboards throughout the season. Why L2Origins? Our philosophy is simple: Preserve the original High Five feeling. Introduce meaningful progression instead of power creep. Keep PvP competitive and rewarding. Deliver unique custom content without losing the Lineage II identity. If you're looking for a fresh High Five server that respects the classic experience while introducing exclusive systems built from the ground up, L2Origins is ready for you. 🌐 Website: https://l2origins.org/ See you on the battlefield!  
    • Well, make it free for everyone to use.
    • Those tools that those guys are selling, you put them in Claude Code and they do everything for you; in fact, I made one exactly like the one this guy is selling.
  • Topics

×
×
  • 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..