In every chaotic Zone (auto flag) out there, the target instantly loses the pvp flag when it leaves the pvp zone, instead of losing it the normal way, some 15 seconds afters (blinking purple/white).
In my experience, that is not a good thing cause people will simply run out the zone to run from pvp.
I tried to fix that by using a few things, but none worked correctly. In my attempts so far, the target takes flag when runing out, but it will never go away. To make it disapear I need to relog.
Most of the times, that is what happens.
I looked in the SiegeZone.java to check how it worked there, and tried that as well, but in that case the Flag stays just for 1 second and disapear (But it works corrrectly when in siege).
In the shared MultiFunctionZone.java, it is set like this:
if(pvp_enabled)
activeChar.stopPvPFlag(); (instantly removes the flag)
So I tried to use the same method used for siege zone:
if (character instanceof L2PcInstance)
{
((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE));
// Set pvp flag
if (((L2PcInstance) character).getPvpFlag() == 0)
{
((L2PcInstance) character).startPvPFlag();
}
}
}
But it doesnt work like in a siege zone.
I Also tried something like this:
if (activeChar.getPvpFlag() != 0)
activeChar.setPvpFlag(0);
activeChar.updatePvPFlag(1);
With this, the target will get pvp flag when it run out the flag zone, but the flag will never go aways like it was intented.
Dear partners! At the moment, we are in great need of the following items:
TikTok Ads and Google Ads advertising accounts with an ad limit starting from $100. Countries: Europe, USA, Asia
Contact us via the contacts in the thread or in this post. We look forward to cooperating!
Active links to SOCNET stores:
Digital Goods Store (Website): Go
Store Telegram Bot: Go – convenient access to the store via Telegram messenger.
Telegram Bot for purchasing Telegram Stars: Go – fast and profitable purchase of stars in Telegram.
SMM Panel: Go – promotion of your social media accounts.
We would like to present to you the current list of promotions and special offers for purchasing our products and services:
1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount)
2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website using the following format: "SEND ME BONUS,
MY USERNAME IS..." — you need to post it in our forum thread!
3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support).
4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot!
News:
➡ Telegram Channel: https://t.me/accsforyou_shop
➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t
➡ Discord Server: https://discord.gg/y9AStFFsrh
Contacts & Support:
➡ Telegram: https://t.me/socnet_support
➡ WhatsApp: https://wa.me/79051904467
➡ Discord: socnet_support
➡ ✉ Email: solomonbog@socnet.store
Question
tiguz
Hello once again dear users.
In every chaotic Zone (auto flag) out there, the target instantly loses the pvp flag when it leaves the pvp zone, instead of losing it the normal way, some 15 seconds afters (blinking purple/white).
In my experience, that is not a good thing cause people will simply run out the zone to run from pvp.
I tried to fix that by using a few things, but none worked correctly. In my attempts so far, the target takes flag when runing out, but it will never go away. To make it disapear I need to relog.
Most of the times, that is what happens.
I looked in the SiegeZone.java to check how it worked there, and tried that as well, but in that case the Flag stays just for 1 second and disapear (But it works corrrectly when in siege).
In the shared MultiFunctionZone.java, it is set like this:
if(pvp_enabled)
activeChar.stopPvPFlag(); (instantly removes the flag)
So I tried to use the same method used for siege zone:
if (character instanceof L2PcInstance)
{
((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE));
// Set pvp flag
if (((L2PcInstance) character).getPvpFlag() == 0)
{
((L2PcInstance) character).startPvPFlag();
}
}
}
But it doesnt work like in a siege zone.
I Also tried something like this:
if (activeChar.getPvpFlag() != 0)
activeChar.setPvpFlag(0);
activeChar.updatePvPFlag(1);
With this, the target will get pvp flag when it run out the flag zone, but the flag will never go aways like it was intented.
Any help pls?
Im using l2jfrozen 1118
Edited by tiguz44 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