Package lineage2.gameserver.model.quest

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


      event = "";
    }
    QuestState qs = getQuestState(quest);
    if (qs == null)
    {
      Quest q = QuestManager.getQuest(quest);
      if (q == null)
      {
        _log.warn("Quest " + quest + " not found!");
        return;
      }
      qs = q.newQuestState(this, Quest.CREATED);
    }
    if ((qs == null) || qs.isCompleted())
    {
      return;
    }
View Full Code Here


    {
      return false;
    }
    if ((item.getItemId() == ItemTemplate.ITEM_ID_ADENA) || (item.getItemId() == 6353))
    {
      Quest q = QuestManager.getQuest(255);
      if (q != null)
      {
        processQuestEvent(q.getName(), "CE" + item.getItemId(), null);
      }
    }
    if ((item.getItemId() == ItemTemplate.ITEM_ID_ADENA))
    {
      if (item.getOwnerId() == 0)
View Full Code Here

      ask(new ConfirmDlg(SystemMsg.YOUR_CHARM_OF_COURAGE_IS_TRYING_TO_RESURRECT_YOU, 60000), new ReviveAnswerListener(this, 100, false));
      setCharmOfCourage(false);
    }
    if (getLevel() < 6)
    {
      Quest q = QuestManager.getQuest(255);
      if (q != null)
      {
        processQuestEvent(q.getName(), "CE30", null);
      }
    }
    WorldStatisticsManager.getInstance().updateStat(this, CategoryType.DIE_COUNT, 1);
    if (killer != null && killer.getPlayer() == null)
    {
View Full Code Here

    {
      sendPacket(Msg.YOU_HAVE_INCREASED_YOUR_LEVEL);
      broadcastPacket(new SocialAction(getObjectId(), SocialAction.LEVEL_UP));
      setCurrentHpMp(getMaxHp(), getMaxMp());
      setCurrentCp(getMaxCp());
      Quest q = QuestManager.getQuest(255);
      if (q != null)
      {
        processQuestEvent(q.getName(), "CE40", null);
      }
      for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL))
      {
        if (getKnownSkill(skillLearn.getId()) == null)
        {
View Full Code Here

    {
      htmltext = "32640-10.htm";
    }
    else if (id == CREATED)
    {
      QuestState ImTheOnlyOneYouCanTrust = st.getPlayer().getQuestState(_240_ImTheOnlyOneYouCanTrust.class);
      if ((st.getPlayer().getLevel() >= 81) && (ImTheOnlyOneYouCanTrust != null) && ImTheOnlyOneYouCanTrust.isCompleted())
      {
        htmltext = "32640-1.htm";
      }
      else
      {
View Full Code Here

      {
        return;
      }
      Player player = cha.getPlayer();
     
      QuestState qs = player.getQuestState(_10301_ShadowOfTerrorBlackishRedFog.class);
      if(qs != null && qs.getCond() == 3 && player.getVar("instance10301") == null)
      {
        Quest q = QuestManager.getQuest(10301);
        player.processQuestEvent(q.getName(), "enterInstance", null);
        //player.setVar("instance10301", "true", -1);
        return;
View Full Code Here

      Class.forName(GarbageCollector.class.getName());
    }
    Shutdown.getInstance().schedule(Config.RESTART_AT_TIME, Shutdown.RESTART);
    _log.info("GameServer Started");
    _log.info("Maximum Numbers of Connected Players: " + Config.MAXIMUM_ONLINE_USERS);
    GamePacketHandler gph = new GamePacketHandler();
    InetAddress serverAddr = Config.GAMESERVER_HOSTNAME.equalsIgnoreCase("*") ? null : InetAddress.getByName(Config.GAMESERVER_HOSTNAME);
    _selectorThreads = new SelectorThread[Config.PORTS_GAME.length];
    for (int i = 0; i < Config.PORTS_GAME.length; i++)
    {
      _selectorThreads[i] = new SelectorThread<>(Config.SELECTOR_CONFIG, gph, gph, gph, null);
View Full Code Here

        getInstance().getListenerEngine().onDay();
      }
      for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      {
        player.checkDayNightMessages();
        player.sendPacket(new ClientSetTime());
      }
    }
View Full Code Here

  void changeAura(NpcInstance actor, int npcId)
  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
View Full Code Here

  public void onShutdown()
  {}
 
  public void broadcastPacket(int value, boolean b)
  {
    L2GameServerPacket trigger = new EventTrigger(value, b);
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      player.sendPacket(trigger);

  }
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.