Examples of IncrementQuestAction


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

              ConversationStates.ATTENDING,
              null,
              new MultipleActions(
                  new RewardPlayerAction(),
                  new IncreaseXPAction(100000),
                  new IncrementQuestAction(QUEST_SLOT,3,1),
                  // empty the 2nd index as we use it later
                  new SetQuestAction(QUEST_SLOT,2,""),
                  new SetQuestToTimeStampAction(QUEST_SLOT,1),
                  new SetQuestAction(QUEST_SLOT,0,"done")));
View Full Code Here

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

    final List<ChatAction> actions = new LinkedList<ChatAction>();
      actions.add(addRandomNumberOfItemsAction);
    actions.add(new IncreaseXPAction(15000));
    actions.add(new SetQuestAction(QUEST_SLOT, 0, "killed"));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
    actions.add(new IncrementQuestAction(QUEST_SLOT,2,1));
   
    LinkedList<String> triggers = new LinkedList<String>();
    triggers.addAll(ConversationPhrases.FINISH_MESSAGES);
    triggers.addAll(ConversationPhrases.QUEST_MESSAGES);   
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

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

        null);
   
    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new DropRecordedItemAction(QUEST_SLOT,0));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
    actions.add(new IncrementQuestAction(QUEST_SLOT, 2, 1));
    actions.add(new SetQuestAction(QUEST_SLOT, 0, "done"));
    actions.add(new IncreaseXPDependentOnLevelAction(8, 90.0));
    actions.add(new IncreaseKarmaAction(10.0));
   
    npc.add(ConversationStates.ATTENDING,
View Full Code Here

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

        new MultipleActions(new DropItemAction("rhosyd"),
                                    new IncreaseXPAction(5000),
                                    new IncreaseKarmaAction(15),
                  addRandomNumberOfItemsAction,
                  new SetQuestAction(QUEST_SLOT, 0, "flower_brought"),
                  new IncrementQuestAction(QUEST_SLOT, 2, 1)));

    npc.add(ConversationStates.ATTENDING,
      Arrays.asList("flower", "Rhosyd"),
      new NotCondition(new PlayerHasItemWithHimCondition("rhosyd")),
      ConversationStates.ATTENDING,
View Full Code Here

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

        null);
   
    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new DropRecordedItemAction(QUEST_SLOT,0));
    actions.add(new SetQuestToTimeStampAction(QUEST_SLOT, 1));
    actions.add(new IncrementQuestAction(QUEST_SLOT,2,1));
    actions.add(new SetQuestAction(QUEST_SLOT, 0, "done"));
    actions.add(new IncreaseXPDependentOnLevelAction(5.0/3.0, 290.0));
    actions.add(new IncreaseKarmaAction(10.0));
    actions.add(new ChatAction() {
      public void fire(final Player player, final Sentence sentence, final EventRaiser raiser) {
View Full Code Here

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

        ConversationStates.ATTENDING, null,
        new MultipleActions(new DropItemAction("zantedeschia"),
                                    new IncreaseXPAction(5000),
                                    new IncreaseKarmaAction(15),
                  addRandomNumberOfItemsAction,                      
                  new IncrementQuestAction(QUEST_SLOT, 2, 1),
                  new SetQuestToTimeStampAction(QUEST_SLOT,1),
                  new SetQuestAction(QUEST_SLOT, 0, "done")));

   
  }
View Full Code Here

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

    // Give at least one xp for persistent but hopelessly slow players
    points = Math.max(points, 1);

    DBCommandQueue.get().enqueue(new WriteHallOfFamePointsCommand(player.getName(), "M", points, true));
    new SetQuestAction("maze", 0, "done").fire(player, null, null);
    new IncrementQuestAction("maze", 2, 1).fire(player, null, null);
    player.sendPrivateText("You used " + TimeUtil.timeUntil((int) (timediff / 1000), true)
        + " to solve the maze. That was worth " + Grammar.quantityplnoun(points, "point") + ".");
    SingletonRepository.getAchievementNotifier().onFinishQuest(player);
    player.addXP(REWARD_XP);
  }
View Full Code Here

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

        ConversationStates.ATTENDING,
        "Good work! Let me thank you in the name of the people of Semos!",
        new MultipleActions(
            new IncreaseXPDependentOnLevelAction(5, 95.0),
            new IncreaseKarmaAction(5.0),
            new IncrementQuestAction(QUEST_SLOT, 2, 1),
            new SetQuestToTimeStampAction(QUEST_SLOT,1),
            new SetQuestAction(QUEST_SLOT,0,"done")
    ));
  }
View Full Code Here

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

    }

    deathmatchState.setLifecycleState(DeathmatchLifecycle.BAIL);
    new SetQuestAction("deathmatch", 0, deathmatchState.toQuestString()).fire(player, sentence, raiser);
    // Track the number of bails.
    new IncrementQuestAction("deathmatch", 7, 1).fire(player, sentence, raiser);

    // TODO: fix race condition until bail is processed in DeathmatchEngine
    final Item helmet = player.getFirstEquipped("trophy helmet");
    if ((helmet != null) && helmet.has("def") && (helmet.getInt("def") > 1)) {
      raiser.say("Coward! I'm sorry to inform you, for this your helmet has been magically weakened.");
View Full Code Here

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

    player.updateItemAtkDef();
    TurnNotifier.get().notifyInTurns(0, new NotifyPlayerAboutHallOfFamePoints((SpeakerNPC) raiser.getEntity(), player.getName(), "D", "deathmatch_score"));
   
    new SetQuestAction("deathmatch", 0, "done").fire(player, sentence, raiser);
    // Track the number of wins.
    new IncrementQuestAction("deathmatch", 6, 1).fire(player, sentence, raiser);
    SingletonRepository.getAchievementNotifier().onFinishQuest(player);
  }
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.