Package l2p.gameserver.modules.instance.SoI

Examples of l2p.gameserver.modules.instance.SoI.DefendTheHallofSuffering


    String htmltext = event;
    //
    L2Player player = qs.getPlayer();
    //
    long refId = player.getReflectionId();
    DefendTheHallofSuffering inst = mSoI.defendTheHallofSuffering.get(refId);
    //
    if(event.equalsIgnoreCase("32603-05.htm"))
    {
      qs.setCond(1);
      qs.setState(STARTED);
View Full Code Here


    //
    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);
        }
      }
View Full Code Here

    int npcId = npc.getNpcId();
    //
    L2Player player = qs.getPlayer();
    //
    final long refId = player.getReflectionId();
    final DefendTheHallofSuffering inst = mSoI.defendTheHallofSuffering.get(refId);
    //
    if(inst == null)
    {
      return null;
    }
View Full Code Here

    }

    @Override
    public void run()
    {
      DefendTheHallofSuffering inst = mSoI.defendTheHallofSuffering.get(refId);
      inst.timer.start();
      ThreadPoolManager.getInstance().scheduleGeneral(new Wave(0, refId), 3 * 1000);
    }
 
View Full Code Here

    }

    @Override
    public void run()
    {
      DefendTheHallofSuffering inst = mSoI.defendTheHallofSuffering.get(refId);
      if(stage <= 4)
      {
        if(inst.monsterTumorOfDeath == null || inst.monsterTumorOfDeath.isDead())
        {
          inst.monsterTumorOfDeath = addSpawnToInstance(mSoI.idMonsterTumorOfDeath, mSoI.Center, 0, refId);
View Full Code Here

TOP

Related Classes of l2p.gameserver.modules.instance.SoI.DefendTheHallofSuffering

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.