Examples of SetQuestAndModifyKarmaAction


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

                  final EventRaiser npc) {
                int grilledsteakAmount = Rand.rand(4) + 1;
                new EquipItemAction("grilled steak", grilledsteakAmount, true).fire(player, sentence, npc);
                npc.say("Thank you!! Take " + Grammar.thisthese(grilledsteakAmount) + " " +
                    Grammar.quantityNumberStrNoun(grilledsteakAmount, "grilled steak") + " from my grill!");
                new SetQuestAndModifyKarmaAction(getSlotName(), "waiting;"
                    + System.currentTimeMillis(), 10.0).fire(player, sentence, npc);
              }
            }));

    // player asks about quest or says coal when they are supposed to bring some coal and they don't have it
View Full Code Here

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

    npc.add(ConversationStates.QUEST_STARTED,
        ConversationPhrases.NO_MESSAGES,
        null,
        ConversationStates.QUEST_STARTED,
        "Go away before I kill you!" ,
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -10.0));
   
    //reject the quest
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES,
        null,
        ConversationStates.ATTENDING,
        "If you change your mind please ask me again..." ,
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -10.0));
  }
View Full Code Here

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

    npc.add(ConversationStates.QUEST_OFFERED,
      ConversationPhrases.YES_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "That's lovely of you. Good luck searching for them.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "looking:said", 5.0));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.NO_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "Oh. Never mind. Perhaps since I'm only a ghost I couldn't offer you much reward anyway.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -15.0));

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

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

    /* player says yes */
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES, null,
        ConversationStates.QUESTION_1, null,
        new MultipleActions(new SetQuestAndModifyKarmaAction(QUEST_SLOT, NEEDED_ITEMS, 5),
                    new SayRequiredItemsFromCollectionAction(QUEST_SLOT, "I want my crown to be beautiful and shiny. I need [items]. " +
                        "Do you have some of those now with you?")));
       

    /* player is not willing to help */
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES, null,
        ConversationStates.IDLE,
        "Oh you don't want to help me?! Get lost, you are wasting my precious time!",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));
  }
View Full Code Here

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

    // player is willing to help
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES, null,
        ConversationStates.ATTENDING,
        "I need some blue elven cloaks if I'm to survive the winter. Bring me ten of them, and I will give you a reward.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, Integer.toString(REQUIRED_CLOAKS), 5.0));

    // player is not willing to help
    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES, null,
        ConversationStates.ATTENDING,
        "Oh dear... I'm going to be in trouble...",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));
  }
View Full Code Here

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

    // player is willing to help
    npc.add(ConversationStates.QUEST_2_OFFERED,
      ConversationPhrases.YES_MESSAGES, null,
      ConversationStates.ATTENDING,
      "You have to bring me one fish of each #species so that I can see what you have learned so far.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "", 5.0));

    // player is not willing to help
    npc.add(ConversationStates.QUEST_2_OFFERED,
      ConversationPhrases.NO_MESSAGES, null,
      ConversationStates.ATTENDING,
      "It's okay, then you can excercise a bit more.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));

    // player asks what exactly is missing
    npc.add(ConversationStates.ATTENDING, "species",
      new QuestActiveCondition(QUEST_SLOT),
      ConversationStates.QUESTION_2, null,
View Full Code Here

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

    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES,
        null,
        ConversationStates.ATTENDING,
        "Ok, I will await someone with enough backbone to do the job.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));
  }
View Full Code Here

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

      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.YES_MESSAGES,
      null,
      ConversationStates.IDLE,
      "Thank you. I hope to see you soon with the gold bars ... unless you are tempted to keep them.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT,"start", 5.0));

    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES, null,
        ConversationStates.ATTENDING,
        "Well, at least you are honest and told me from the start.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      "Lorithien",
      null,
View Full Code Here

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

    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.NO_MESSAGES, null,
        ConversationStates.ATTENDING,
        "So you'll just let them suffer! How despicable.",
        new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));
   
    // give some hints of where to find herbs. No warranties!
    npc.addReply(
        "kokuda",
        "I believe that herb can only be found on Athor, though they guard their secrets" +
View Full Code Here

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

      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.YES_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "Thank you. Please tell him #food or #sandwich so he knows you're not just a customer.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "start", 5.0));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      ConversationPhrases.NO_MESSAGES,
      null,
      ConversationStates.ATTENDING,
      "So you'd just let him starve! I'll have to hope someone else is more charitable.",
      new SetQuestAndModifyKarmaAction(QUEST_SLOT, "rejected", -5.0));

    npc.add(
      ConversationStates.QUEST_OFFERED,
      "Joshua",
      null,
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.