//
L2Player player = qs.getPlayer();
L2Party party = player.getParty();
//
long refId = player.getReflectionId();
DefendTheHallofSuffering inst = mSoI.defendTheHallofSuffering.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-06.htm";
}
}
else if(npcId == mSoI.npcMouthOfEkimus)
{
if(mSoI.getStage() != 2)
{
player.sendMessage("В данный момент прохождение Defend The Hall Of Suffering не доступно.");
return null;
}
if(party != null)
{
if(mSoI.defendTheHallofSuffering.size() >= Config.DefendTheHallofSuffering)
{
player.sendMessage("Проходить Defend The Hall Of Suffering могут параллельно не более" + Config.DefendTheHallofSuffering + " групп.");
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;
}
}
if(mInstance.enterInstance(player, 116, true, true))
{
refId = player.getReflectionId();
inst = new DefendTheHallofSuffering();
inst.instance.setName(this.getName());
mSoI.defendTheHallofSuffering.put(refId, inst);
ThreadPoolManager.getInstance().scheduleGeneral(new Start(refId), 60000);
}
}