//
int npcId = npc.getNpcId();
int cond = qs.getCond();
//
L2Player player = qs.getPlayer();
L2Party party = player.getParty();
//
long refId = player.getReflectionId();
BreakThroughTheHallOfSuffering inst = mSoI.breakThroughTheHallOfSuffering.get(refId);
//
if(npcId == mSoI.npcTepios)
{
if(player.getLevel() < 75)
{
htmltext = "32603-02.htm";
qs.exitCurrentQuest(true);
}
else if(player.getLevel() > 82)
{
htmltext = "32603-02a.htm";
qs.exitCurrentQuest(true);
}
else if(cond == 0)
{
htmltext = "32603-01.htm";
}
else if(cond == 1)
{
htmltext = "32603-07.htm";
}
}
else if(npcId == mSoI.npcMouthOfEkimus)
{
if(mSoI.getStage() != 1)
{
player.sendMessage("В данный момент прохождение Break Through The Hall Of Suffering не доступно.");
return null;
}
if(party != null)
{
if(mSoI.breakThroughTheHallOfSuffering.size() >= Config.BreakThroughTheHallOfSufferingCount)
{
player.sendMessage("Проходить Break Through The Hall Of Suffering могут параллельно не более" + Config.BreakThroughTheHallOfSufferingCount + " групп.");
return null;
}
for(L2Player member : party.getPartyMembers())
{
QuestState qsm = member.getQuestState(this.getName());
if(qsm == null || qsm.getCond() != 1)
{
party.broadcastToPartyMembers(new SystemMessage("У персонажа " + member.getName() + ", не взят квест для входа."));
return null;
}
}
mInstance.enterInstance(player, 115, true, true);
inst = new BreakThroughTheHallOfSuffering();