Package games.stendhal.server.entity.npc

Examples of games.stendhal.server.entity.npc.SpeakerNPC.addReply()


        }
      });

    for (final String name : customerDB.keySet()) {
      final CustomerData data = customerDB.get(name);
      leander.addReply(name, data.npcDescription);
    }
  }

  private void prepareCustomers() {
    for (final String name : customerDB.keySet()) {
View Full Code Here


        "Greetings. Be quick with your matters, I have a lot of work to do."
          + " And next time clean your boots, you are lucky that I'm not the king...yet!",
        null);

    npc.addQuest("Hmm you could be useful for my #plan...");
    npc.addReply("plan",
          "Soon I will dethrone the king of Kalavan and become the new king! Right now I need myself a new #crown.");

    /* player says crown */
    npc.add(ConversationStates.ATTENDING,
        "crown",
 
View Full Code Here

        ConversationStates.ATTENDING,
        "So you'll just let them suffer! How despicable.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));
   
    // give some hints of where to find herbs. No warranties!
    npc.addReply(
        "kokuda",
        "I believe that herb can only be found on Athor, though they guard their secrets" +
        " closely over there.");
    npc.addReply(
        "sclaria",
View Full Code Here

    // give some hints of where to find herbs. No warranties!
    npc.addReply(
        "kokuda",
        "I believe that herb can only be found on Athor, though they guard their secrets" +
        " closely over there.");
    npc.addReply(
        "sclaria",
        "Healers who use sclaria gather it in all sorts of places - around Or'ril, in Nalwor" +
        " forest, I am sure you will find that without trouble.");
    npc.addReply(
        "kekik",
View Full Code Here

        " closely over there.");
    npc.addReply(
        "sclaria",
        "Healers who use sclaria gather it in all sorts of places - around Or'ril, in Nalwor" +
        " forest, I am sure you will find that without trouble.");
    npc.addReply(
        "kekik",
        "My maid's friend Jenny has a source not far from her. The wooded areas at the eastern" +
        " end of Nalwor river may have it. too.");
  }
View Full Code Here

    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
        new GreetingMatchesNameCondition(npc.getName()),
        ConversationStates.ATTENDING,
        "Hello. I can #heal you in these #troubled #times.", null);

    npc.addReply(Arrays.asList("troubled", "times"),
        "I sense many changes approaching. I believe that a #Cataclysm is coming.");
    npc.addReply("Cataclysm",
        "Yes, some upheaval, maybe a rebirth of old spirits. The lands could change and new ways begin.");
  }
View Full Code Here

        ConversationStates.ATTENDING,
        "Hello. I can #heal you in these #troubled #times.", null);

    npc.addReply(Arrays.asList("troubled", "times"),
        "I sense many changes approaching. I believe that a #Cataclysm is coming.");
    npc.addReply("Cataclysm",
        "Yes, some upheaval, maybe a rebirth of old spirits. The lands could change and new ways begin.");
  }

  /**
   * Makes Diogenes tell you to ask Carmen what's happening.
View Full Code Here

      new GreetingMatchesNameCondition(npc.getName()),
      ConversationStates.ATTENDING,
      "Greetings. I expect you are wondering what strange things are happening here?",
      null);

    npc.addReply(ConversationPhrases.YES_MESSAGES,
            "So am I, my friend. I expect young Carmen will tell you something.");
    npc.addReply(ConversationPhrases.NO_MESSAGES,
            "Ah, the folly of youth! You do not look around you with open eyes until it is too late.");
  }
View Full Code Here

      "Greetings. I expect you are wondering what strange things are happening here?",
      null);

    npc.addReply(ConversationPhrases.YES_MESSAGES,
            "So am I, my friend. I expect young Carmen will tell you something.");
    npc.addReply(ConversationPhrases.NO_MESSAGES,
            "Ah, the folly of youth! You do not look around you with open eyes until it is too late.");
  }

  /**
   * Makes Hayunn Naratha refer to the Cataclysm.
View Full Code Here

      new GreetingMatchesNameCondition(npc.getName()),
      ConversationStates.ATTENDING,
      "Greetings. I'm ashamed to address you while I look #unwell. It's not fitting for my post.",
      null);

    npc.addReply(
      "unwell",
      "I imagine it is from the smoke. I hope it's nothing more ominous. In any case, let me know if I can help you at all.");
  }

  /**
 
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.