Examples of say()


Examples of _package_.api._stem_.say()

  @Test
  public void simple() {
    _stem_ impl = new _stem_Impl();
   
    impl.say("Hello World");
  }

}
View Full Code Here

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

        int amount = res.getAmount();

        if (getMaximalAmount(player) < amount) {
          // The player tried to cheat us by placing the resource
          // onto the ground after saying "yes"
          npc.say("Hey! I'm over here! You'd better not be trying to trick me...");
          return false;
        } else {
          for (final Map.Entry<String, Integer> entry : getRequiredResourcesPerItem().entrySet()) {
            final int amountToDrop = amount * entry.getValue();
            player.drop(entry.getKey(), amountToDrop);
View Full Code Here

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

            player.drop(entry.getKey(), amountToDrop);
          }
          final long timeNow = new Date().getTime();
          player.setQuest(mithrilcloak.getQuestSlot(), "makingthread;" + amount + ";" + getProductName() + ";"
                  + timeNow);
          npc.say("It's unorthodox, but I will "
              + getProductionActivity()
              + " "
              + amount
              + " "
              + getProductName()
View Full Code Here

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

        // String productName = order[1];
        final long orderTime = Long.parseLong(order[3]);
        final long timeNow = new Date().getTime();
        final long timeRemaining = orderTime + ((long)REQUIRED_MINUTES_THREAD * numberOfProductItems * MathHelper.MILLISECONDS_IN_ONE_MINUTE) - timeNow;
        if (timeRemaining > 0L) {
          npc.say("Shhhh, I'm still working on your request to "
              + getProductionActivity() + " " + getProductName()
              + " for you. I'll be done in " + TimeUtil.approxTimeUntil((int) (timeRemaining / 1000L)) + ".");
        } else {
          npc.say("Oh, I gave your "
              + Grammar.quantityplnoun(numberOfProductItems,
View Full Code Here

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

        if (timeRemaining > 0L) {
          npc.say("Shhhh, I'm still working on your request to "
              + getProductionActivity() + " " + getProductName()
              + " for you. I'll be done in " + TimeUtil.approxTimeUntil((int) (timeRemaining / 1000L)) + ".");
        } else {
          npc.say("Oh, I gave your "
              + Grammar.quantityplnoun(numberOfProductItems,
                           getProductName(), "") + " to my research student Boris Karlova. Go collect them from him.");
          player.notifyWorldAboutChanges();
        }
      }
View Full Code Here

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

        new ProducerBehaviourAction(behaviour) {
          @Override
          public void fireRequestOK(final ItemParserResult res, Player player, Sentence sentence, EventRaiser npc) {
            // Find out how much items we shall produce.
            if (res.getAmount() < 40) {
              npc.say("Do you really want so few? I'm not wasting my time with that! Any decent sized pieces of fabric needs at least 40 spools of thread! You should at least #make #40.");
              return;
            } else if (res.getAmount() > 1000) {
              /*logger.warn("Decreasing very large amount of "
               *    + behaviour.getAmount()
               *    + " " + behaviour.getChosenItemName()
View Full Code Here

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

        new QuestStateStartsWithCondition(mithrilcloak.getQuestSlot(), "makingthread;"),
        ConversationStates.ATTENDING, null,
        new ChatAction() {
          public void fire(final Player player, final Sentence sentence,
              final EventRaiser npc) {
            npc.say("I still haven't finished your last order!");
          }
        });
    // player returns and says hi while sacs being made
    npc.add(ConversationStates.IDLE,
      ConversationPhrases.GREETING_MESSAGES,
View Full Code Here

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

            final String[] order = orderString.split(";");
            final int numberOfProductItems = Integer.parseInt(order[1]);
            final long orderTime = Long.parseLong(order[3]);
            final long timeNow = new Date().getTime();
            if (timeNow - orderTime < (long)REQUIRED_MINUTES_THREAD * numberOfProductItems * MathHelper.MILLISECONDS_IN_ONE_MINUTE) {
              npc.say("Haaaa heee woooo hoo!");
            } else {
              npc.say("The boss gave me these " 
                  + Grammar.quantityplnoun(numberOfProductItems, "silk thread", "")
                  + ". Price gets his students to do his dirty work for him.");
              final StackableItem products = (StackableItem) SingletonRepository.getEntityManager().getItem(
View Full Code Here

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

            final long orderTime = Long.parseLong(order[3]);
            final long timeNow = new Date().getTime();
            if (timeNow - orderTime < (long)REQUIRED_MINUTES_THREAD * numberOfProductItems * MathHelper.MILLISECONDS_IN_ONE_MINUTE) {
              npc.say("Haaaa heee woooo hoo!");
            } else {
              npc.say("The boss gave me these " 
                  + Grammar.quantityplnoun(numberOfProductItems, "silk thread", "")
                  + ". Price gets his students to do his dirty work for him.");
              final StackableItem products = (StackableItem) SingletonRepository.getEntityManager().getItem(
                                                              "silk thread");
             
View Full Code Here

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

            player.drop("silk thread", 40);
              player.drop("mithril nugget", 7);
            player.drop("balloon");
            final long timeNow = new Date().getTime();
            player.setQuest(mithrilcloak.getQuestSlot(), "fusingthread;" + timeNow);
            npc.say("I will fuse 40 mithril thread for you. Please come back in "
                + TimeUtil.approxTimeUntil((int) (REQUIRED_HOURS_MITHRIL_THREAD * MathHelper.MILLISECONDS_IN_ONE_HOUR / 1000L))
                + ".");
            player.notifyWorldAboutChanges();
          } else {
            npc.say("For 40 spools of mithril thread to make your cloak, I need 40 spools of #silk #thread, 7 #mithril #nuggets and a #balloon.");
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.