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

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


      new AndCondition(new QuestStateStartsWithCondition(QUEST_SLOT, "reward"),
               // delay is in minutes, last parameter is argument of timestamp
               new NotCondition(new TimePassedCondition(QUEST_SLOT,1,DELAY_IN_MINUTES))),
      ConversationStates.ATTENDING,
      null,
      new SayTimeRemainingAction(QUEST_SLOT,1,DELAY_IN_MINUTES,"Hello I am still busy with that baby dragon stew for Mr Yeti. You can get your reward in"));


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


      new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
          new QuestStartedCondition(QUEST_SLOT),
          new NotCondition(new TimePassedCondition(QUEST_SLOT, 1, REQUIRED_MINUTES))),
      ConversationStates.ATTENDING,
      null,
      new SayTimeRemainingAction(QUEST_SLOT, 1, REQUIRED_MINUTES, "Alright? I hope you don't want more beans. You can't take more of that stuff for at least another"));

    // player responds to word 'deal' - enough level
    npc.add(ConversationStates.INFORMATION_1,
      "deal",
      new AndCondition(
View Full Code Here

        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new QuestCompletedCondition(QUEST_SLOT),
            new NotCondition(new TimePassedCondition(QUEST_SLOT, 1, REQUIRED_MINUTES))),
        ConversationStates.ATTENDING,
        null,
        new SayTimeRemainingAction(QUEST_SLOT, 1, REQUIRED_MINUTES , "Oh I am sorry, I have to wash my cooking pots first before making more soup for you. Please come back in")
      );

    // player responds to word 'revive'
    npc.add(ConversationStates.INFORMATION_1,
        "revive",
View Full Code Here

    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"));

    npc.add(ConversationStates.QUEST_OFFERED,
        ConversationPhrases.YES_MESSAGES,
        null,
View Full Code Here

TOP

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

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.