Examples of Quest


Examples of net.sf.l2j.gameserver.model.quest.Quest

  {
    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
        return;

        Quest qe = QuestManager.getInstance().getQuest(_questId);
        if (qe != null)
        {
        QuestState qs = activeChar.getQuestState(qe.getName());
            if(qs != null)
            {
            qs.exitQuest(true);
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString("Quest aborted.");
                activeChar.sendPacket(sm);
                sm = null;
            QuestList ql = new QuestList();
                activeChar.sendPacket(ql);
            } else
            {
                if (Config.DEBUG) _log.info("Player '"+activeChar.getName()+"' try to abort quest "+qe.getName()+" but he didn't have it started.");
            }
        } else
        {
            if (Config.DEBUG) _log.warning("Quest (id='"+_questId+"') not found.");
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.quest.Quest

    {
      return retval;
    }
    if (qs == null)
    {
      Quest q = QuestManager.getInstance().getQuest(quest);
      if (q == null)
      {
        return retval;
      }
      qs = q.newQuestState(this);
    }
    if (qs != null)
    {
      if (getLastQuestNpcObject() > 0)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.