Added 9 more slots for quest kill objectives, and an option for kill quests to progress only if a player kills an NPC with that name.

Added quest interface support to get and modify data from specific quest types.
This commit is contained in:
luisc committed 2022-01-27 05:40:51 -06:00
1 parent 989effb5c5
commit f876f13d77
15 files changed
+155 -32

No files matched your search

@@ -44,4 +44,6 @@ public interface IQuest {
void save();
boolean getIsRepeatable();
IQuestInterface getQuestInterface();
}
@@ -0,0 +1,4 @@
package noppes.npcs.scripted.handler.data;
public interface IQuestDialog extends IQuestInterface {
}
@@ -0,0 +1,4 @@
package noppes.npcs.scripted.handler.data;
public interface IQuestInterface {
}
@@ -0,0 +1,12 @@
package noppes.npcs.scripted.handler.data;
public interface IQuestItem extends IQuestInterface {
void setLeaveItems(boolean leaveItems);
boolean getLeaveItems();
void setIgnoreDamage(boolean ignoreDamage);
boolean getIgnoreDamage();
void setIgnoreNbt(boolean ignoreNbt);
boolean getIgnoreNbt();
}
@@ -0,0 +1,6 @@
package noppes.npcs.scripted.handler.data;
public interface IQuestKill extends IQuestInterface {
void setTargetType(int type);
int getTargetType();
}
@@ -0,0 +1,12 @@
package noppes.npcs.scripted.handler.data;
public interface IQuestLocation extends IQuestInterface {
void setLocation1(String loc1);
String getLocation1();
void setLocation2(String loc2);
String getLocation2();
void setLocation3(String loc3);
String getLocation3();
}