Examples of addQuest()


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

  private void prepareSergeant() {
    final SpeakerNPC james = npcs.get("Sergeant James");

    // quest related stuff
    james.addHelp("Think I need a little help myself. My #group got killed and #one of my men ran away. Too bad he had the #map.");
    james.addQuest("Find my fugitive soldier and bring him to me ... or at least the #map he's carrying.");
    james.addReply("group",
      "We were five, three of us died. You probably passed their corpses.");
    james.addReply(Arrays.asList("one", "henry"),
      "Yes, my youngest soldier. He ran away.");
    james.addReply("map",
View Full Code Here

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

        ConversationStates.ATTENDING,
        "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,
 
View Full Code Here

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

  }
 
  private void setupConversation() {
    SpeakerNPC npc = getNPC();
   
    npc.addQuest("I can send you to a #maze you need to find your way out. I keep the a list of the fast and frequent maze solvers in that blue book on the table.");
 
    npc.add(ConversationStates.ATTENDING,
        "maze",
        new TimePassedCondition(getSlotName(), 1, COOLING_TIME),
        ConversationStates.QUEST_OFFERED,
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.