From 2e16e2bea70e2ba1218a4acda3f3f9deb0025f53 Mon Sep 17 00:00:00 2001 From: Kam Date: Sun, 3 Mar 2024 05:53:54 -0500 Subject: [PATCH] Disable Area Kill for Parties --- .../java/noppes/npcs/ServerEventsHandler.java | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/main/java/noppes/npcs/ServerEventsHandler.java b/src/main/java/noppes/npcs/ServerEventsHandler.java index f84735a3b..4354b6537 100644 --- a/src/main/java/noppes/npcs/ServerEventsHandler.java +++ b/src/main/java/noppes/npcs/ServerEventsHandler.java @@ -341,18 +341,20 @@ public class ServerEventsHandler { if (data.quest.type != EnumQuestType.Kill && data.quest.type != EnumQuestType.AreaKill) continue; - if (data.quest.type == EnumQuestType.AreaKill && all) { - List list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10)); - for (EntityPlayer pl : list) { - if (pl != player) { - if(party == null){ - doQuest(pl, entity, false); - } else if(!party.hasPlayer(pl.getUniqueID())){ - doQuest(pl, entity, false); - } - } - } - } +// Disable Area Kill for Party +// if (data.quest.type == EnumQuestType.AreaKill && all) { +// List list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10)); +// for (EntityPlayer pl : list) { +// if (pl != player) { +// if(party == null){ +// doQuest(pl, entity, false); +// } else if(!party.hasPlayer(pl.getUniqueID())){ +// doQuest(pl, entity, false); +// } +// } +// } +// } + String name = entityName; QuestKill quest = (QuestKill) data.quest.questInterface;