Package games.stendhal.server.entity.npc.condition

Examples of games.stendhal.server.entity.npc.condition.QuestNotStartedCondition


  private void step1() {
    final SpeakerNPC npc = npcs.get("Lorenz")
   
    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestNotStartedCondition(QUEST_SLOT),
        ConversationStates.QUEST_OFFERED,
        "I need some help to escape from this prison. These ugly Amazonesses! Can you help me please?",
        null);
             
    npc.add(ConversationStates.ATTENDING,
View Full Code Here


  private void step_1() {
    final SpeakerNPC npc = npcs.get("Eonna");

    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestNotStartedCondition(QUEST_SLOT),
        ConversationStates.QUEST_OFFERED,
        "My #basement is absolutely crawling with rats. Will you help me?",
        null);

    npc.add(ConversationStates.ATTENDING,
View Full Code Here

    final SpeakerNPC npc = npcs.get("Ortiv Milquetoast");

    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new LevelGreaterThanCondition(2),
          new QuestNotStartedCondition(QUEST_SLOT),
          new NotCondition(new QuestInStateCondition(QUEST_SLOT,"rejected"))),
      ConversationStates.QUESTION_1,
      "Ohh a stranger found my hidden house, welcome! Maybe you can help me with something?", null);

    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new QuestInStateCondition(QUEST_SLOT,"rejected")),
      ConversationStates.QUEST_OFFERED,
      "Hey, did you think about helping me again? Will you do it?", null);

    npc.add(
      ConversationStates.QUESTION_1,
      ConversationPhrases.YES_MESSAGES,
      new QuestNotStartedCondition(QUEST_SLOT),
      ConversationStates.ATTENDING,
      "I currently work on a mixture to keep the rowdy gang downstairs... Maybe you can help me later with getting me some of the #ingredients I'll need.",
      null);

    npc.add(
      ConversationStates.QUESTION_1,
      ConversationPhrases.NO_MESSAGES,
      new QuestNotStartedCondition(QUEST_SLOT),
      ConversationStates.ATTENDING,
      "I currently work on a mixture to keep the rowdy gang downstairs... Maybe you can help me later with getting me some of the #ingredients I'll need.",
      null);

    npc.add(
      ConversationStates.ATTENDING,
      "ingredients",
      new QuestNotStartedCondition(QUEST_SLOT),
      ConversationStates.QUEST_OFFERED,
      "I was a teacher for alchemy once, now I try to mix something together. I need some ingredients for that and hope that you will help me. Will you?",
      null);

    npc.add(
View Full Code Here

  private void askingStep() {
    final SpeakerNPC npc = npcs.get("Agnus");

    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new OrCondition(new QuestNotStartedCondition(QUEST_SLOT), new QuestInStateCondition(QUEST_SLOT, "rejected")),
        ConversationStates.QUEST_OFFERED,
        "I feel so worried. If I only knew my #children were safe I would feel better.",
        null);

    npc.add(
View Full Code Here

  private void step_1() {
    final SpeakerNPC npc = npcs.get("Orc Saman");

    npc.add(ConversationStates.ATTENDING,
      ConversationPhrases.QUEST_MESSAGES,
      new QuestNotStartedCondition(QUEST_SLOT),
      ConversationStates.QUEST_OFFERED,
      "Make revenge! Kill de Mountain Orc Chief! unnerstand? ok?",
      null);

    npc.add(ConversationStates.ATTENDING,
View Full Code Here

  private void askForFood() {
    final SpeakerNPC npc = npcs.get("Phalk")
   
    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestNotStartedCondition(QUEST_SLOT),
        ConversationStates.QUEST_OFFERED,
        "I've been here a long time, and I can not leave this place. Could you bring me some food?",
        null);
             
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

  private void startQuest() {
    final SpeakerNPC npc = npcs.get("Mrs. Yeti")
   
    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestNotStartedCondition(QUEST_SLOT),
        ConversationStates.QUEST_OFFERED,
        "I am mournful, because Mr Yeti turns away from me. I need a special potion to make him happy and some present to please him. Will you help?",
        null);
             
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

        add(ConversationStates.IDLE,
            ConversationPhrases.GREETING_MESSAGES,
            new AndCondition(new GreetingMatchesNameCondition(super.getName()),
                new QuestCompletedCondition(GRAFINDLE_QUEST_SLOT),
                new QuestCompletedCondition(ZARA_QUEST_SLOT),
                new QuestNotStartedCondition(QUEST_SLOT)),
              ConversationStates.ATTENDING,
              null,
              new SayTextWithPlayerNameAction("Welcome to the Wizard's Bank, [name]."));
       
        // currently in bank
View Full Code Here

    final SpeakerNPC npc = npcs.get("Pdiddi");

    // player says hi before starting the quest
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new QuestNotStartedCondition(QUEST_SLOT)),
      ConversationStates.INFORMATION_1,
      "SHHH! Don't want all n' sundry knowin' wot I #deal in.", null);

    // player returns after finishing the quest (it is repeatable) after the
    // time as finished
    npc.add(
      ConversationStates.IDLE,
      ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new QuestStartedCondition(QUEST_SLOT),
          new TimePassedCondition(QUEST_SLOT, 1, REQUIRED_MINUTES)),
      ConversationStates.QUEST_OFFERED,
      "Oi, you. Back for more rainbow beans?", null);

    // player returns after finishing the quest (it is repeatable) before
    // the time as finished
    npc.add(
      ConversationStates.IDLE,
      ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new QuestStartedCondition(QUEST_SLOT),
          new NotCondition(new TimePassedCondition(QUEST_SLOT, 1, REQUIRED_MINUTES))),
      ConversationStates.ATTENDING,
      null,
      new SayTimeRemainingAction(QUEST_SLOT, 1, REQUIRED_MINUTES, "Alright? I hope you don't want more beans. You can't take more of that stuff for at least another"));

    // player responds to word 'deal' - enough level
    npc.add(ConversationStates.INFORMATION_1,
      "deal",
      new AndCondition(
          new QuestNotStartedCondition(QUEST_SLOT),
          new LevelGreaterThanCondition(REQUIRED_LEVEL-1)),
      ConversationStates.QUEST_OFFERED,
      "Nosy, aint yer? I deal in rainbow beans. You take some, and who knows where the trip will take yer. It'll cost you "
      + REQUIRED_MONEY
      + " money. You want to buy some?",
      null);
   
    // player responds to word 'deal' - low level
    npc.add(ConversationStates.INFORMATION_1,
      "deal",
      new AndCondition(
          new QuestNotStartedCondition(QUEST_SLOT),
          new LevelLessThanCondition(REQUIRED_LEVEL)),
      ConversationStates.ATTENDING,
      "It's not stuff you're ready for, pal. Now get out of 'ere! An don't you come back till you've got more hairs on that chest!",
      null);
View Full Code Here

  private void step_1() {
    final SpeakerNPC npc = npcs.get("Jenny");

    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestNotStartedCondition(QUEST_SLOT),
        ConversationStates.QUEST_OFFERED,
        "Some gnomes have been stealing carrots from the farms North of Semos. "
        + "They need to be taught a lesson, will you help?",
        null);
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.condition.QuestNotStartedCondition

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.