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

BETA: Quest-related fixes:

	* !ArrayIndexOutOfBoundsException for quests '''Alliance with Ketra Orcs''' (605) and '''Alliance with Varka Silenos''' (611).
	* Level check for quest '''Inhabitants of the Forest of the Dead''' (24).
Reported by: lion
Patch by: lion
parent 6040046f
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ public class Q00024_InhabitantsOfTheForestOfTheDead extends Quest
// Dorian
case "31389-02.htm":
final QuestState qs = player.getQuestState("23_LidiasHeart");
if ((player.getLevel() > 65) && (qs != null) && qs.isCompleted())
if ((player.getLevel() >= 65) && (qs != null) && qs.isCompleted())
{
st.startQuest();
st.giveItems(FLOWER_BOUQUET, 1);
......
......@@ -271,7 +271,7 @@ public class Q00605_AllianceWithKetraOrcs extends Quest
{
final QuestState st = member.getQuestState(getName());
final DropInfo info = MOBS.get(npc.getId());
if ((st.getCond() >= info.getMinCond()) && canGetItem(st, info.getItemId()) && (getRandom(1000) < info.getChance()))
if ((st.getCond() >= info.getMinCond()) && (st.getCond() < 6) && canGetItem(st, info.getItemId()) && (getRandom(1000) < info.getChance()))
{
st.giveItems(info.getItemId(), 1);
}
......
......@@ -271,7 +271,7 @@ public class Q00611_AllianceWithVarkaSilenos extends Quest
{
final QuestState st = member.getQuestState(getName());
final DropInfo info = MOBS.get(npc.getId());
if ((st.getCond() >= info.getMinCond()) && canGetItem(st, info.getItemId()) && (getRandom(1000) < info.getChance()))
if ((st.getCond() >= info.getMinCond()) && (st.getCond() < 6) && canGetItem(st, info.getItemId()) && (getRandom(1000) < info.getChance()))
{
st.giveItems(info.getItemId(), 1);
}
......
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