Need to at least check if quest is active when actionForEachPlayer is used.
This commit is contained in:
		| @@ -145,7 +145,7 @@ public final class Q00149_PrimalMotherIstina extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			giveItems(player, SHILENS_MARK, 1); | ||||
| 			qs.setCond(2, true); | ||||
|   | ||||
| @@ -135,7 +135,7 @@ public final class Q00150_ExtremeChallengePrimalMotherResurrected extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			giveItems(player, SHILENS_MARK, 1); | ||||
| 			qs.setCond(2, true); | ||||
|   | ||||
| @@ -157,7 +157,7 @@ public final class Q10316_UndecayingMemoryOfThePast extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			qs.setCond(2, true); | ||||
| 		} | ||||
|   | ||||
| @@ -136,7 +136,7 @@ public final class Q10351_OwnerOfHall extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			qs.setCond(2, true); | ||||
| 		} | ||||
|   | ||||
| @@ -135,7 +135,7 @@ public final class Q10354_ResurrectedOwnerOfHall extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			qs.setCond(2, true); | ||||
| 		} | ||||
|   | ||||
| @@ -170,7 +170,7 @@ public final class Q10818_ConfrontingAGiantMonster extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			if (npc.getId() == TRASKEN) | ||||
| 			{ | ||||
|   | ||||
| @@ -154,7 +154,7 @@ public final class Q10841_DeepInsideAteliaFortress extends Quest | ||||
| 	public void actionForEachPlayer(PlayerInstance player, Npc npc, boolean isSummon) | ||||
| 	{ | ||||
| 		final QuestState qs = getQuestState(player, false); | ||||
| 		if ((qs != null) && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		if ((qs != null) && qs.isStarted() && player.isInsideRadius3D(npc, Config.ALT_PARTY_RANGE)) | ||||
| 		{ | ||||
| 			giveItems(player, KELBIM_ARMOR_PIECE, 1); | ||||
| 			qs.setCond(2, true); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment