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);
}
L2jMobius has a variety of servers, that all are actively developed.
https://gitlab.com/MobiusDevelopment/L2J_Mobius
Better version if you donate 200 euros to the project? Yes.
https://l2jmobius.org
A tutorial is provided.
https://l2jmobius.org/forum/index.php?topic=3231.0
Please do not come if you cannot compile and test on your own.
MidnightSell team WTB/WTS GOLD TWW EU/US all servers
Cataclysm all servers
Payment Visa/Master/Btc/Eth/Trc-20/Erc-20 (all payments within 10 min)
For all question pls dm
Discord https://discord.gg/h8AN57qJjK
Or Telegram @MidnightSell
Looking for gracia final or gracia epilogue java server. The seller must include full source files
test server is a must,please dont come with shared files. PM ME
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