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);
}
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
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