Examples of IncreaseXPAction


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

    /** Complete the quest */
    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("gold bar", GOLD_AMOUNT));
    reward.add(new EquipItemAction("nalwor bank key", 1, true));
    reward.add(new IncreaseXPAction(200));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
    reward.add(new IncreaseKarmaAction(10));
   
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(getName()),
View Full Code Here

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

    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new QuestInStateCondition(QUEST_SLOT, "recommended")),
      ConversationStates.IDLE,
      "Greetings! My wonderful daughter requests that I grant you citizenship of Kalavan City. Consider it done. Now, forgive me while I go back to my meal. Goodbye.",
      new MultipleActions(new IncreaseXPAction(500), new SetQuestAction(QUEST_SLOT, "done")));

    /** If you aren't in the condition to speak to him (not completed quest, or already spoke) the King will dismiss you */
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new QuestNotInStateCondition(QUEST_SLOT, "recommended")),
View Full Code Here

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

    final SpeakerNPC npc = npcs.get("John");


    final List<ChatAction> actions = new LinkedList<ChatAction>();
      actions.add(new EquipItemAction("greater potion", 10));
    actions.add(new IncreaseXPAction(5000));
    actions.add(new SetQuestAction(QUEST_SLOT, "killed;1"));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
    actions.add(new IncreaseKarmaAction(10.0));

   
View Full Code Here

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

      "Oh great! Did my brother Xoderos send you with those sandwiches?",
      null);

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("sandwich", FOOD_AMOUNT));
    reward.add(new IncreaseXPAction(150));
    reward.add(new SetQuestAction(QUEST_SLOT, "joshua"));
    reward.add(new IncreaseKarmaAction(15));

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

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

   
    // ideally, make it so that this slot being done means
    // you get a keyring object instead what we currently
    // have - a button in the settings panel
    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new IncreaseXPAction(50));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
    reward.add(new EnableFeatureAction("keyring"));   
    /** Complete the quest */
    npc.add(
      ConversationStates.ATTENDING, "Joshua",
View Full Code Here

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

    // Player has got water and it has been checked
    final List<ChatAction> reward = new LinkedList<ChatAction>();
    // make sure we drop the checked water not any other water
    reward.add(new DropInfostringItemAction("water", CLEAN_WATER_INFOSTRING));
    reward.add(new EquipItemAction("potion", 3));
    reward.add(new IncreaseXPAction(100));
    reward.add(new IncrementQuestAction(QUEST_SLOT, 2, 1) );
    reward.add(new SetQuestToTimeStampAction(QUEST_SLOT,1));
    reward.add(new SetQuestAction(QUEST_SLOT, 0, "done"));
    reward.add(new IncreaseKarmaAction(5.0));
   
View Full Code Here

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

          new SystemPropertyCondition("stendhal.minetown")),
      ConversationStates.ATTENDING, "I guess you still have to talk to some people.", null);

    ChatAction reward = new MultipleActions(
      new IncreaseKarmaAction(15),
      new IncreaseXPAction(400),
      new SetQuestAction(QUEST_SLOT, 0, "done"),
      new EquipItemAction("empty scroll", 5),
      new SetHallOfFameToAgeDiffAction(QUEST_SLOT, 1, "P"),
      loadSignFromHallOfFame);
 
View Full Code Here

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

    final String answer = "Guessed who supplies Xin Blanca with the weapons he sells? Well, it's me! I have to avoid raising suspicion, though, so I can only smuggle him small weapons. If you want something more powerful, you'll have to venture into the dungeons and kill some of the creatures there for items.\n";

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new EquipItemAction("money", 5));
    reward.add(new IncreaseXPAction(10));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
   
    npc.add(ConversationStates.INFORMATION_3,
        Arrays.asList("buy", "sell", "offer", "sell studded shield"),
        new QuestNotCompletedCondition(QUEST_SLOT),
View Full Code Here

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

    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new DropRecordedItemAction(QUEST_SLOT,1));
    actions.add(new SetQuestAndModifyKarmaAction(QUEST_SLOT, "done;1", 5.0));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
    actions.add(new IncreaseXPAction(200));
 
    npc.add(ConversationStates.QUEST_ITEM_BROUGHT,
      ConversationPhrases.YES_MESSAGES,
      new PlayerHasRecordedItemWithHimCondition(QUEST_SLOT,1),
      ConversationStates.ATTENDING, "Thank you! You have rescued our rare animals.",
View Full Code Here

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

  private void step2() {
  final SpeakerNPC npc = npcs.get("Lorenz")
 
      final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("scythe"));
    reward.add(new IncreaseXPAction(1000));
    reward.add(new SetQuestAction(QUEST_SLOT, "capture"));
    reward.add(new IncreaseKarmaAction(10));
   
    npc.add(ConversationStates.ATTENDING, "scythe",
        new AndCondition(new QuestInStateCondition(QUEST_SLOT, "start"),
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.