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.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
❖Items that are sent by physical delivery are sent using someone else's data. That is, if you are not able to accept the parcel, we will not be able to return it. Please keep this in mind.
READY IN STOCK
PAYMENT SYSTEMS
4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava, Xapo Bank, Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE/ES on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, Moneyjar
CRYPTOEXCHANGE
BINGX com, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken, Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me
BUSINESS ACCOUNTS
Stripe, Payoneer EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Kraken Business Pro, Monzo Business, Vivid Business, Zen Business EU, Millennium Business PL, AirWallex EU/UK, Finom business, PayPal business, Payset business
NATIONAL BANKS / BANKS
BBVA, CommerzBank, ING, Santander, Kaspi Bank, Sberbank, AlfaBank, Tbank, Raiffeisen, mBank, Paribas, Bereke Bank, Kapital Bank
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
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
44 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.