Fixed castle teleporter waiting bypass.

Contributed by Trance.
This commit is contained in:
MobiusDevelopment
2020-10-01 21:45:54 +00:00
parent 17a7c9f60b
commit d7d071860c
30 changed files with 32 additions and 32 deletions

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -3,6 +3,6 @@ That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {

View File

@@ -1,8 +1,8 @@
<html><body> <html><body>
That is not possible as the Guardian Towers of Life have been destroyed.<br> That is not possible as the Guardian Towers of Life have been destroyed.<br>
Therefore, all of those in the room will be teleported to a position near the castle hall in 3 minutes.<br> Therefore, all of those in the room will be teleported to a position near the castle hall in 8 minutes.<br>
Make yourself comfortable.<br> Make yourself comfortable.<br>
<center> <center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter teleporter-03.html">Teleport</Button> <Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest CastleTeleporter CastleTeleporter-06.html">Teleport</Button>
</center> </center>
</body></html> </body></html>

View File

@@ -90,7 +90,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (npc.isScriptValue(0)) if (npc.isScriptValue(0))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
final int time = (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? 180000 : 30000; final int time = (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? 480000 : 30000;
startQuestTimer("MASS_TELEPORT", time, npc, null); startQuestTimer("MASS_TELEPORT", time, npc, null);
npc.setScriptValue(1); npc.setScriptValue(1);
} }
@@ -178,7 +178,7 @@ public class CastleTeleporter extends AbstractNpcAI
if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId())) if (CommonUtil.contains(MASS_TELEPORTERS, npc.getId()))
{ {
final Siege siege = npc.getCastle().getSiege(); final Siege siege = npc.getCastle().getSiege();
htmltext = (npc.isScriptValue(0)) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html"; htmltext = npc.isScriptValue(0) ? (siege.isInProgress() && (siege.getControlTowerCount() == 0)) ? "CastleTeleporter-05.html" : "CastleTeleporter-04.html" : "CastleTeleporter-06.html";
} }
else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender else if ((npc.getCastle().getOwnerId() == player.getClanId()) && (player.getClanId() != 0) && (player.getSiegeState() == 2)) // Deffender
{ {