mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 16:49:04 +00:00
require all quest complete or 32 QP
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user