Package games.stendhal.server.entity.npc.condition

Examples of games.stendhal.server.entity.npc.condition.OrCondition


    return "MeetKetteh";
  }

  @Override
  public boolean isCompleted(final Player player) {
    return new OrCondition(
            new QuestInStateCondition(QUEST_SLOT,"seen"),
            new QuestInStateCondition(QUEST_SLOT,"learnt_manners"),
            new QuestInStateCondition(QUEST_SLOT,"done")).fire(player, null, null);
  }
View Full Code Here


          new IncreaseKarmaAction(10)));

    // player returned after climbing the tower partially. reset status to candles done and start again
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new OrCondition(
                new QuestInStateCondition(QUEST_SLOT,"first_step"),
                new QuestInStateCondition(QUEST_SLOT,"second_step"),
                new QuestInStateCondition(QUEST_SLOT,"third_step"),
                new QuestInStateCondition(QUEST_SLOT,"fourth_step"),
                new QuestInStateCondition(QUEST_SLOT,"fifth_step"),
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.condition.OrCondition

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.