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

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


    // 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",
      new QuestInStateCondition(QUEST_SLOT, "joshua"),
      ConversationStates.ATTENDING,
View Full Code Here


      ConversationStates.ATTENDING,
      "Wonderful! You must have good #karma.",
      new MultipleActions(
          new IncreaseKarmaAction(5.0),
          new SetQuestAction(QUEST_SLOT, "done"),
          new EnableFeatureAction("karma_indicator")));

    // player is not willing to help other people
    // player gets a little karma removed
    npc.add(ConversationStates.QUEST_OFFERED,
      ConversationPhrases.NO_MESSAGES, null,
      ConversationStates.ATTENDING,
      "I knew it ... you probably have bad #karma.",
      new MultipleActions(
          new DecreaseKarmaAction(10.0),
          new SetQuestAction(QUEST_SLOT, "done"),
          new EnableFeatureAction("karma_indicator")));

    // player wants to know what karma is
    npc.add(
      ConversationStates.ATTENDING,
      "karma",
View Full Code Here

TOP

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

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.