Skip to content
Snippets Groups Projects
Commit d012c6ab authored by Adry_85's avatar Adry_85
Browse files

Minor fixes for the last committed quests.

	Reported by: @jurchiks
parent 8ef02781
No related branches found
No related tags found
No related merge requests found
......@@ -302,13 +302,17 @@ public final class Q00383_TreasureHunt extends Quest
String htmltext = getNoQuestMsg(player);
if (qs.isCreated())
{
if (player.getLevel() >= MIN_LEVEL)
if (player.getLevel() < MIN_LEVEL)
{
htmltext = (hasQuestItems(player, PIRATES_TREASURE_MAP)) ? "30890-03.htm" : "30890-02.html";
htmltext = "30890-01.html";
}
else if (!hasQuestItems(player, PIRATES_TREASURE_MAP))
{
htmltext = "30890-02.html";
}
else
{
htmltext = "30890-01.html";
htmltext = "30890-03.htm";
}
}
else if (qs.isStarted())
......
......@@ -25,7 +25,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.util.Util;
/**
* A Powerful Primeval Creature (642)
......@@ -127,7 +126,7 @@ public class Q00642_APowerfulPrimevalCreature extends Quest
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if ((qs == null) || !Util.checkIfInRange(1500, npc, killer, true))
if (qs == null)
{
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment