Package games.stendhal.server.entity.npc

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


    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES, null, ConversationStates.IDLE,
        "Oh, thats not nice... but ok. Maybe the next visitor can help me.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -10.0));
   
    npc.addReply("beer", "In an INN of course!");
    npc.addReply("wine", "In an INN of course!");
    npc.addReply(Arrays.asList("sandwiches", "sandwich"), "Come on, ask in a bakery!");
  }
 
  private void receiveFood() {
View Full Code Here


        ConversationPhrases.NO_MESSAGES, null, ConversationStates.IDLE,
        "Oh, thats not nice... but ok. Maybe the next visitor can help me.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -10.0));
   
    npc.addReply("beer", "In an INN of course!");
    npc.addReply("wine", "In an INN of course!");
    npc.addReply(Arrays.asList("sandwiches", "sandwich"), "Come on, ask in a bakery!");
  }
 
  private void receiveFood() {
  final SpeakerNPC npc = npcs.get("Phalk")
View Full Code Here

        "Oh, thats not nice... but ok. Maybe the next visitor can help me.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -10.0));
   
    npc.addReply("beer", "In an INN of course!");
    npc.addReply("wine", "In an INN of course!");
    npc.addReply(Arrays.asList("sandwiches", "sandwich"), "Come on, ask in a bakery!");
  }
 
  private void receiveFood() {
  final SpeakerNPC npc = npcs.get("Phalk")
 
View Full Code Here

    /**
     * Quest can always be started again. Just check that no reward is given
     * for players higher than level 15.
     */

    npc
        .addReply(
            "history",
            "At present, there are two significant powers on Faiumoni; the Deniran Empire, and the dark legions of Blordrough. Blordrough has recently conquered the south of the island, seizing several steel mines and a large gold mine. At present, Deniran still controls the central and northern parts of Faiumoni, including several gold and mithril mines.");

    npc
View Full Code Here

    npc
        .addReply(
            "history",
            "At present, there are two significant powers on Faiumoni; the Deniran Empire, and the dark legions of Blordrough. Blordrough has recently conquered the south of the island, seizing several steel mines and a large gold mine. At present, Deniran still controls the central and northern parts of Faiumoni, including several gold and mithril mines.");

    npc
        .addReply(
            "news",
            "The Deniran Empire is currently seeking adventurers to sign on as mercenaries with their army to retake southern Faiumoni from the forces of Blordrough. Unfortunately Blordrough is still holding out against everything the Empire can throw at him.");

    npc
View Full Code Here

    npc
        .addReply(
            "news",
            "The Deniran Empire is currently seeking adventurers to sign on as mercenaries with their army to retake southern Faiumoni from the forces of Blordrough. Unfortunately Blordrough is still holding out against everything the Empire can throw at him.");

    npc
        .addReply(
            "geography",
            "Let's talk about the different #places you can visit on Faiumoni! I can also help you #get and #use a map, or give you advice on using the psychic #SPS system.");

    npc
View Full Code Here

    npc
        .addReply(
            "geography",
            "Let's talk about the different #places you can visit on Faiumoni! I can also help you #get and #use a map, or give you advice on using the psychic #SPS system.");

    npc
        .addReply(
            "places",
            "The most important locations on #Faiumoni are #Or'ril Castle, #Semos, #Ados, #Nalwor, and of course #Deniran City.");

    npc
View Full Code Here

    npc
        .addReply(
            "places",
            "The most important locations on #Faiumoni are #Or'ril Castle, #Semos, #Ados, #Nalwor, and of course #Deniran City.");

    npc
        .addReply(
            "Faiumoni",
            "Faiumoni is the island on which you stand! You've probably already noticed the mountains to the north. There is also a large desert in the middle of the island, and of course the river which bisects it, just below #Or'ril Castle to the south.");

    npc
View Full Code Here

    npc
        .addReply(
            "Faiumoni",
            "Faiumoni is the island on which you stand! You've probably already noticed the mountains to the north. There is also a large desert in the middle of the island, and of course the river which bisects it, just below #Or'ril Castle to the south.");

    npc
        .addReply(
            "Semos",
            "Semos is our town where you are right now. We're on the north side of Faiumoni, with a population of about 40-50.");

    npc
View Full Code Here

    npc
        .addReply(
            "Semos",
            "Semos is our town where you are right now. We're on the north side of Faiumoni, with a population of about 40-50.");

    npc
        .addReply(
            "Ados",
            "Ados is an important coastal city to the east of us here in #Semos, where merchants bring trade from #Deniran. It's widely considered to be one of the Empire's most important shipping routes.");

    npc
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.