Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
Posted: Sat Oct 14, 2017 4:44 am
Quest taken by multiplayer, Cond and MemoState are both 5, mobs are killed but talk to NPC always return "32784-07.html"
L2J Server Discussion Board
https://l2jserver.com/forum/
Code: Select all
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final QuestState st = getRandomPartyMemberState(player, -1, 3, npc);
if (st != null)
{
if (Util.contains(MOBS, npc.getId()))
{
if (giveItemRandomly(st.getPlayer(), npc, ELCADIAS_MARK.getId(), 1, ELCADIAS_MARK.getCount(), 0.7, true) && st.isMemoState(3))
{
st.setCond(4, true);
}
}
else
{
killCount++;
--- if (killCount == 2)
+++ if (killCount >= 2)
{
st.setMemoState(6);
st.setCond(6);
}
}
}
return super.onKill(npc, player, isSummon);
}
Code: Select all
case "SPAWN":
{
if (!npc.getVariables().getBoolean(I_QUEST1, false))
{
npc.getVariables().set(I_QUEST1, true);
addSpawn(CREATURE_OF_THE_DUSK1, 89440, -238016, -9632, getRandom(360), false, 0, false, player.getInstanceId());
addSpawn(CREATURE_OF_THE_DUSK2, 89524, -238131, -9632, getRandom(360), false, 0, false, player.getInstanceId());
}
else
{
htmltext = "32784-07.html";
+++ npc.getVariables().set(I_QUEST1, false);
}
break;
}