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.
To sum it up, just because that topic still exists and just because there's still tolerance for such garbage and missleading topics to exist in here.
Files worse than the free version, https://bitbucket.org/MobiusDev/l2j_mobius.git/src
A dumb fuck that claims that mobius sources contain backdoors yet none found so far in an opensource project.
4 Pages of replies to a "very skilled developer" that uses google translate in order to reply in his own topic.
Yet this topic is still available. Every traffic is a good traffic I guess!
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.