Reuse of party range configuration.

This commit is contained in:
MobiusDev
2019-01-23 03:14:45 +00:00
parent 283f87c38e
commit bf417153d9
840 changed files with 1948 additions and 979 deletions

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00022_TragedyInVonHellmannForest;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
@@ -352,7 +353,7 @@ public final class Q00022_TragedyInVonHellmannForest extends Quest
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
if (Util.checkIfInRange(1500, killer, npc, true))
if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, killer, npc, true))
{
if (npc.getId() == SOUL_OF_WELL)
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00060_GoodWorksReward;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.Race;
@@ -1153,7 +1154,7 @@ public final class Q00060_GoodWorksReward extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (qs.isMemoState(1))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00062_PathOfTheTrooper;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -98,7 +99,7 @@ public final class Q00062_PathOfTheTrooper extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00063_PathOfTheWarder;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -237,7 +238,7 @@ public final class Q00063_PathOfTheWarder extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00064_CertifiedBerserker;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -198,7 +199,7 @@ public final class Q00064_CertifiedBerserker extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00065_CertifiedSoulBreaker;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.ChatType;
@@ -297,7 +298,7 @@ public final class Q00065_CertifiedSoulBreaker extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00066_CertifiedArbalester;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -422,7 +423,7 @@ public final class Q00066_CertifiedArbalester extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00103_SpiritOfCraftsman;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -245,7 +246,7 @@ public final class Q00103_SpiritOfCraftsman extends Quest
{
case MARSH_ZOMBIE:
{
if (hasQuestItems(killer, PRESERVE_OIL) && (getRandom(10) < 5) && Util.checkIfInRange(1500, npc, killer, true))
if (hasQuestItems(killer, PRESERVE_OIL) && (getRandom(10) < 5) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
giveItems(killer, ZOMBIE_HEAD, 1);
takeItems(killer, PRESERVE_OIL, -1);

View File

@@ -19,6 +19,7 @@ package quests.Q00105_SkirmishWithOrcs;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -118,7 +119,7 @@ public final class Q00105_SkirmishWithOrcs extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00106_ForgottenTruth;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -91,7 +92,7 @@ public final class Q00106_ForgottenTruth extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(2) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && st.isCond(2) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if ((getRandom(100) < 20) && hasQuestItems(killer, ONYX_TALISMAN2))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00107_MercilessPunishment;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -246,7 +247,7 @@ public final class Q00107_MercilessPunishment extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (qs.getCond())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00108_JumbleTumbleDiamondFuss;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -505,7 +506,7 @@ public final class Q00108_JumbleTumbleDiamondFuss extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00117_TheOceanOfDistantStars;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -198,7 +199,7 @@ public final class Q00117_TheOceanOfDistantStars extends Quest
{
final QuestState qs = getRandomPartyMemberState(killer, 7, 3, npc);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00118_ToLeadAndBeLed;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.L2World;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -86,7 +87,7 @@ public final class Q00118_ToLeadAndBeLed extends Quest
{
case "sponsor":
{
if (!Util.checkIfInRange(1500, npc, apprentice, true))
if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, apprentice, true))
{
htmltext = "30298-09.html";
}
@@ -109,7 +110,7 @@ public final class Q00118_ToLeadAndBeLed extends Quest
}
case "30298-10.html":
{
if (Util.checkIfInRange(1500, npc, apprentice, true) && (q118 != null) && q118.isMemoState(2))
if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, apprentice, true) && (q118 != null) && q118.isMemoState(2))
{
switch (q118.getMemoStateEx(1))
{
@@ -246,7 +247,7 @@ public final class Q00118_ToLeadAndBeLed extends Quest
if (killer.getSponsor() > 0)
{
final L2PcInstance c0 = L2World.getInstance().getPlayer(killer.getSponsor());
if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
if ((c0 != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, c0, true))
{
if (giveItemRandomly(killer, npc, LEG_OF_KING_ARANEID, 1, 8, 7, true))
{
@@ -324,7 +325,7 @@ public final class Q00118_ToLeadAndBeLed extends Quest
else
{
final L2PcInstance c0 = L2World.getInstance().getPlayer(player.getSponsor());
if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
if ((c0 != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, c0, true))
{
htmltext = "30298-07.html";
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00123_TheLeaderAndTheFollower;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.L2World;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -84,7 +85,7 @@ public final class Q00123_TheLeaderAndTheFollower extends Quest
{
case "sponsor":
{
if (!Util.checkIfInRange(1500, npc, apprentice, true))
if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, apprentice, true))
{
htmltext = "31961-09.html";
}
@@ -107,7 +108,7 @@ public final class Q00123_TheLeaderAndTheFollower extends Quest
}
case "31961-10.html":
{
if (Util.checkIfInRange(1500, npc, apprentice, true) && (q123 != null) && q123.isMemoState(2))
if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, apprentice, true) && (q123 != null) && q123.isMemoState(2))
{
switch (q123.getMemoStateEx(1))
{
@@ -243,7 +244,7 @@ public final class Q00123_TheLeaderAndTheFollower extends Quest
if (killer.getSponsor() > 0)
{
final L2PcInstance c0 = L2World.getInstance().getPlayer(killer.getSponsor());
if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
if ((c0 != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, c0, true))
{
if (giveItemRandomly(killer, npc, PICOT_ARANEIDS_LEG, 1, 8, 7, true))
{
@@ -321,7 +322,7 @@ public final class Q00123_TheLeaderAndTheFollower extends Quest
else
{
final L2PcInstance c0 = L2World.getInstance().getPlayer(player.getSponsor());
if ((c0 != null) && Util.checkIfInRange(1500, npc, c0, true))
if ((c0 != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, c0, true))
{
htmltext = "31961-07.html";
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00171_ActsOfEvil;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -158,7 +159,7 @@ public final class Q00171_ActsOfEvil extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00186_ContractExecution;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -147,7 +148,7 @@ public final class Q00186_ContractExecution extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isMemoState(2) && Util.checkIfInRange(1500, npc, killer, false) && (getRandom(100) < MONSTERS.get(npc.getId())) && !hasQuestItems(killer, LETO_LIZARDMAN_ACCESSORY))
if ((qs != null) && qs.isMemoState(2) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false) && (getRandom(100) < MONSTERS.get(npc.getId())) && !hasQuestItems(killer, LETO_LIZARDMAN_ACCESSORY))
{
giveItems(killer, LETO_LIZARDMAN_ACCESSORY, 1);
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00193_SevenSignsDyingMessage;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.Movie;
@@ -219,7 +220,7 @@ public final class Q00193_SevenSignsDyingMessage extends Quest
}
final QuestState qs = getQuestState(partyMember, false);
if (npc.isInsideRadius3D(partyMember, 1500))
if (npc.isInsideRadius3D(partyMember, Config.ALT_PARTY_RANGE))
{
giveItems(player, SCULPTURE_OF_DOUBT, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_FINISH);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00197_SevenSignsTheSacredBookOfSeal;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
@@ -230,7 +231,7 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
}
final QuestState qs = getQuestState(partyMember, false);
if (npc.isInsideRadius3D(partyMember, 1500))
if (npc.isInsideRadius3D(partyMember, Config.ALT_PARTY_RANGE))
{
giveItems(player, SCULPTURE_OF_DOUBT, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_FINISH);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00198_SevenSignsEmbryo;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.Movie;
@@ -172,7 +173,7 @@ public final class Q00198_SevenSignsEmbryo extends Quest
}
final QuestState qs = getQuestState(partyMember, false);
if (npc.isInsideRadius3D(partyMember, 1500))
if (npc.isInsideRadius3D(partyMember, Config.ALT_PARTY_RANGE))
{
giveItems(partyMember, SCULPTURE_OF_DOUBT, 1);
qs.setCond(2, true);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00211_TrialOfTheChallenger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.datatables.SpawnTable;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
@@ -382,7 +383,7 @@ public final class Q00211_TrialOfTheChallenger extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return super.onKill(npc, killer, isSummon);
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00212_TrialOfDuty;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -149,7 +150,7 @@ public final class Q00212_TrialOfDuty extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, killer, npc, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, killer, npc, true))
{
return super.onKill(npc, killer, isSummon);
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00213_TrialOfTheSeeker;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -248,7 +249,7 @@ public final class Q00213_TrialOfTheSeeker extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00214_TrialOfTheScholar;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -409,7 +410,7 @@ public final class Q00214_TrialOfTheScholar extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00215_TrialOfThePilgrim;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -196,7 +197,7 @@ public final class Q00215_TrialOfThePilgrim extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00216_TrialOfTheGuildsman;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -312,7 +313,7 @@ public final class Q00216_TrialOfTheGuildsman extends Quest
case MANDRAGORA_SPROUT2:
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (hasQuestItems(killer, VALKONS_RECOMMENDATION) && !hasQuestItems(killer, MANDRAGORA_BERRY))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00217_TestimonyOfTrust;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -238,7 +239,7 @@ public final class Q00217_TestimonyOfTrust extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00218_TestimonyOfLife;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -258,7 +259,7 @@ public final class Q00218_TestimonyOfLife extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00219_TestimonyOfFate;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -214,7 +215,7 @@ public final class Q00219_TestimonyOfFate extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00220_TestimonyOfGlory;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
@@ -432,7 +433,7 @@ public final class Q00220_TestimonyOfGlory extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00221_TestimonyOfProsperity;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -315,7 +316,7 @@ public final class Q00221_TestimonyOfProsperity extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00222_TestOfTheDuelist;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -191,7 +192,7 @@ public final class Q00222_TestOfTheDuelist extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00223_TestOfTheChampion;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -309,7 +310,7 @@ public final class Q00223_TestOfTheChampion extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -18,6 +18,7 @@
*/
package quests.Q00224_TestOfSagittarius;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -188,7 +189,7 @@ public final class Q00224_TestOfSagittarius extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00225_TestOfTheSearcher;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -222,7 +223,7 @@ public final class Q00225_TestOfTheSearcher extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00226_TestOfTheHealer;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -252,7 +253,7 @@ public final class Q00226_TestOfTheHealer extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00227_TestOfTheReformer;
import java.util.Arrays;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
@@ -266,7 +267,7 @@ public final class Q00227_TestOfTheReformer extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00228_TestOfMagus;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -189,7 +190,7 @@ public final class Q00228_TestOfMagus extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00229_TestOfWitchcraft;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.Location;
@@ -350,7 +351,7 @@ public final class Q00229_TestOfWitchcraft extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00230_TestOfTheSummoner;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -711,7 +712,7 @@ public final class Q00230_TestOfTheSummoner extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00231_TestOfTheMaestro;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -171,7 +172,7 @@ public final class Q00231_TestOfTheMaestro extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00232_TestOfTheLord;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.Location;
@@ -230,7 +231,7 @@ public final class Q00232_TestOfTheLord extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00233_TestOfTheWarSpirit;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -200,7 +201,7 @@ public final class Q00233_TestOfTheWarSpirit extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00234_FatesWhisper;
import java.util.ArrayList;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -1215,7 +1216,7 @@ public final class Q00234_FatesWhisper extends Quest
{
final QuestState qss = getQuestState(pm, false);
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && !hasQuestItems(player, Q_WHITE_FABRIC_Q0234) && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && !hasQuestItems(player, Q_WHITE_FABRIC_Q0234) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00236_SeedsOfChaos;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
@@ -666,7 +667,7 @@ public final class Q00236_SeedsOfChaos extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00261_CollectorsDream;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -74,7 +75,7 @@ public final class Q00261_CollectorsDream extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && st.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (giveItemRandomly(killer, SPIDER_LEG, 1, MAX_LEG_COUNT, 1, true))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00270_TheOneWhoEndsSilence;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -445,7 +446,7 @@ public class Q00270_TheOneWhoEndsSilence extends Quest
*/
private static void giveItem(L2PcInstance player, L2Npc npc, int chance, boolean atLeastOne)
{
if ((player != null) && Util.checkIfInRange(1500, npc, player, false))
if ((player != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false))
{
final int count = ((getRandom(1000) < chance) ? 1 : 0) + (atLeastOne ? 1 : 0);
if (count > 0)

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00275_DarkWingedSpies;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.ai.CtrlIntention;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Attackable;
@@ -73,7 +74,7 @@ public final class Q00275_DarkWingedSpies extends Quest
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && st.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final long count = getQuestItemsCount(killer, DARKWING_BAT_FANG);

View File

@@ -19,6 +19,7 @@ package quests.Q00276_TotemOfTheHestui;
import java.util.ArrayList;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -88,7 +89,7 @@ public final class Q00276_TotemOfTheHestui extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, killer, npc, true))
if ((st != null) && st.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, killer, npc, true))
{
switch (npc.getId())
{

View File

@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -154,7 +155,7 @@ public final class Q00280_TheFoodChain extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final int chance = getRandom(1000);
for (ItemHolder dropChance : MONSTER_CHANCE.get(npc.getId()))

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00288_HandleWithCare;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -164,7 +165,7 @@ public class Q00288_HandleWithCare extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, killer, false))
if ((st != null) && st.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false))
{
if (!hasQuestItems(killer, MIDDLE_GRADE_LIZARD_SCALE))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00291_RevengeOfTheRedbonnet;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -69,7 +70,7 @@ public final class Q00291_RevengeOfTheRedbonnet extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (giveItemRandomly(qs.getPlayer(), npc, BLACK_WOLF_PELT.getId(), 1, BLACK_WOLF_PELT.getCount(), 1.0, true))
{

View File

@@ -19,6 +19,7 @@ package quests.Q00292_BrigandsSweep;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -111,7 +112,7 @@ public final class Q00292_BrigandsSweep extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final int chance = getRandom(10);
if (chance > 5)

View File

@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -75,7 +76,7 @@ public final class Q00294_CovertBusiness extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final int chance = getRandom(10);
int count = 0;

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00295_DreamingOfTheSkies;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -64,7 +65,7 @@ public final class Q00295_DreamingOfTheSkies extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (giveItemRandomly(killer, npc, FLOATING_STONE, (getRandom(100) > 25) ? 1 : 2, 50, 1.0, true))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00296_TarantulasSpiderSilk;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -118,7 +119,7 @@ public final class Q00296_TarantulasSpiderSilk extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final int chance = getRandom(100);
if (chance > 95)

View File

@@ -19,6 +19,7 @@ package quests.Q00306_CrystalOfFireAndIce;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -155,7 +156,7 @@ public final class Q00306_CrystalOfFireAndIce extends Quest
private static void giveKillReward(L2PcInstance player, L2Npc npc)
{
if (Util.checkIfInRange(1500, npc, player, false))
if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false))
{
final ItemHolder item = MONSTER_DROPS.get(npc.getId());
giveItemRandomly(player, npc, item.getId(), 1, 0, 1000.0 / item.getCount(), true);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00313_CollectSpores;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -81,7 +82,7 @@ public final class Q00313_CollectSpores extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, killer, false))
if ((st != null) && st.isCond(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false))
{
if (giveItemRandomly(killer, npc, SPORE_SAC, 1, REQUIRED_SAC_COUNT, 0.4, true))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00319_ScentOfDeath;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -82,7 +83,7 @@ public class Q00319_ScentOfDeath extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && Util.checkIfInRange(1500, npc, killer, false) && (getQuestItemsCount(killer, ZOMBIES_SKIN) < REQUIRED_ITEM_COUNT))
if ((st != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false) && (getQuestItemsCount(killer, ZOMBIES_SKIN) < REQUIRED_ITEM_COUNT))
{
if (getRandom(10) > MIN_CHANCE)
{

View File

@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.QuestItemHolder;
@@ -197,7 +198,7 @@ public final class Q00325_GrimCollector extends Quest
return super.onKill(npc, killer, isSummon);
}
if (!Util.checkIfInRange(1500, killer, npc, true) || !hasQuestItems(killer, ANATOMY_DIAGRAM))
if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE, killer, npc, true) || !hasQuestItems(killer, ANATOMY_DIAGRAM))
{
return super.onKill(npc, killer, isSummon);
}

View File

@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -99,7 +100,7 @@ public final class Q00329_CuriosityOfADwarf extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && Util.checkIfInRange(1500, npc, killer, true))
if ((st != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final int rnd = getRandom(100);
for (ItemHolder drop : MONSTER_DROPS.get(npc.getId()))

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00330_AdeptOfTaste;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -183,7 +184,7 @@ public final class Q00330_AdeptOfTaste extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00333_HuntOfTheBlackLion;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -691,7 +692,7 @@ public final class Q00333_HuntOfTheBlackLion extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00334_TheWishingPotion;
import java.util.ArrayList;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -1074,7 +1075,7 @@ public final class Q00334_TheWishingPotion extends Quest
{
final QuestState qss = pm.getQuestState(getName());
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}

View File

@@ -19,6 +19,7 @@ package quests.Q00336_CoinsOfMagic;
import java.util.ArrayList;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -1797,7 +1798,7 @@ public final class Q00336_CoinsOfMagic extends Quest
player.getParty().getMembers().stream().forEach(pm ->
{
final QuestState qss = getQuestState(pm, false);
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}
@@ -1821,7 +1822,7 @@ public final class Q00336_CoinsOfMagic extends Quest
player.getParty().getMembers().stream().forEach(pm ->
{
final QuestState qss = getQuestState(pm, false);
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && !hasQuestItems(player, Q_KALDIS_GOLD_DRAGON) && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && (qss.getMemoState() == memoState) && !hasQuestItems(player, Q_KALDIS_GOLD_DRAGON) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00337_AudienceWithTheLandDragon;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -262,7 +263,7 @@ public final class Q00337_AudienceWithTheLandDragon extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00340_SubjugationOfLizardmen;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -155,7 +156,7 @@ public final class Q00340_SubjugationOfLizardmen extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00343_UnderTheShadowOfTheIvoryTower;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -506,7 +507,7 @@ public final class Q00343_UnderTheShadowOfTheIvoryTower extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00345_MethodToRaiseTheDead;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -196,7 +197,7 @@ public final class Q00345_MethodToRaiseTheDead extends Quest
{
final QuestState qs = getRandomPartyMemberState(killer, 1, 3, npc);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00348_AnArrogantSearch;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -385,7 +386,7 @@ public class Q00348_AnArrogantSearch extends Quest
case PLATINUM_TRIBE_SHAMAN:
{
final QuestState st = getRandomPartyMemberState(attacker, -1, 3, npc);
if ((st != null) && npc.isInsideRadius3D(attacker, 1500))
if ((st != null) && npc.isInsideRadius3D(attacker, Config.ALT_PARTY_RANGE))
{
if (((st.getMemoStateEx(0) == 12) || (st.getMemoStateEx(0) == 13)) && hasQuestItems(st.getPlayer(), WHITE_FABRIC_1))
{
@@ -419,7 +420,7 @@ public class Q00348_AnArrogantSearch extends Quest
case PLATINUM_TRIBE_OVERLORD:
{
final QuestState st = getRandomPartyMemberState(attacker, -1, 3, npc);
if ((st != null) && npc.isInsideRadius3D(attacker, 1500))
if ((st != null) && npc.isInsideRadius3D(attacker, Config.ALT_PARTY_RANGE))
{
if (((st.getMemoStateEx(0) == 12) || (st.getMemoStateEx(0) == 13)) && hasQuestItems(st.getPlayer(), WHITE_FABRIC_1))
{
@@ -458,13 +459,13 @@ public class Q00348_AnArrogantSearch extends Quest
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState st = getRandomPartyMemberState(player, -1, 3, npc);
if ((st != null) && npc.isInsideRadius3D(player, 1500))
if ((st != null) && npc.isInsideRadius3D(player, Config.ALT_PARTY_RANGE))
{
switch (npc.getId())
{
case ARK_GUARDIAN_ELBEROTH:
{
if (npc.isInsideRadius3D(player, 1500))
if (npc.isInsideRadius3D(player, Config.ALT_PARTY_RANGE))
{
if ((st.getMemoStateEx(0) < 8) && (((st.getMemoStateEx(1) % 1000) / 100) == 1) && !hasQuestItems(st.getPlayer(), SECOND_KEY_OF_ARK) && !hasQuestItems(st.getPlayer(), BOOK_OF_SAINT))
{
@@ -483,7 +484,7 @@ public class Q00348_AnArrogantSearch extends Quest
}
case ARK_GUARDIAN_SHADOWFANG:
{
if (npc.isInsideRadius3D(player, 1500))
if (npc.isInsideRadius3D(player, Config.ALT_PARTY_RANGE))
{
if ((st.getMemoStateEx(0) < 8) && (((st.getMemoStateEx(1) % 10000) / 1000) == 1) && !hasQuestItems(st.getPlayer(), THIRD_KEY_OF_ARK) && !hasQuestItems(st.getPlayer(), BOUGH_OF_SAINT))
{
@@ -503,7 +504,7 @@ public class Q00348_AnArrogantSearch extends Quest
case YINTZU:
case PALIOTE:
{
if (npc.isInsideRadius3D(player, 1500) && st.isMemoState(1) && !hasQuestItems(st.getPlayer(), SHELL_OF_MONSTERS))
if (npc.isInsideRadius3D(player, Config.ALT_PARTY_RANGE) && st.isMemoState(1) && !hasQuestItems(st.getPlayer(), SHELL_OF_MONSTERS))
{
giveItems(st.getPlayer(), SHELL_OF_MONSTERS, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);

View File

@@ -19,6 +19,7 @@ package quests.Q00351_BlackSwan;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -147,7 +148,7 @@ public final class Q00351_BlackSwan extends Quest
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -19,6 +19,7 @@ package quests.Q00352_HelpRoodRaiseANewPet;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -120,7 +121,7 @@ public final class Q00352_HelpRoodRaiseANewPet extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -19,6 +19,7 @@ package quests.Q00355_FamilyHonor;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -194,7 +195,7 @@ public final class Q00355_FamilyHonor extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -19,6 +19,7 @@ package quests.Q00356_DigUpTheSeaOfSpores;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -138,7 +139,7 @@ public final class Q00356_DigUpTheSeaOfSpores extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -19,6 +19,7 @@ package quests.Q00360_PlunderTheirSupplies;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -97,7 +98,7 @@ public final class Q00360_PlunderTheirSupplies extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isPet)
{
final QuestState st = getQuestState(killer, false);
if ((st == null) || !Util.checkIfInRange(1500, npc, killer, false))
if ((st == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false))
{
return super.onKill(npc, killer, isPet);
}

View File

@@ -19,6 +19,7 @@ package quests.Q00371_ShrieksOfGhosts;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
@@ -185,7 +186,7 @@ public final class Q00371_ShrieksOfGhosts extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -19,6 +19,7 @@ package quests.Q00372_LegacyOfInsolence;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -466,7 +467,7 @@ public final class Q00372_LegacyOfInsolence extends Quest
return super.onKill(npc, killer, isSummon);
}
if (Util.checkIfInRange(1500, npc, killer, true) && (getRandom(1000) < item.getChance()))
if (Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true) && (getRandom(1000) < item.getChance()))
{
L2PcInstance rewardedPlayer = null;
if (!killer.isInParty())
@@ -495,7 +496,7 @@ public final class Q00372_LegacyOfInsolence extends Quest
}
}
if ((rewardedPlayer != null) && Util.checkIfInRange(1500, npc, rewardedPlayer, true))
if ((rewardedPlayer != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, rewardedPlayer, true))
{
giveItems(rewardedPlayer, item.getId(), item.getCount());
playSound(rewardedPlayer, QuestSound.ITEMSOUND_QUEST_ITEMGET);

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00379_FantasyWine;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemHolder;
@@ -115,7 +116,7 @@ public final class Q00379_FantasyWine extends Quest
{
final QuestState qs = getQuestState(killer, false);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if ((qs == null) || !Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
return null;
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00381_LetsBecomeARoyalMember;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -172,7 +173,7 @@ public final class Q00381_LetsBecomeARoyalMember extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (npc.getId() == ANCIENT_GARGOYLE)
{

View File

@@ -19,6 +19,7 @@ package quests.Q00382_KailsMagicCoin;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.holders.ItemChanceHolder;
@@ -119,7 +120,7 @@ public final class Q00382_KailsMagicCoin extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && hasQuestItems(killer, ROYAL_MEMBERSHIP) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && hasQuestItems(killer, ROYAL_MEMBERSHIP) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (npc.getId() == FALLEN_ORC_CAPTAIN)
{

View File

@@ -21,6 +21,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -825,7 +826,7 @@ public final class Q00384_WarehouseKeepersPastime extends Quest
{
QuestState qss = getQuestState(pm, false);
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}

View File

@@ -21,6 +21,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -888,7 +889,7 @@ public final class Q00386_StolenDignity extends Quest
player.getParty().getMembers().stream().forEach(pm ->
{
final QuestState qss = getQuestState(pm, false);
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(1500, npc, pm, true))
if ((qss != null) && qss.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, pm, true))
{
candidates.add(qss);
}

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00401_PathOfTheWarrior;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -190,7 +191,7 @@ public final class Q00401_PathOfTheWarrior extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00402_PathOfTheHumanKnight;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -243,7 +244,7 @@ public final class Q00402_PathOfTheHumanKnight extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00403_PathOfTheRogue;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -215,7 +216,7 @@ public final class Q00403_PathOfTheRogue extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (npc.getId() == CATS_EYE_BANDIT)
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00404_PathOfTheHumanWizard;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -133,7 +134,7 @@ public final class Q00404_PathOfTheHumanWizard extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00405_PathOfTheCleric;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -118,7 +119,7 @@ public final class Q00405_PathOfTheCleric extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
if (hasQuestItems(killer, NECKLACE_OF_MOTHER) && !hasQuestItems(killer, PENDANT_OF_MOTHER))
{

View File

@@ -19,6 +19,7 @@ package quests.Q00406_PathOfTheElvenKnight;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -146,7 +147,7 @@ public final class Q00406_PathOfTheElvenKnight extends Quest
check = hasQuestItems(killer, requiredItemId);
}
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, false))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false))
{
if (check && (getQuestItemsCount(killer, reward.getId()) < 20) && (getRandom(100) < reward.getChance()))
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00407_PathOfTheElvenScout;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -145,7 +146,7 @@ public final class Q00407_PathOfTheElvenScout extends Quest
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
if (npc.isScriptValue(killer.getObjectId()) && Util.checkIfInRange(1500, npc, killer, false))
if (npc.isScriptValue(killer.getObjectId()) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, false))
{
final QuestState qs = getQuestState(killer, false);
if (qs == null)

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00408_PathOfTheElvenWizard;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -199,7 +200,7 @@ public final class Q00408_PathOfTheElvenWizard extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00409_PathOfTheElvenOracle;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -207,7 +208,7 @@ public final class Q00409_PathOfTheElvenOracle extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00410_PathOfThePalusKnight;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -153,7 +154,7 @@ public final class Q00410_PathOfThePalusKnight extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00411_PathOfTheAssassin;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -148,7 +149,7 @@ public final class Q00411_PathOfTheAssassin extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00412_PathOfTheDarkWizard;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -173,7 +174,7 @@ public final class Q00412_PathOfTheDarkWizard extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00413_PathOfTheShillienOracle;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -153,7 +154,7 @@ public final class Q00413_PathOfTheShillienOracle extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00414_PathOfTheOrcRaider;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -161,7 +162,7 @@ public final class Q00414_PathOfTheOrcRaider extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00415_PathOfTheOrcMonk;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -275,7 +276,7 @@ public final class Q00415_PathOfTheOrcMonk extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && npc.isScriptValue(1) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
final long ItemCount = getQuestItemsCount(killer, RATMAN_FANG, LANGK_LIZARDMAN_TOOTH, FELIM_LIZARDMAN_TOOTH, VUKU_ORK_TUSK);
switch (npc.getId())

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00417_PathOfTheScavenger;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.actor.L2Attackable;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -388,7 +389,7 @@ public final class Q00417_PathOfTheScavenger extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true) && npc.isAttackable())
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true) && npc.isAttackable())
{
final boolean firstAttacker = (killer.getObjectId() == npc.getVariables().getInt(FIRST_ATTACKER));
switch (npc.getId())

View File

@@ -16,6 +16,7 @@
*/
package quests.Q00418_PathOfTheArtisan;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
@@ -413,7 +414,7 @@ public final class Q00418_PathOfTheArtisan extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

View File

@@ -19,6 +19,7 @@ package quests.Q00419_GetAPet;
import java.util.HashMap;
import java.util.Map;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
@@ -370,7 +371,7 @@ public final class Q00419_GetAPet extends Quest
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(1500, npc, killer, true))
if ((qs != null) && qs.isStarted() && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, killer, true))
{
switch (npc.getId())
{

Some files were not shown because too many files have changed in this diff Show More