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

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


                new QuestCompletedCondition(GRAFINDLE_QUEST_SLOT),
                new QuestCompletedCondition(ZARA_QUEST_SLOT),
                new QuestCompletedCondition(QUEST_SLOT)),
              ConversationStates.ATTENDING,
              null,
              new SayTextWithPlayerNameAction("Welcome to the Wizard's Bank, [name]. Do you wish to pay to access your chest again?"));

        // never started quest
        add(ConversationStates.IDLE,
            ConversationPhrases.GREETING_MESSAGES,
            new AndCondition(new GreetingMatchesNameCondition(super.getName()),
                new QuestCompletedCondition(GRAFINDLE_QUEST_SLOT),
                new QuestCompletedCondition(ZARA_QUEST_SLOT),
                new QuestNotStartedCondition(QUEST_SLOT)),
              ConversationStates.ATTENDING,
              null,
              new SayTextWithPlayerNameAction("Welcome to the Wizard's Bank, [name]."));
       
        // currently in bank
        add(ConversationStates.IDLE,
            ConversationPhrases.GREETING_MESSAGES,
            new AndCondition(new GreetingMatchesNameCondition(super.getName()),
                new QuestCompletedCondition(GRAFINDLE_QUEST_SLOT),
                new QuestCompletedCondition(ZARA_QUEST_SLOT),
                new QuestActiveCondition(QUEST_SLOT)),
              ConversationStates.ATTENDING,
              null,
              new SayTextWithPlayerNameAction("Welcome to the Wizard's Bank, [name]. You may #leave sooner, if required."));
       
        // hasn't got access to all banks yet
        add(ConversationStates.IDLE,
            ConversationPhrases.GREETING_MESSAGES,
            new AndCondition(new GreetingMatchesNameCondition(super.getName()),
View Full Code Here


            new NotCondition(new NakedCondition()),
            new QuestInStateCondition(QUEST_SLOT, "seen_naked")),
        ConversationStates.ATTENDING,
        null,
        new MultipleActions(
            new SayTextWithPlayerNameAction("Hi again, [name]. I'm so glad you have some clothes on now."),
            new SetQuestAction(QUEST_SLOT, "done")));

    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(new NakedCondition()),
            new QuestNotStartedCondition(QUEST_SLOT)),
        ConversationStates.ATTENDING,
        null,
        new MultipleActions(
            new SayTextWithPlayerNameAction("Hi [name], nice to meet you. You know, we have something in common - good #manners. Did you know that if someone says something in #blue it is polite to repeat it back to them? So, repeat after me: #manners."),
            new SetQuestAction(QUEST_SLOT, "seen")));
   
    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(new NakedCondition()),
            new QuestStartedCondition(QUEST_SLOT),
            new QuestNotInStateCondition(QUEST_SLOT, "seen_naked")),
        ConversationStates.ATTENDING,
        null,
        new SayTextWithPlayerNameAction("Hi again, [name]."));

    npc.add(ConversationStates.ATTENDING, ConversationPhrases.NO_MESSAGES, new NakedCondition(),
        ConversationStates.IDLE,
        "If you don't put on some clothes and leave, I shall scream!",
        null);
View Full Code Here

TOP

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

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.