Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
Quest taken by multiplayer, Cond and MemoState are both 5, mobs are killed but talk to NPC always return "32784-07.html"
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
Could be ...?
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);
}
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
Or ...?
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;
}
- Avanael92
- Advanced User
- Posts: 189
- Joined: Thu Aug 07, 2014 5:26 pm
- Location: Germany
Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt
You still curious about it? I'm currently administrating a midrate server, so I had this problem too.
Variable "killCount" is global which means, every player who enters the instance, has access to it. So only the first player may finish up the quest while the following players couldn't, because killCount gets higher than 2. It doesn't reset anywhere.
Just reset killCount to 0 just before those 2 mobs are being spawned.
Variable "killCount" is global which means, every player who enters the instance, has access to it. So only the first player may finish up the quest while the following players couldn't, because killCount gets higher than 2. It doesn't reset anywhere.
Just reset killCount to 0 just before those 2 mobs are being spawned.