Hello, i have added multifuncion zone from this site. Everything is fine, but when player die inside zone (multifuncion) then he deflag after ~30 seconds.
Multifuncion .java
public void onDieInside(final L2Character character)
{
if (character instanceof L2PcInstance)
{
final L2PcInstance activeChar = ((L2PcInstance) character);
activeChar.updatePvPFlag(1);
L2PcInstance.java
public boolean doDie(final L2Character killer)
{
if (isInsideZone(ZONE_MULTIFUNCTION))
{
updatePvPFlag(1);
}
public void updatePvPStatus()
{
if ((TvT.is_started() && _inEventTvT) || (CTF.is_started() && _inEventCTF) || (DM.is_started() && _inEventDM) || (VIP._started && _inEventVIP))
return;
if (isInsideZone(ZONE_PVP))
return;
if (isInsideZone(ZONE_MULTIFUNCTION))
{
updatePvPFlag(1);
}
setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME);
if (getPvpFlag() == 0)
{
startPvPFlag();
}
}
public void updatePvPStatus(final L2Character target)
{
L2PcInstance player_target = null;
if (isInsideZone(ZONE_MULTIFUNCTION) || player_target.isInsideZone(ZONE_MULTIFUNCTION))
{
updatePvPFlag(1);
}
L2Character.java
public boolean doDie(final L2Character killer)
{
if (this instanceof L2PcInstance)
{
final L2PcInstance player = (L2PcInstance) this;
if (player.isInsideZone(ZONE_MULTIFUNCTION))
{
updatePvPFlag(1);
}
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
Question
l2fire
Hello, i have added multifuncion zone from this site. Everything is fine, but when player die inside zone (multifuncion) then he deflag after ~30 seconds.
Multifuncion .java
public void onDieInside(final L2Character character) { if (character instanceof L2PcInstance) { final L2PcInstance activeChar = ((L2PcInstance) character); activeChar.updatePvPFlag(1);
L2PcInstance.java
public boolean doDie(final L2Character killer) { if (isInsideZone(ZONE_MULTIFUNCTION)) { updatePvPFlag(1); } public void updatePvPStatus() { if ((TvT.is_started() && _inEventTvT) || (CTF.is_started() && _inEventCTF) || (DM.is_started() && _inEventDM) || (VIP._started && _inEventVIP)) return; if (isInsideZone(ZONE_PVP)) return; if (isInsideZone(ZONE_MULTIFUNCTION)) { updatePvPFlag(1); } setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME); if (getPvpFlag() == 0) { startPvPFlag(); } } public void updatePvPStatus(final L2Character target) { L2PcInstance player_target = null; if (isInsideZone(ZONE_MULTIFUNCTION) || player_target.isInsideZone(ZONE_MULTIFUNCTION)) { updatePvPFlag(1); }
L2Character.java
public boolean doDie(final L2Character killer) { if (this instanceof L2PcInstance) { final L2PcInstance player = (L2PcInstance) this; if (player.isInsideZone(ZONE_MULTIFUNCTION)) { updatePvPFlag(1); }
pack: l2jfrozen
1 answer to this question
Recommended Posts