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
@@ -90,11 +90,12 @@ public class NpcActions {
case 537:
case 536:
if (c.questPoints >= 19) {
int requiredQP = Math.min(32, QuestAssistant.MAXIMUM_QUESTPOINTS);
if (c.questPoints >= requiredQP) {
c.getDialogueHandler().sendDialogues(1373, npcType);
} else {
c.getActionSender().sendMessage(
"You need 19 quest points to open this shop.");
"You need " + requiredQP + " quest points to open this shop.");
}
break;
@@ -1004,11 +1005,12 @@ public class NpcActions {
case 537:
case 536:
if (c.questPoints >= 19) {
int requiredQP = Math.min(32, QuestAssistant.MAXIMUM_QUESTPOINTS);
if (c.questPoints >= requiredQP) {
c.getShopAssistant().openShop(npcType);
} else {
c.getActionSender().sendMessage(
"You need 19 quest points to open this shop.");
"You need " + requiredQP + " quest points to open this shop.");
}
break;