Minor improvement at Labyrinth of Belis.

This commit is contained in:
mobius
2015-02-21 22:51:01 +00:00
parent c1e8bb8876
commit 5d7c341ce8

View File

@@ -376,52 +376,56 @@ public final class LabyrinthOfBelis extends AbstractInstance
@Override @Override
public String onFirstTalk(L2Npc npc, L2PcInstance player) public String onFirstTalk(L2Npc npc, L2PcInstance player)
{ {
if (npc.getId() == OFFICER) switch (npc.getId())
{ {
final InstanceWorld world = InstanceManager.getInstance().getWorld(npc.getInstanceId()); case OFFICER:
switch (world.getStatus())
{ {
case 1: final InstanceWorld world = InstanceManager.getInstance().getWorld(npc.getInstanceId());
switch (world.getStatus())
{ {
world.incStatus(); case 1:
return "19155-01.html"; {
} world.incStatus();
case 2: return "19155-01.html";
{ }
return "19155-01.html"; case 2:
} {
case 4: return "19155-01.html";
{ }
return "19155-02.html"; case 4:
} {
case 6: return "19155-02.html";
{ }
return "19155-03.html"; case 6:
} {
case 13: return "19155-03.html";
{ }
return "19155-04.html"; case 13:
} {
case 15: return "19155-04.html";
{ }
return "19155-05.html"; case 15:
} {
default: return "19155-05.html";
{ }
return "19155-06.html"; default:
{
return "19155-06.html";
}
} }
} }
} case VERIFICATION_SYSTEM:
else if (npc.getId() == VERIFICATION_SYSTEM)
{
return "33215-01.html";
}
else if (npc.getId() == ELECTRICITY_GENERATOR)
{
final InstanceWorld world = InstanceManager.getInstance().getWorld(npc.getInstanceId());
if (world.getStatus() < 12)
{ {
return "33216-01.html"; return "33215-01.html";
}
case ELECTRICITY_GENERATOR:
{
final InstanceWorld world = InstanceManager.getInstance().getWorld(npc.getInstanceId());
if (world.getStatus() < 12)
{
return "33216-01.html";
}
break;
} }
} }
return null; return null;