Examples of addGoodbye()


Examples of games.stendhal.server.core.scripting.ScriptingNPC.addGoodbye()

    // Create Dialog
    npc.behave("greet", "Hi, how can i #help you?");
    npc.behave("help",
        "Perhaps you would like a free power #upgrade and maybe a #random destination?");
    npc.addGoodbye();
    npc.add(ConversationStates.ATTENDING, "upgrade", null,
        ConversationStates.ATTENDING, null, new UpgradeAction());
    npc.add(ConversationStates.ATTENDING, "random", null,
        ConversationStates.ATTENDING, null, new TeleportAction());
View Full Code Here

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

    // } else {
    // engine.say("I hope to see you again sometime.");
    // }
    // }
    // });
    npc.addGoodbye();
  }

  @Override
  public String getName() {
    return "MeetMonogenes";
View Full Code Here

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

  private void prepareGobletFillingStep() {

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

    npc.addGoodbye("*cough* ... farewell ... *cough*");
    npc.addReply(
      Arrays.asList("blood", "vampirette entrails", "bat entrails"),
      "I need blood. I can take it from the entrails of the alive and undead. I will mix the bloods together for you and #fill your #goblet, if you let me drink some too. But I'm afraid of the powerful #lord.");

    npc.addReply(Arrays.asList("lord", "vampire", "skull ring"),
View Full Code Here

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

   * initialize the introduction and start of the quest.
   */
  private void step_1() {
    final SpeakerNPC npc = npcs.get(NPC_NAME);
    npc.addOffer("I don't sell anything!");
    npc.addGoodbye();
    npc.addJob("My current job is unimportant, I will be the king of Kalavan!");

    /* player says hi before starting the quest */
    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
 
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.