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.
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
So i started playing there like huge amount of us did. After hitting 30 i kinda started to feel the drag of it. And boy i just don’t have it to continue :D
I think after selling all items i have around 1.2kk in stash. I would sell it for 10€ per 100k and 100€ for entire deal. Paypal would be preferrable, unless you live in Baltics so normal bank transfer would be fine too.
You could pm me here and perhaps i could add you on facebook to take it further.
Scammers don’t try. Played this game for a long long and long time.
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.