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

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


    return "maze";
  }
 
  @Override
  public boolean isRepeatable(Player player) {
    return new TimePassedCondition(getSlotName(), 1, COOLING_TIME).fire(player, null, null);
  }
View Full Code Here


   
    npc.addQuest("I can send you to a #maze you need to find your way out. I keep the a list of the fast and frequent maze solvers in that blue book on the table.");
 
    npc.add(ConversationStates.ATTENDING,
        "maze",
        new TimePassedCondition(getSlotName(), 1, COOLING_TIME),
        ConversationStates.QUEST_OFFERED,
        "There will be a portal out in the opposite corner of the maze. I'll also add scrolls to the two other corners you can try to get if you are fast enough. Do you want to try?",
        null);
   
    npc.add(ConversationStates.ATTENDING,
        "maze",
        new NotCondition(new TimePassedCondition(getSlotName(), 1, COOLING_TIME)),
        ConversationStates.ATTENDING,
        null,
        new SayTimeRemainingAction(getSlotName(), 1,
            COOLING_TIME, "I can send you to the maze only once in a day. You can go there again in"));
View Full Code Here

TOP

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

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.