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

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


 
    npc.add(ConversationStates.ATTENDING, Arrays.asList("jailed", "Lorenz"),
        new QuestInStateCondition(QUEST_SLOT, "jailed"),
        ConversationStates.ATTENDING,
        "Oh my dear. My father should not know it. Hope he is fine! Thanks for this message! Send him #greetings! You better return to him, he could need more help.",
        new SetQuestAction(QUEST_SLOT, "spoken"));

    npc.add(ConversationStates.ATTENDING, "greetings",
        new QuestInStateCondition(QUEST_SLOT, "spoken"),
        ConversationStates.ATTENDING, "Please, go and give Lorenz my #greetings.",
        null);
View Full Code Here


 
    npc.add(ConversationStates.ATTENDING, "greetings",
        new QuestInStateCondition(QUEST_SLOT, "spoken"),
        ConversationStates.ATTENDING,
        "Thanks my friend. Now a final task for you! Bring me a barbarian armor. Without this I cannot escape from here! Go! Go! And let me know when you have the #armor !",
        new SetQuestAction(QUEST_SLOT, "armor"));
   
    npc.add(ConversationStates.ATTENDING,
        ConversationPhrases.QUEST_MESSAGES,
        new QuestInStateCondition(QUEST_SLOT, "greetings"),
        ConversationStates.ATTENDING,
View Full Code Here

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("barbarian armor"));
    reward.add(new IncreaseXPAction(50000));
    reward.add(new EquipItemAction("gold bar", 20));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
    reward.add(new IncreaseKarmaAction(15));
   
    npc.add(ConversationStates.ATTENDING, "armor",
        new AndCondition(new QuestInStateCondition(QUEST_SLOT, "armor"),
            new PlayerHasItemWithHimCondition("barbarian armor")),
View Full Code Here

    toKill.put("rat", new Pair<Integer, Integer>(0,1));
    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,
View Full Code Here

    final SpeakerNPC npc = npcs.get("Eonna");
   
    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new IncreaseKarmaAction(5.0));
    reward.add(new IncreaseXPAction(100));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));

    // the player returns to Eonna after having started the quest.
    // Eonna checks if the player has killed one of each animal race.
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
View Full Code Here

        ConversationPhrases.YES_MESSAGES, null,
        ConversationStates.QUESTION_2, "Awesome, what did you bring?",
        null);

    ChatAction completeAction = new  MultipleActions(
        new SetQuestAction(QUEST_SLOT, "done"),
        new SayTextAction("Thank you so much! Now I can start mixing the mixture which will hopefully keep me safe inside of my own house without the assassins and bandits comming up from downstairs. Here is an assassin dagger for you. I had to take it away from one of my students in the class once and now you can maybe fight and win against them."),
        new IncreaseXPAction(5000),
        new IncreaseKarmaAction(25),
        new EquipItemAction("assassin dagger", 1 ,true)
        );
View Full Code Here

            }
          }
        });

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new SetQuestAction(QUEST_SLOT, "started"));
    //actions.add(new StartRecordingKillsAction(QUEST_SLOT,1,"spider", "poisonous spider", "giant spider"));
    actions.add(new IncreaseKarmaAction(5.0));

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

      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.YES_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "Thanks! I'm sure that #Xin will reward you generously. Let me know if you need anything else.",
      new SetQuestAction(QUEST_SLOT, "start"));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.NO_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "Yes, now that I think about it, it probably isn't wise to involve too many people in this... Just forget we spoke, okay? You never heard anything, if you know what I mean.",
      new SetQuestAction(QUEST_SLOT, "rejected"));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      Arrays.asList("Xin", "Xin Blanca", "Blanca"),
      null,
View Full Code Here

    reward.add(new ChangePlayerOutfitAction(balloonList[1], false, false));
    reward.add(new ChangePlayerOutfitAction(balloonList[2], false, false));
    reward.add(new ChangePlayerOutfitAction(balloonList[3], false, false));
    reward.add(new IncreaseXPAction(200));
    reward.add(new IncreaseKarmaAction(50));
    reward.add(new SetQuestAction(QUEST_SLOT,0,"done"));
    reward.add(new IncrementQuestAction(QUEST_SLOT,1,1));
   
    // The player has a balloon and gives it to Bobby
    npc.add(
        ConversationStates.QUEST_ITEM_QUESTION,
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,
View Full Code Here

TOP

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

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.