Package games.stendhal.server.entity.npc

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


      new GreetingMatchesNameCondition(npc.getName()),
      ConversationStates.ATTENDING,
      "Hi. *cough* *splutter* The smoke is getting into my lungs. The #fire is spreading.",
      null);

    npc.addReply(
      "fire",
      "It started overnight and now Semos is lit up like a torch. They say a #Cataclysm is coming.");

    npc.addReply(
      "Cataclysm",
View Full Code Here


    npc.addReply(
      "fire",
      "It started overnight and now Semos is lit up like a torch. They say a #Cataclysm is coming.");

    npc.addReply(
      "Cataclysm",
      "I've never seen the like, but my great grandfather spoke of such a thing. Some see it as a disaster. Others say that the rebuilding after such an event allows for new life and new ways.");
  }

  /**
 
View Full Code Here

      new GreetingMatchesNameCondition(npc.getName()),
      ConversationStates.ATTENDING,
      "Hi. I'm guessing you knew to come to an old gossip, for #information.",
      null);

    npc.addReply(
      "information",
      "Well my friend, fire is spreading through Semos and we're all getting sick. People say that it's the start of a #Cataclysm...");

    npc.addReply(
      "Cataclysm",
View Full Code Here

    npc.addReply(
      "information",
      "Well my friend, fire is spreading through Semos and we're all getting sick. People say that it's the start of a #Cataclysm...");

    npc.addReply(
      "Cataclysm",
      "Don't ask me why, but I think the world will look very different in the near future. Lucky I haven't got a home to lose, really.");
  }

  /**
 
View Full Code Here

    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new GreetingMatchesNameCondition(npc.getName()),
      ConversationStates.ATTENDING,
      "Hi. We've fallen on hard #times.", null);

    npc.addReply("times",
      "All I know is, my sheep are getting sick. Maybe #Carmen can sense what is happening here.");

    npc.addReply(
      "Carmen",
      "She's a summon healer, she can sense anything strange with her powers. Me, I'm just a simple sheep dealer.");
View Full Code Here

      "Hi. We've fallen on hard #times.", null);

    npc.addReply("times",
      "All I know is, my sheep are getting sick. Maybe #Carmen can sense what is happening here.");

    npc.addReply(
      "Carmen",
      "She's a summon healer, she can sense anything strange with her powers. Me, I'm just a simple sheep dealer.");
  }

  @Override
View Full Code Here

            new NotCondition(new PlayerHasInfostringItemWithHimCondition("water", CLEAN_WATER_INFOSTRING))),
        ConversationStates.ATTENDING,
        "Hmm... it's not that I don't trust you, but I'm not sure that water is okay to drink. Could you go and ask #Stefan to #check it please?",
        null);
   
    npc.addReply("Stefan", "Stefan is a chef over in the restaurant at Fado Hotel. I'd trust him to check if anything is safe to eat or drink, he's a professional.");
    npc.addReply("check", "Sorry, I'm no expert on food or drink myself, try asking #Stefan.");

  }
 
 
View Full Code Here

        ConversationStates.ATTENDING,
        "Hmm... it's not that I don't trust you, but I'm not sure that water is okay to drink. Could you go and ask #Stefan to #check it please?",
        null);
   
    npc.addReply("Stefan", "Stefan is a chef over in the restaurant at Fado Hotel. I'd trust him to check if anything is safe to eat or drink, he's a professional.");
    npc.addReply("check", "Sorry, I'm no expert on food or drink myself, try asking #Stefan.");

  }
 
 
View Full Code Here

      null,
      ConversationStates.ATTENDING,
      "I thought you would maybe help me... But I was wrong, obviously... So wrong as with my students while I was a teacher...",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));

    npc.addReply("apple", "Apples are the favourite food of assassins. I saw some apple trees on the east " +
        "of semos and near to Orril and Nalwor river.");

      npc.addReply("flask", "I've heard of a young woman in Semos who sells them.");

      npc.addReply("toadstool", "Toadstools are quite poisonous. I've heard that some hunters in the forests ate a few" +
View Full Code Here

      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));

    npc.addReply("apple", "Apples are the favourite food of assassins. I saw some apple trees on the east " +
        "of semos and near to Orril and Nalwor river.");

      npc.addReply("flask", "I've heard of a young woman in Semos who sells them.");

      npc.addReply("toadstool", "Toadstools are quite poisonous. I've heard that some hunters in the forests ate a few" +
          " and felt sick for days.");

      npc.addReply("arandula", "North of Semos, near the tree grove, grows a herb called arandula as some of my old friends told me.");
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.