Reuse of party range configuration.
This commit is contained in:
		@@ -19,6 +19,7 @@ package quests.Q00070_SagaOfThePhoenixKnight;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00070_SagaOfThePhoenixKnight 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00071_SagaOfEvasTemplar;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00071_SagaOfEvasTemplar 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00072_SagaOfTheSwordMuse;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00072_SagaOfTheSwordMuse 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00073_SagaOfTheDuelist;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00073_SagaOfTheDuelist 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00074_SagaOfTheDreadnought;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00074_SagaOfTheDreadnought 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00075_SagaOfTheTitan;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00075_SagaOfTheTitan 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00076_SagaOfTheGrandKhavatari;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00076_SagaOfTheGrandKhavatari 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00077_SagaOfTheDominator;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00077_SagaOfTheDominator 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00078_SagaOfTheDoomcryer;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00078_SagaOfTheDoomcryer 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00079_SagaOfTheAdventurer;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00079_SagaOfTheAdventurer 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00080_SagaOfTheWindRider;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00080_SagaOfTheWindRider 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00081_SagaOfTheGhostHunter;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00081_SagaOfTheGhostHunter 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00082_SagaOfTheSagittarius;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00082_SagaOfTheSagittarius 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00083_SagaOfTheMoonlightSentinel;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00083_SagaOfTheMoonlightSentinel 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00084_SagaOfTheGhostSentinel;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00084_SagaOfTheGhostSentinel 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00085_SagaOfTheCardinal;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -445,7 +446,7 @@ public class Q00085_SagaOfTheCardinal 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00086_SagaOfTheHierophant;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -445,7 +446,7 @@ public class Q00086_SagaOfTheHierophant 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00087_SagaOfEvasSaint;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00087_SagaOfEvasSaint 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00088_SagaOfTheArchmage;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00088_SagaOfTheArchmage 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00089_SagaOfTheMysticMuse;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00089_SagaOfTheMysticMuse 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00090_SagaOfTheStormScreamer;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00090_SagaOfTheStormScreamer 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00091_SagaOfTheArcanaLord;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -445,7 +446,7 @@ public class Q00091_SagaOfTheArcanaLord 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00092_SagaOfTheElementalMaster;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00092_SagaOfTheElementalMaster 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00093_SagaOfTheSpectralMaster;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00093_SagaOfTheSpectralMaster 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00094_SagaOfTheSoultaker;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00094_SagaOfTheSoultaker 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00095_SagaOfTheHellKnight;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -434,7 +435,7 @@ public class Q00095_SagaOfTheHellKnight 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00096_SagaOfTheSpectralDancer;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00096_SagaOfTheSpectralDancer 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00097_SagaOfTheShillienTemplar;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00097_SagaOfTheShillienTemplar 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00098_SagaOfTheShillienSaint;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -435,7 +436,7 @@ public class Q00098_SagaOfTheShillienSaint 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00099_SagaOfTheFortuneSeeker;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00099_SagaOfTheFortuneSeeker 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,7 @@ package quests.Q00100_SagaOfTheMaestro;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
 | 
			
		||||
import com.l2jmobius.gameserver.model.base.ClassId;
 | 
			
		||||
@@ -432,7 +433,7 @@ public class Q00100_SagaOfTheMaestro 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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -359,7 +360,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);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -137,7 +138,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);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -237,7 +238,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -398,7 +399,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -185,7 +186,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -301,7 +302,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))
 | 
			
		||||
					{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -227,7 +228,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -248,7 +249,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -203,7 +204,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -421,7 +422,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -304,7 +305,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -173,7 +174,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -291,7 +292,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -16,6 +16,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;
 | 
			
		||||
@@ -175,7 +176,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -204,7 +205,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -225,7 +226,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -255,7 +256,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -178,7 +179,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -332,7 +333,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -700,7 +701,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -160,7 +161,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -219,7 +220,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -189,7 +190,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
			
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -116,7 +117,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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -80,7 +81,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)
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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()))
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -136,7 +137,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;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -95,7 +96,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);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
@@ -277,7 +278,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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()))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@
 | 
			
		||||
 */
 | 
			
		||||
package quests.Q00414_PathOfTheOrcRaider;
 | 
			
		||||
 | 
			
		||||
import com.l2jmobius.Config;
 | 
			
		||||
import com.l2jmobius.gameserver.ai.CtrlIntention;
 | 
			
		||||
import com.l2jmobius.gameserver.enums.QuestSound;
 | 
			
		||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
 | 
			
		||||
@@ -163,7 +164,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,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;
 | 
			
		||||
@@ -274,7 +275,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())
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,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.L2MonsterInstance;
 | 
			
		||||
@@ -385,7 +386,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())
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,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;
 | 
			
		||||
@@ -406,7 +407,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())
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
@@ -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.quest.Quest;
 | 
			
		||||
@@ -704,7 +705,7 @@ public final class Q00662_AGameOfCards extends Quest
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		final L2PcInstance player = players.get(getRandom(players.size()));
 | 
			
		||||
		if ((player != null) && Util.checkIfInRange(1500, npc, player, false))
 | 
			
		||||
		if ((player != null) && Util.checkIfInRange(Config.ALT_PARTY_RANGE, npc, player, false))
 | 
			
		||||
		{
 | 
			
		||||
			if (MONSTERS.get(npc.getId()) < getRandom(1000))
 | 
			
		||||
			{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user