Save instance time even if player is not online.
This commit is contained in:
parent
3cd9404a34
commit
95186fa890
@ -842,10 +842,13 @@ public final class Kamaloka extends AbstractInstance
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setReenterPenalty(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
world.finishInstance();
|
||||
|
@ -842,10 +842,13 @@ public final class Kamaloka extends AbstractInstance
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setReenterPenalty(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
world.finishInstance();
|
||||
|
@ -842,10 +842,13 @@ public final class Kamaloka extends AbstractInstance
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setReenterPenalty(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
world.finishInstance();
|
||||
|
@ -842,10 +842,13 @@ public final class Kamaloka extends AbstractInstance
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setReenterPenalty(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
world.finishInstance();
|
||||
|
@ -615,10 +615,13 @@ public class HallOfErosionAttack extends AbstractNpcAI
|
||||
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(plr.getObjectId(), INSTANCEID, reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
final Instance inst = InstanceManager.getInstance().getInstance(world.getInstanceId());
|
||||
|
@ -449,10 +449,13 @@ public class HallOfSufferingAttack extends AbstractNpcAI
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance player : tmpworld.getAllowed())
|
||||
{
|
||||
if ((player != null) && player.isOnline())
|
||||
if (player != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(player.getObjectId(), INSTANCEID, reenter.getTimeInMillis());
|
||||
player.sendPacket(sm);
|
||||
if (player.isOnline())
|
||||
{
|
||||
player.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
startQuestTimer("spawnBossGuards", BOSS_MINION_SPAWN_TIME, npc, null);
|
||||
|
@ -449,10 +449,13 @@ public class HallOfSufferingDefence extends AbstractNpcAI
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance player : tmpworld.getAllowed())
|
||||
{
|
||||
if ((player != null) && player.isOnline())
|
||||
if (player != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(player.getObjectId(), INSTANCEID, reenter.getTimeInMillis());
|
||||
player.sendPacket(sm);
|
||||
if (player.isOnline())
|
||||
{
|
||||
player.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
startQuestTimer("spawnBossGuards", BOSS_MINION_SPAWN_TIME, npc, null);
|
||||
|
@ -524,10 +524,13 @@ public class HeartInfinityAttack extends AbstractNpcAI
|
||||
|
||||
for (L2PcInstance player : tmpworld.getAllowed())
|
||||
{
|
||||
if ((player != null) && player.isOnline())
|
||||
if (player != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(player.getObjectId(), INSTANCEID, reenter.getTimeInMillis());
|
||||
player.sendPacket(sm);
|
||||
if (player.isOnline())
|
||||
{
|
||||
player.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -188,10 +188,13 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
{
|
||||
for (L2PcInstance player : world.getAllowed())
|
||||
{
|
||||
if ((player != null) && player.isOnline())
|
||||
if (player != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(player.getObjectId(), world.getTemplateId(), time);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INSTANT_ZONE_S1_S_ENTRY_HAS_BEEN_RESTRICTED_YOU_CAN_CHECK_THE_NEXT_POSSIBLE_ENTRY_TIME_BY_USING_THE_COMMAND_INSTANCEZONE).addString(InstanceManager.getInstance().getInstanceIdName(world.getTemplateId())));
|
||||
if (player.isOnline())
|
||||
{
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INSTANT_ZONE_S1_S_ENTRY_HAS_BEEN_RESTRICTED_YOU_CAN_CHECK_THE_NEXT_POSSIBLE_ENTRY_TIME_BY_USING_THE_COMMAND_INSTANCEZONE).addString(InstanceManager.getInstance().getInstanceIdName(world.getTemplateId())));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -632,10 +632,13 @@ public final class Kamaloka extends AbstractInstance
|
||||
// set instance reenter time for all allowed players
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(plr.getObjectId(), world.getTemplateId(), reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -294,10 +294,13 @@ public final class Q00694_BreakThroughTheHallOfSuffering extends Quest
|
||||
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(plr.getObjectId(), TEMPLATE_ID, reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
final Instance inst = InstanceManager.getInstance().getInstance(world.getInstanceId());
|
||||
|
@ -263,10 +263,13 @@ public final class Q00695_DefendTheHallOfSuffering extends Quest
|
||||
|
||||
for (L2PcInstance plr : world.getAllowed())
|
||||
{
|
||||
if ((plr != null) && plr.isOnline())
|
||||
if (plr != null)
|
||||
{
|
||||
InstanceManager.getInstance().setInstanceTime(plr.getObjectId(), TEMPLATE_ID, reenter.getTimeInMillis());
|
||||
plr.sendPacket(sm);
|
||||
if (plr.isOnline())
|
||||
{
|
||||
plr.sendPacket(sm);
|
||||
}
|
||||
}
|
||||
}
|
||||
final Instance inst = InstanceManager.getInstance().getInstance(world.getInstanceId());
|
||||
|
Loading…
Reference in New Issue
Block a user