mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 06:09:05 +00:00
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:
1 parent
e56efadca2
commit
39d2b9227d
14 files changed
+773
-19
No files matched your search
@@ -32,4 +32,20 @@ public class ValueUtil {
|
||||
return min;
|
||||
return Math.min(given, max);
|
||||
}
|
||||
|
||||
public static float correctFloat(float given, float min, float max){
|
||||
if(given < min)
|
||||
return min;
|
||||
if(given > max)
|
||||
return max;
|
||||
return given;
|
||||
}
|
||||
|
||||
public static int CorrectInt(int given, int min, int max) {
|
||||
if(given < min)
|
||||
return min;
|
||||
if(given > max)
|
||||
return max;
|
||||
return given;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user