Examples of IncreaseKarmaAction


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

    // first number is required solo kills, second is required shared kills
    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,
View Full Code Here

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

  private void step_3() {

    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.
View Full Code Here

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

    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)
        );
    /* add triggers for the item names */
    final ItemCollection items = new ItemCollection();
    items.addFromQuestStateString(NEEDED_ITEMS);
View Full Code Here

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

        });

    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,
        ConversationPhrases.YES_MESSAGES,
        null,
View Full Code Here

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

    reward.add(new ChangePlayerOutfitAction(balloonList[0], false, false));
    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(
View Full Code Here

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

      null);


    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(
View Full Code Here

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

    final SpeakerNPC npc = npcs.get("Orc Saman");

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new EquipItemAction("club of thorns", 1, true));
    reward.add(new IncreaseKarmaAction(10.0));
    reward.add(new IncreaseXPAction(1000));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));

    // the player returns after having started the quest.
    // Saman checks if kill was made
View Full Code Here

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

      questTrigger = new LinkedList<String>(ConversationPhrases.QUEST_MESSAGES);
    questTrigger.add(extraTrigger);

      final List<ChatAction> tookpotionactions = new LinkedList<ChatAction>();
    tookpotionactions.add(new DropItemAction("love potion"));
    tookpotionactions.add(new IncreaseKarmaAction(10.0));
    tookpotionactions.add(new IncreaseXPAction(1000));
    tookpotionactions.add(new SetQuestAction(QUEST_SLOT, "dragon"));

    npc.add(ConversationStates.ATTENDING, questTrigger,
        new AndCondition(new QuestInStateCondition(QUEST_SLOT, "gotpotion"),
View Full Code Here

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

    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new EquipItemAction("money", 80));
    reward.add(new IncreaseXPAction(50));
    reward.add(new SetQuestAction(QUEST_SLOT, "done"));
    reward.add(new IncreaseKarmaAction(10));

    final List<ChatAction> reward1 = new LinkedList<ChatAction>(reward);
    reward1.add(new DropItemAction("leather cuirass"));

    npc.add(
View Full Code Here

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

   
    final List<ChatAction> reward = new LinkedList<ChatAction>();
    reward.add(new DropItemAction("fish soup"));
    reward.add(new IncreaseXPAction(200));
    reward.add(new SetQuestToTimeStampAction(QUEST_SLOT));
    reward.add(new IncreaseKarmaAction(5));
    reward.add(new EquipItemAction("potion",10));
    reward.add(new ChatAction() {
      public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
        final Item soup = SingletonRepository.getEntityManager()
        .getItem("fish soup");
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.