mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
The player quest tracker now supports dialog and location quests as well.
This commit is contained in:
1 parent
f9e92f3172
commit
f301f8fcbb
1 file changed
+16
-3
@@ -119,9 +119,22 @@ public class OverlayQuestTracking extends Gui {
|
||||
String[] split = objective.split(":");
|
||||
split = split[split.length-1].split("/");
|
||||
|
||||
int completed = Integer.parseInt(split[0].trim());
|
||||
int total = Integer.parseInt(split[1].trim());
|
||||
if (completed / total == 1) {
|
||||
boolean completed = false;
|
||||
|
||||
try {
|
||||
int killed = Integer.parseInt(split[0].trim());
|
||||
int total = Integer.parseInt(split[1].trim());
|
||||
|
||||
if (killed/total == 1) {
|
||||
completed = true;
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
if (objective.endsWith("(read)") || (objective.endsWith("Found") && !objective.endsWith("Not Found"))) {
|
||||
completed = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (completed) {
|
||||
objective = "&a&o&m" + objective;
|
||||
} else {
|
||||
objective = "&o" + objective;
|
||||
|
||||
Reference in new issue
Block a user