require all quest complete or 32 QP

This commit is contained in:
RedSparr0w
2019-10-25 17:46:49 +13:00
parent 04f474ed6d
commit 441ca60292
3 changed files with 16 additions and 12 deletions
@@ -115,8 +115,9 @@ public class Guilds {
public static boolean checkRequirments(Client c, int objectId) {
switch (objectId) {
case 1805: // Champions Guild
if (c.questPoints < 19) {
c.getDialogueHandler().sendStatement("You need 19 quest points to enter this guild!");
int requiredQP = Math.min(32, QuestAssistant.MAXIMUM_QUESTPOINTS);
if (c.questPoints < requiredQP) {
c.getDialogueHandler().sendStatement("You need " + requiredQP + " quest points to enter this guild!");
c.nextChat = 0;
return false;
}