Package lineage2.gameserver.model.quest

Examples of lineage2.gameserver.model.quest.Quest$DeSpawnScheduleTimerTask


        if (wordList.length < 2)
        {
          activeChar.sendMessage("USAGE: //quest id|name [SHOW|STATE|VAR|CLEAR] ...");
          return true;
        }
        Quest _quest = QuestManager.getQuest2(wordList[1]);
        if (_quest == null)
        {
          activeChar.sendMessage("Quest " + wordList[1] + " undefined");
          return true;
        }
View Full Code Here


    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Quest tutorial = QuestManager.getQuest(255);
    if (tutorial != null)
    {
      player.processQuestEvent(tutorial.getName(), "CE" + event, null);
    }
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Quest tutorial = QuestManager.getQuest(255);
    if (tutorial != null)
    {
      player.processQuestEvent(tutorial.getName(), _bypass, null);
    }
  }
View Full Code Here

    final QuestState qs = player.getQuestState(_464_Oath.class);
    if ((player.getLevel() >= 82) && (qs == null))
    {
      useItem(player, 15537, 1);
      Functions.addItem(player, 15538, 1);
      final Quest q = QuestManager.getQuest(464);
      final QuestState st = q.newQuestState(player, Quest.CREATED);
      st.setState(Quest.STARTED);
      st.setCond(1);
    }
    else
    {
View Full Code Here

        {
          Hero.getInstance().addHeroDiary(player.getObjectId(), HeroDiary.ACTION_RAID_KILLED, getNpcId());
        }
        player.sendPacket(Msg.CONGRATULATIONS_YOUR_RAID_WAS_SUCCESSFUL);
      }
      Quest q = QuestManager.getQuest(508);
      if (q != null)
      {
        String qn = q.getName();
        if ((player.getClan() != null) && player.getClan().getLeader().isOnline() && (player.getClan().getLeader().getPlayer().getQuestState(qn) != null))
        {
          QuestState st = player.getClan().getLeader().getPlayer().getQuestState(qn);
          st.getQuest().onKill(this, st);
        }
View Full Code Here

          return;
        }
      }
      else
      {
        Quest q = QuestManager.getQuest(questId);
        if (q != null)
        {
          Quest[] qlst = getTemplate().getEventQuests(QuestEventType.QUEST_START);
          if ((qlst != null) && (qlst.length > 0))
          {
            for (Quest element : qlst)
            {
              if (element == q)
              {
                qs = q.newQuestState(player, Quest.CREATED);
                if (qs.getQuest().notifyTalk(this, qs))
                {
                  return;
                }
                break;
View Full Code Here

  {
    StringBuilder sb = new StringBuilder();
    sb.append("<html><body>");
    for (QuestInfo info : quests)
    {
      Quest q = info.getQuest();
      if (!q.isVisible(player))
      {
        continue;
      }
      sb.append("<a action=\"bypass -h npc_").append(getObjectId()).append("_Quest ").append(q.getName()).append("\">").append(q.getDescr(player, info.isStart())).append("</a><br>");
    }
    sb.append("</body></html>");
    NpcHtmlMessage html = new NpcHtmlMessage(player, this);
    html.setHtml(sb.toString());
    player.sendPacket(html);
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(255);
    if (q != null)
    {
      player.processQuestEvent(q.getName(), "QM" + _number, null);
    }
  }
View Full Code Here

        htmltext = "select.htm";
      }
    }
    else if (event.equalsIgnoreCase("dawn"))
    {
      Quest q1 = QuestManager.getQuest(_142_FallenAngelRequestOfDawn.class);
      if (q1 != null)
      {
        st.exitCurrentQuest(false);
        QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED);
        q1.notifyEvent("start", qs1, npc);
        return null;
      }
    }
    else if (event.equalsIgnoreCase("dusk"))
    {
      Quest q1 = QuestManager.getQuest(_143_FallenAngelRequestOfDusk.class);
      if (q1 != null)
      {
        st.exitCurrentQuest(false);
        QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED);
        q1.notifyEvent("start", qs1, npc);
        return null;
      }
    }
    return htmltext;
  }
View Full Code Here

   */
  @Override
  protected void runImpl()
  {
    Player activeChar = getClient().getActiveChar();
    Quest quest = QuestManager.getQuest(_questID);
    if ((activeChar == null) || (quest == null))
    {
      return;
    }
    if (!quest.canAbortByPacket())
    {
      return;
    }
    QuestState qs = activeChar.getQuestState(quest.getClass());
    if ((qs != null) && !qs.isCompleted())
    {
      qs.abortQuest();
    }
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.quest.Quest$DeSpawnScheduleTimerTask

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.