Index: java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java
===================================================================
--- java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0)
+++ java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0)
@@ -0,0 +1,62 @@
+/*
+ * 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.l2jserver.gameserver.model.zone.type;
+
+import com.l2jserver.gameserver.model.actor.L2Character;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.zone.L2ZoneType;
+
+/**
+ * @author UnAfraid
+ */
+public class L2FlagZone extends L2ZoneType
+{
+ public L2FlagZone(int id)
+ {
+ super(id);
+ }
+
+ @Override
+ protected void onEnter(L2Character character)
+ {
+ if (character instanceof L2PcInstance)
+ {
+ ((L2PcInstance) character).startPvPFlag();
+ ((L2PcInstance) character).broadcastUserInfo();
+ }
+ }
+
+ @Override
+ protected void onExit(L2Character character)
+ {
+ if (character instanceof L2PcInstance)
+ {
+ ((L2PcInstance) character).stopPvPFlag();
+ ((L2PcInstance) character).broadcastUserInfo();
+ }
+ }
+
+ @Override
+ public void onDieInside(L2Character character)
+ {
+ onExit(character);
+ }
+
+ @Override
+ public void onReviveInside(L2Character character)
+ {
+ onEnter(character);
+ }
+}
I have this code work on l2jserver H5 , please help me to organize import and rework on high five and work 100%.
Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK
We also have items, epics, etc.
discord - adver745645
Our prices are reasonable, so have a nice shopping and a nice day.
🌍 Server Name: L2 LORENA x30
🕰️ Opening Date: November 14, 2025 – 19:00 UTC+2
🎮 Chronicle: Interlude (Retail-like experience)
⚖️ Rates: x30 (MID PVP, long-term server NO-WIPE)
🌐 Website: https://l2-lorena.com/
💬 Discord: https://discord.gg/URz974tPW
---
🔥 INTRODUCTION
L2 LORENA brings back the true Interlude experience – no Pay2Win, no overpowered gear.
A clean, balanced, and international Lineage II world with a long-term vision.
If you're tired of servers dying in 2 weeks, this is for you.
---
⚔️ MAIN FEATURES (check the website for Full Description)
✔️ True Interlude gameplay + trash server Interface
✔️ International community
✔️ Smart anti-bot protection
✔️ Balanced class PvP
✔️ Working Olympiad & Clan Wars
✔️ Manual farm, auto farm to.
✔️ Offline shop, party EXP bonus
✔️ SellBuss System
✔️ Dressme System
---
🏆 DISCORD INVITE CONTEST (LIVE NOW)
Want to help build the server and get rewarded?
🥇 1st: 30 COL
🥈 2nd: 20 COL
🥉 3rd: 10 COL
Use `/invites` in our Discord to get your personal link!
---
⚔️ Top PvP Player → 50 COL(Month)
👑 Best Performing Clan → 100 COL (to clan leader) Month
All based on in-game performance and community activity.
---
📅 LAUNCH INFO
- Grand Opening: **14 November, 19:00 UTC+2**
- Website: https://l2-lorena.com/
- Discord: https://discord.gg/URz974tPW
Join the movement. No Pay2Win. No nonsense. Just Nostalgia.
See you on the battlefield.
Question
TreVor
Index: java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java =================================================================== --- java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0) +++ java/com/l2jserver/gameserver/model/zone/type/L2FlagZone.java (revision 0) @@ -0,0 +1,62 @@ +/* + * 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.l2jserver.gameserver.model.zone.type; + +import com.l2jserver.gameserver.model.actor.L2Character; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.zone.L2ZoneType; + +/** + * @author UnAfraid + */ +public class L2FlagZone extends L2ZoneType +{ + public L2FlagZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + if (character instanceof L2PcInstance) + { + ((L2PcInstance) character).startPvPFlag(); + ((L2PcInstance) character).broadcastUserInfo(); + } + } + + @Override + protected void onExit(L2Character character) + { + if (character instanceof L2PcInstance) + { + ((L2PcInstance) character).stopPvPFlag(); + ((L2PcInstance) character).broadcastUserInfo(); + } + } + + @Override + public void onDieInside(L2Character character) + { + onExit(character); + } + + @Override + public void onReviveInside(L2Character character) + { + onEnter(character); + } +}I have this code work on l2jserver H5 , please help me to organize import and rework on high five and work 100%.
change
Code:
To
Code:
and
Code:
to
Code:
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now