diff --git a/2006Redone Server/src/redone/game/content/guilds/Guilds.java b/2006Redone Server/src/redone/game/content/guilds/Guilds.java index 5789db46..70210369 100644 --- a/2006Redone Server/src/redone/game/content/guilds/Guilds.java +++ b/2006Redone Server/src/redone/game/content/guilds/Guilds.java @@ -115,8 +115,9 @@ public class Guilds { public static boolean checkRequirments(Client c, int objectId) { switch (objectId) { case 1805: // Champions Guild - if (c.questPoints < QuestAssistant.MAXIMUM_QUESTPOINTS) { - c.getDialogueHandler().sendStatement("You need " + QuestAssistant.MAXIMUM_QUESTPOINTS + " 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; } diff --git a/2006Redone Server/src/redone/game/npcs/NpcActions.java b/2006Redone Server/src/redone/game/npcs/NpcActions.java index f1b85597..afc7835c 100644 --- a/2006Redone Server/src/redone/game/npcs/NpcActions.java +++ b/2006Redone Server/src/redone/game/npcs/NpcActions.java @@ -90,12 +90,12 @@ public class NpcActions { case 537: case 536: - if (c.questPoints >= QuestAssistant.MAXIMUM_QUESTPOINTS) { + int requiredQP = Math.min(32, QuestAssistant.MAXIMUM_QUESTPOINTS); + if (c.questPoints >= requiredQP) { c.getDialogueHandler().sendDialogues(1373, npcType); } else { c.getActionSender().sendMessage( - "You need " + QuestAssistant.MAXIMUM_QUESTPOINTS - + " quest points to open this shop."); + "You need " + requiredQP + " quest points to open this shop."); } break; @@ -1005,11 +1005,12 @@ public class NpcActions { case 537: case 536: - if (c.questPoints >= QuestAssistant.MAXIMUM_QUESTPOINTS) { + 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; diff --git a/2006Redone Server/src/redone/game/objects/impl/Climbing.java b/2006Redone Server/src/redone/game/objects/impl/Climbing.java index f6b36a55..c2a7eaf4 100644 --- a/2006Redone Server/src/redone/game/objects/impl/Climbing.java +++ b/2006Redone Server/src/redone/game/objects/impl/Climbing.java @@ -42,6 +42,7 @@ public class Climbing { } public static void processClimbing(Client client) { + int chapionsGuildRequiredQP = Math.min(32, QuestAssistant.MAXIMUM_QUESTPOINTS); switch (client.objectId) { case 9584: if (client.objectX == 2932 && client.objectY == 3282) { @@ -134,13 +135,12 @@ public class Climbing { } else if (client.absY == 3445) { client.getPlayerAssistant().movePlayer(3260, 3449, 1); } else if (client.absY == 3358 - && client.questPoints >= QuestAssistant.MAXIMUM_QUESTPOINTS) { + && client.questPoints >= chapionsGuildRequiredQP) { client.getPlayerAssistant().movePlayer(client.absX, 3354, 1); } else if (client.absY == 3358 - && client.questPoints < QuestAssistant.MAXIMUM_QUESTPOINTS) { + && client.questPoints < chapionsGuildRequiredQP) { client.getActionSender().sendMessage( - "You need " + QuestAssistant.MAXIMUM_QUESTPOINTS - + " quest points to use these stairs."); + "You need " + chapionsGuildRequiredQP + " quest points to use these stairs."); } else if (client.absX == 3180) { client.getPlayerAssistant().movePlayer(3176, client.absY, 1); } else if (client.absX == 3159) { @@ -160,13 +160,12 @@ public class Climbing { if (client.absX == 3102) { client.getPlayerAssistant().movePlayer(3098, 3266, 0); } else if (client.absY == 3354 - && client.questPoints >= QuestAssistant.MAXIMUM_QUESTPOINTS) { + && client.questPoints >= chapionsGuildRequiredQP) { client.getPlayerAssistant().movePlayer(client.absX, 3358, 0); } else if (client.absY == 3358 - && client.questPoints < QuestAssistant.MAXIMUM_QUESTPOINTS) { + && client.questPoints < chapionsGuildRequiredQP) { client.getActionSender().sendMessage( - "You need " + QuestAssistant.MAXIMUM_QUESTPOINTS - + " quest points to use these stairs"); + "You need " + chapionsGuildRequiredQP + " quest points to use these stairs"); } else if (client.absY == 3449) { client.getPlayerAssistant().movePlayer(3259, 3445, 0); } else if (client.absX == 3155) { diff --git a/2006Redone Server/src/redone/game/players/Client.java b/2006Redone Server/src/redone/game/players/Client.java index 7bb94942..6feb622e 100644 --- a/2006Redone Server/src/redone/game/players/Client.java +++ b/2006Redone Server/src/redone/game/players/Client.java @@ -633,8 +633,7 @@ public class Client extends Player { AntiBotting.botCheckInterface(this); } if (questPoints > QuestAssistant.MAXIMUM_QUESTPOINTS || playerRights > 2) { - questPoints = QuestAssistant.MAXIMUM_QUESTPOINTS;// check for - // abusers + questPoints = QuestAssistant.MAXIMUM_QUESTPOINTS;// check for abusers } if (playerHitpoints < 0) { isDead = true;