Page 1 of 1

Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Posted: Sat Oct 14, 2017 4:44 am
by ShinichiYao
Quest taken by multiplayer, Cond and MemoState are both 5, mobs are killed but talk to NPC always return "32784-07.html"

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Posted: Wed Dec 20, 2017 1:41 am
by ShinichiYao
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);
	}

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Posted: Wed Dec 20, 2017 1:48 am
by ShinichiYao
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;
			}

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Posted: Tue May 15, 2018 10:54 am
by Avanael92
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.