Package lineage2.gameserver.model.quest

Examples of lineage2.gameserver.model.quest.Quest.notifyEvent()


      Quest q1 = QuestManager.getQuest(_184_NikolasCooperationContract.class);
      if (q1 != null)
      {
        st.giveItems(ADENA_ID, 26866);
        QuestState qs1 = q1.newQuestState(player, STARTED);
        q1.notifyEvent("30621-01.htm", qs1, npc);
        st.playSound(SOUND_MIDDLE);
        st.exitCurrentQuest(false);
      }
      return null;
    }
View Full Code Here


      Quest q2 = QuestManager.getQuest(_185_NikolasCooperationConsideration.class);
      if (q2 != null)
      {
        st.giveItems(ADENA_ID, 18100);
        QuestState qs2 = q2.newQuestState(st.getPlayer(), STARTED);
        q2.notifyEvent("30621-01.htm", qs2, npc);
        st.playSound(SOUND_MIDDLE);
        st.exitCurrentQuest(false);
      }
      return null;
    }
View Full Code Here

      for (Player player : World.getAroundPlayers(getActor(), 300, 200))
      {
        QuestState questState = player.getQuestState(_024_InhabitantsOfTheForestOfTheDead.class);
        if ((questState != null) && (questState.getCond() == 3))
        {
          q.notifyEvent("seePlayer", questState, getActor());
        }
      }
    }
    return super.thinkActive();
  }
View Full Code Here

      for (Player player : World.getAroundPlayers(getActor(), 300, 200))
      {
        QuestState questState = player.getQuestState(_024_InhabitantsOfTheForestOfTheDead.class);
        if ((questState != null) && (questState.getCond() == 3))
        {
          q.notifyEvent("seePlayer", questState, getActor());
        }
      }
    }
    return super.thinkActive();
  }
View Full Code Here

      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"))
    {
View Full Code Here

      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

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.