Package games.stendhal.server.entity.npc.action

Examples of games.stendhal.server.entity.npc.action.CollectRequestedItemsAction


        sl.add("porcinis");
      }

      npc.add(ConversationStates.QUESTION_2, sl, null,
          ConversationStates.QUESTION_2, null,
          new CollectRequestedItemsAction(
              itemName, QUEST_SLOT,
              "Good, do you have anything else?", "You have already brought " +
                Grammar.quantityplnoun(entry.getValue(), itemName) + " for me but thank you anyway.",
              completeAction, ConversationStates.ATTENDING));
    }
View Full Code Here


    final ItemCollection items = new ItemCollection();
    items.addFromQuestStateString(NEEDED_ITEMS);
    for (final Map.Entry<String, Integer> item : items.entrySet()) {
      npc.add(ConversationStates.QUESTION_1, item.getKey(), null,
          ConversationStates.QUESTION_1, null,
          new CollectRequestedItemsAction(
              item.getKey(), QUEST_SLOT,
              "Good, do you have anything else?",
              "You have already brought that!",
              new MultipleActions(
                  new SetQuestAction(QUEST_SLOT,"legs"),
View Full Code Here

        items.addFromQuestStateString(REQUIRED_ITEMS_TEMPLATE);
        for (final Map.Entry<String, Integer> item : items.entrySet()) {
            npc.add(ConversationStates.QUESTION_1,
                item.getKey(), null,
                ConversationStates.QUESTION_1, null,
                new CollectRequestedItemsAction(
                    item.getKey(),
                        QUEST_SLOT,
                        "Wroff! do you have anything else?",
                        "Wruff! You have already brought that to me!",
                        completeAction, ConversationStates.ATTENDING));
View Full Code Here

    final ItemCollection items = new ItemCollection();
    items.addFromQuestStateString(NEEDED_ITEMS);
    for (final Map.Entry<String, Integer> item : items.entrySet()) {
      npc.add(ConversationStates.QUESTION_1, item.getKey(), null,
          ConversationStates.QUESTION_1, null,
          new CollectRequestedItemsAction(
              item.getKey(), QUEST_SLOT,
              "Good, do you have anything else?", "You have already brought that!",
              completeAction, ConversationStates.ATTENDING));
    }
View Full Code Here

    final ItemCollection items = new ItemCollection();
    items.addFromQuestStateString(NEEDED_ITEMS);
    for (final Map.Entry<String, Integer> item : items.entrySet()) {
      npc.add(ConversationStates.QUESTION_2, item.getKey(), null,
          ConversationStates.QUESTION_2, null,
          new CollectRequestedItemsAction(
              item.getKey(), QUEST_SLOT,
              "Wonderful! Did you bring anything else with you?", "You brought me that ingredient already.",
              completeAction, ConversationStates.ATTENDING));
    }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.action.CollectRequestedItemsAction

Copyright © 2018 www.massapicom. 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.