Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Post by ShinichiYao »

Quest taken by multiplayer, Cond and MemoState are both 5, mobs are killed but talk to NPC always return "32784-07.html"
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Post 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);
	}
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Post 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;
			}
User avatar
Avanael92
Advanced User
Advanced User
Posts: 189
Joined: Thu Aug 07, 2014 5:26 pm
Location: Germany

Re: Stuck at Cond 5 Q10292_SevenSignsGirlOfDoubt

Post 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.
Post Reply