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

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


      player.setQuest(QUEST_SLOT, 0, "start");
      player.setQuest(QUEST_SLOT, 1, monstersType);
      for(int i=0; i<sortedcreatures.size(); i++) {
        toKill.put(sortedcreatures.get(i), new Pair<Integer, Integer>(0,0));
      }
      new StartRecordingKillsAction(QUEST_SLOT, 2, toKill).fire(player, sentence, speakerNPC);
    }
View Full Code Here


        new SayTimeRemainingAction(QUEST_SLOT, 1, WEEK_IN_MINUTES*2, "These monks learned their lesson for now but I could need your help again in"));
 

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new SetQuestAction(QUEST_SLOT, 0, "start"));
    actions.add(new StartRecordingKillsAction(QUEST_SLOT, 1, creaturestokill));

   
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
View Full Code Here

        new PlayerHasItemWithHimCondition("note")
      );
   
    final ChatAction action = new MultipleActions(
          new SetQuestAction(QUEST_SLOT, 0, "kill_scientist"),
          new StartRecordingKillsAction(QUEST_SLOT, 1, "Sergej Elos", 0, 1),
          new DropItemAction("note")
        );
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()), condition),
        ConversationStates.INFORMATION_2,
View Full Code Here

    toKill.put("mountain leader dwarf", new Pair<Integer, Integer>(0,2));
   
    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new IncreaseKarmaAction(5.0));
    actions.add(new SetQuestAction(QUEST_SLOT, 0, "start"));
    actions.add(new StartRecordingKillsAction(QUEST_SLOT, 1, toKill));
   
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
        ConversationStates.ATTENDING,
View Full Code Here

    toKill.put("blue dragon",new Pair<Integer, Integer>(0,1));
    toKill.put("stone golem",new Pair<Integer, Integer>(0,1));

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new SetQuestAction(QUEST_SLOT, "start"));
    actions.add(new StartRecordingKillsAction(QUEST_SLOT, 1, toKill));

   
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
View Full Code Here

        // NPC_name quest doesn't exist anywhere else neither is
        // used for any other purpose

        final List<ChatAction> actions = new LinkedList<ChatAction>();
        actions.add(new SetQuestAction(QUEST_SLOT, 0, "start"));
        actions.add(new StartRecordingKillsAction(QUEST_SLOT, 1, "rat", 0, 1));

        add(ConversationStates.IDLE,
            ConversationPhrases.GREETING_MESSAGES,
            new AndCondition(new GreetingMatchesNameCondition(getName()),
                new QuestNotStartedCondition(QUEST_SLOT)),
View Full Code Here

    toKill.put("caverat", new Pair<Integer, Integer>(0,1));
    toKill.put("snake", new Pair<Integer, Integer>(0,1));
   
    start.add(new IncreaseKarmaAction(2.0));
    start.add(new SetQuestAction(QUEST_SLOT, 0, "start"));   
    start.add(new StartRecordingKillsAction(QUEST_SLOT, 1, toKill));
   
    npc.add(
        ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
View Full Code Here

    final List<ChatAction> start = new LinkedList<ChatAction>();
    start.add(new EquipItemAction("kotoch prison key", 1, true));
    start.add(new IncreaseKarmaAction(6.0));
    start.add(new SetQuestAction(QUEST_SLOT, 0, "start"));
    start.add(new StartRecordingKillsAction(QUEST_SLOT, 1, "mountain orc chief", 0, 1));


    npc.add(
      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.YES_MESSAGES,
View Full Code Here

    toKill.put("infantry gnome", new Pair<Integer, Integer>(0,1));
    toKill.put("cavalryman gnome",new Pair<Integer, Integer>(0,1));

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new SetQuestAction(QUEST_SLOT, "start"));
    actions.add(new StartRecordingKillsAction(QUEST_SLOT, 1, toKill));
   
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
        ConversationStates.ATTENDING,
View Full Code Here

TOP

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

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.