return;
}
for(L2PcInstance mem : player.getParty().getPartyMembers())
{
QuestState qs = mem.getQuestState(QUEST_ID);
if(qs == null || !qs.isStarted() && !qs.isCompleted())
{
showHtmlFile(player, npcId + "-NS.htm", npc, mem);
return;
}
if(mem.getInventory().getItemByItemId(ENTRANCE_PASS) == null)
{
showHtmlFile(player, npcId + "-SE.htm", npc, mem);
return;
}
if(mem.getWeightPenalty() >= 3)
{
mem.sendPacket(new SystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
return;
}
}
}
else if(Config.FS_PARTY_MEMBER_COUNT <= 1 && player.isInParty())
{
if(!player.getParty().isLeader(player))
{
showHtmlFile(player, npcId + "-NL.htm", npc, null);
return;
}
for(L2PcInstance mem : player.getParty().getPartyMembers())
{
QuestState qs = mem.getQuestState(QUEST_ID);
if(qs == null || !qs.isStarted() && !qs.isCompleted())
{
showHtmlFile(player, npcId + "-NS.htm", npc, mem);
return;
}
if(mem.getInventory().getItemByItemId(ENTRANCE_PASS) == null)
{
showHtmlFile(player, npcId + "-SE.htm", npc, mem);
return;
}
if(mem.getWeightPenalty() >= 3)
{
mem.sendPacket(new SystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
return;
}
}
}
else
{
QuestState qs = player.getQuestState(QUEST_ID);
if(qs == null || !qs.isStarted() && !qs.isCompleted())
{
showHtmlFile(player, npcId + "-NS.htm", npc, player);
return;
}