Package l2p.gameserver.model.quest

Examples of l2p.gameserver.model.quest.Quest


    L2Player pkilled = killed.getPlayer();
    if(pkiller == null || pkilled == null)
    {
      return;
    }
    Quest q = QuestManager.getQuest(_736_WeakenMagic.class);
    L2Party party = pkiller.getParty();
    if(party == null)
    {
      takeQuest(q, pkilled, pkiller);
    }
View Full Code Here


    }
    else if(event.equalsIgnoreCase("warehouse_keeper_kluck_q0140_14.htm"))
    {
      st.playSound(SOUND_FINISH);
      st.giveItems(ADENA_ID, 18775);
      Quest q = QuestManager.getQuest(_141_ShadowFoxPart3.class);
      if(q != null)
      {
        q.newQuestState(st.getPlayer(), STARTED);
      }
      st.exitCurrentQuest(false);
    }
    else if(event.equalsIgnoreCase("magister_xenovia_q0140_09.htm"))
    {
View Full Code Here

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

    // Reduce the current HP of the L2Player
    super.reduceCurrentHp(i, attacker, skill, awake, standUp, directHp, canReflect);
    //TODO: переделать на листенер
    if(getLevel() < 6 && getCurrentHpPercents() < 25)
    {
      Quest q = QuestManager.getQuest(255);
      if(q != null)
      {
        processQuestEvent(q.getName(), "CE45", null);
      }
    }
  }
View Full Code Here

      sendPacket(new ConfirmDlg(SystemMessage.RESURRECTION_IS_POSSIBLE_BECAUSE_OF_THE_COURAGE_CHARM_S_EFFECT_WOULD_YOU_LIKE_TO_RESURRECT_NOW, 60000, 2));
      setCharmOfCourage(false);
    }
    if(getLevel() < 6)
    {
      Quest q = QuestManager.getQuest(255);
      if(q != null)
      {
        processQuestEvent(q.getName(), "CE30", null);
      }
    }
  }
View Full Code Here

        clanMember.sendPacket(memberUpdate);
      }
    }
    // Give Expertise skill of this level
    rewardSkills();
    Quest q = QuestManager.getQuest(255);
    if(q != null)
    {
      processQuestEvent(q.getName(), "CE40", null);
    }
    return true;
  }
View Full Code Here

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

TOP

Related Classes of l2p.gameserver.model.quest.Quest

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.