Quest Manual + Quest Objective Command

Quest Manual allows you to add manual quests that can only be completed via script or command. The command will essentially call the .setProgress or .setPlayerProgress (if the player is within a party) to set the progress for the objectives.
This commit is contained in:
Kam committed 2024-03-19 05:09:11 -04:00
1 parent e56efadca2
commit 39d2b9227d
14 files changed
+773 -19

No files matched your search

@@ -7,6 +7,7 @@ import noppes.npcs.client.gui.global.GuiNPCManageQuest;
import noppes.npcs.client.gui.questtypes.GuiNpcQuestTypeDialog;
import noppes.npcs.client.gui.questtypes.GuiNpcQuestTypeKill;
import noppes.npcs.client.gui.questtypes.GuiNpcQuestTypeLocation;
import noppes.npcs.client.gui.questtypes.GuiNpcQuestTypeManual;
import noppes.npcs.client.gui.select.GuiQuestSelection;
import noppes.npcs.client.gui.util.*;
import noppes.npcs.constants.*;
@@ -57,7 +58,7 @@ public class SubGuiNpcQuest extends SubGuiInterface implements ISubGuiListener,
addButton(new GuiNpcButton(11, guiLeft + 303, guiTop + 52, 50, 20, "selectServer.edit"));
addLabel(new GuiNpcLabel(6, "gui.type", guiLeft + 180, guiTop + 81));
addButton(new GuiNpcButton(6, guiLeft + 240, guiTop + 76, 60, 20, new String[]{"quest.item","quest.dialog","quest.kill","quest.location","quest.areakill"},quest.type.ordinal()));
addButton(new GuiNpcButton(6, guiLeft + 240, guiTop + 76, 60, 20, new String[]{"quest.item","quest.dialog","quest.kill","quest.location","quest.areakill","quest.manual"},quest.type.ordinal()));
addButton(new GuiNpcButton(7, guiLeft + 303, guiTop + 76,50, 20, "selectServer.edit"));
addLabel(new GuiNpcLabel(17, "party.options", guiLeft + 180, guiTop + 135));
@@ -121,6 +122,9 @@ public class SubGuiNpcQuest extends SubGuiInterface implements ISubGuiListener,
if(quest.type == EnumQuestType.AreaKill)
setSubGui(new GuiNpcQuestTypeKill(npc, quest, this));
if(quest.type == EnumQuestType.Manual)
setSubGui(new GuiNpcQuestTypeManual(npc, quest, this));
}
if(button.id == 8)
{