Directly show quest dialog when a single quest is started.

This commit is contained in:
MobiusDevelopment 2022-09-18 21:58:35 +00:00
parent 5b13bafb85
commit e38c50ed2e
24 changed files with 96 additions and 24 deletions

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;

View File

@ -174,6 +174,9 @@ public class QuestLink implements IBypassHandler
}
else if (qs.isStarted())
{
startCount++;
startQuest = quest.getName();
sbStarted.append("<font color=\"ffdd66\">");
sbStarted.append("<button icon=\"quest\" align=\"left\" action=\"bypass -h npc_" + npc.getObjectId() + "_Quest " + quest.getName() + "\">");
String localisation = quest.isCustomQuest() ? quest.getPath() + " (In Progress)" : "<fstring>" + quest.getNpcStringId() + "02</fstring>";
@ -214,7 +217,7 @@ public class QuestLink implements IBypassHandler
}
}
if (sbStarted.isEmpty() && (startCount == 1))
if (startCount == 1)
{
showQuestWindow(player, npc, startQuest);
return;