Examples of say()


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

          if (timeRemaining > 0L) {
            npc.say("I haven't finished yet, please return in "
              + TimeUtil.approxTimeUntil((int) (timeRemaining / 1000L)) + ".");
            return;
          }
          npc.say("Here, your clasp is ready!");
          player.addXP(100);
          player.addKarma(15);
          final Item clasp = SingletonRepository.getEntityManager().getItem(
                  "mithril clasp");
          clasp.setBoundTo(player.getName());
View Full Code Here

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

    npc.add(ConversationStates.QUESTION_1, "blue striped cloak", new QuestInStateCondition(mithrilcloak.getQuestSlot(), "taking_striped_cloak"),
      ConversationStates.QUESTION_1, null,
      new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
            if (player.drop("blue striped cloak")) {
              npc.say("Oh, wait, that's from Ida isn't it?! Oh yay! Thank you! Please tell her thanks from me!!");
              player.setQuest(mithrilcloak.getQuestSlot(), "gave_striped_cloak");
              npc.setCurrentState(ConversationStates.ATTENDING);
            } else {
              npc.say("You don't have a blue striped cloak with you.");
            }           
View Full Code Here

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

            if (player.drop("blue striped cloak")) {
              npc.say("Oh, wait, that's from Ida isn't it?! Oh yay! Thank you! Please tell her thanks from me!!");
              player.setQuest(mithrilcloak.getQuestSlot(), "gave_striped_cloak");
              npc.setCurrentState(ConversationStates.ATTENDING);
            } else {
              npc.say("You don't have a blue striped cloak with you.");
            }           
          }
      });

    // overlapping with CloaksCollector2 quest deliberately
View Full Code Here

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

    npc.add(ConversationStates.QUESTION_2, "blue striped cloak", new QuestInStateCondition(mithrilcloak.getQuestSlot(), "taking_striped_cloak"),
        ConversationStates.QUESTION_2, null,
        new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
            if (player.drop("blue striped cloak")) {
              npc.say("Oh, wait, that's from Ida isn't it?! Oh yay! Thank you! Please tell her thanks from me!!");
              npc.setCurrentState(ConversationStates.ATTENDING);
              player.setQuest(mithrilcloak.getQuestSlot(), "gave_striped_cloak");
            } else {
              npc.say("You don't have a blue striped cloak with you.");
            }           
View Full Code Here

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

            if (player.drop("blue striped cloak")) {
              npc.say("Oh, wait, that's from Ida isn't it?! Oh yay! Thank you! Please tell her thanks from me!!");
              npc.setCurrentState(ConversationStates.ATTENDING);
              player.setQuest(mithrilcloak.getQuestSlot(), "gave_striped_cloak");
            } else {
              npc.say("You don't have a blue striped cloak with you.");
            }           
          }
      });
       
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

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

            && player.isEquipped("mithril bar")
            && player.isEquipped("magical eggshells", neededEggshells)) {
              player.drop("iron");
              player.drop("mithril bar");
              player.drop("magical eggshells", neededEggshells);
              npc.say("Good. It will take me some time to make these, come back in "
                     + REQUIRED_MINUTES_SCISSORS + " minutes to get your scissors.");
              player.addXP(100);
              player.setQuest(mithrilcloak.getQuestSlot(), "makingscissors;" + System.currentTimeMillis());
              player.notifyWorldAboutChanges();
            } else {
View Full Code Here

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

                     + REQUIRED_MINUTES_SCISSORS + " minutes to get your scissors.");
              player.addXP(100);
              player.setQuest(mithrilcloak.getQuestSlot(), "makingscissors;" + System.currentTimeMillis());
              player.notifyWorldAboutChanges();
            } else {
              npc.say("Liar, you don't have everything I need. Ask me about #scissors again when you have an iron bar, a mithril bar, and "
                  + questslot[1] + " magical eggshells. And don't be wasting my time!");
            }
        }
      });
View Full Code Here

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

          // minutes -> milliseconds
          final long delay = REQUIRED_MINUTES_SCISSORS * MathHelper.MILLISECONDS_IN_ONE_MINUTE;
          final long timeRemaining = (Long.parseLong(tokens[1]) + delay)
              - System.currentTimeMillis();
          if (timeRemaining > 0L) {
            npc.say("Pff you're impatient aren't you? I haven't finished making the scissors yet, come back in "
              + TimeUtil.approxTimeUntil((int) (timeRemaining / 1000L)) + ".");
            return;
          }
          npc.say("Ah, thanks for reminding me. Here, Ida's scissors are ready. You better take them to her next as I don't know what she wanted them for.");
          player.addXP(100);
View Full Code Here

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

          if (timeRemaining > 0L) {
            npc.say("Pff you're impatient aren't you? I haven't finished making the scissors yet, come back in "
              + TimeUtil.approxTimeUntil((int) (timeRemaining / 1000L)) + ".");
            return;
          }
          npc.say("Ah, thanks for reminding me. Here, Ida's scissors are ready. You better take them to her next as I don't know what she wanted them for.");
          player.addXP(100);
          player.addKarma(15);
          final Item scissors = SingletonRepository.getEntityManager().getItem(
                  "magical scissors");
          scissors.setBoundTo(player.getName());
View Full Code Here

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

        new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {

                        final int required = (sentence.getNumeral().getAmount());
            if (player.drop("disease poison", required * REQUIRED_POISONS)) {
              npc.say("Ok, here's your " + Integer.toString(required) + " eggshells. Enjoy!");
              new EquipItemAction("magical eggshells", required, true).fire(player, sentence, npc);
            } else {
              npc.say("Ok, ask me again when you have " + Integer.toString(required * REQUIRED_POISONS) + " disease poisons with you.");
            }           
          }
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.