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

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


         "offer from the market, tell me #'show mine', so you will see only your offers. Say #remove " +
         "#number afterward to remove a certain offer. If you have expired offers, you can ask for them " +
         "by saying #show #expired. You can prolong an expired offer by saying #prolong #number. If you already sold some items " +
         "you can say #fetch to me and I will pay out your earnings.");
    new PrepareOfferHandler().add(this);
    add(ConversationStates.ATTENDING, "show", new NotCondition(new TextHasParameterCondition()),
        ConversationStates.ATTENDING, null, new ShowOfferItemsChatAction());
    add(ConversationStates.ATTENDING, "show", new TextHasParameterCondition(), ConversationStates.ATTENDING, null, new ShowOffersChatAction());
    // fetch earnings when starting to talk to the market manager
    add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES, new PlayerHasEarningsToCollectCondition(), ConversationStates.ATTENDING, null, new FetchEarningsChatAction());
    new AcceptOfferHandler().add(this);
    new RemoveOfferHandler().add(this);
    new ProlongOfferHandler().add(this);
View Full Code Here


          ConversationStates.ATTENDING,
          "Oh sorry, I don't rent signs to people who have so little experience as you.",
          null);

        add(ConversationStates.ATTENDING, "",
          new AndCondition(getRentMatchCond(), new LevelGreaterThanCondition(5), new NotCondition(new TextHasParameterCondition())),
          ConversationStates.ATTENDING,
          "Just tell me #rent followed by the text I should write on it.",
          null);

        add(ConversationStates.ATTENDING, "",
          new AndCondition(getRentMatchCond(), new LevelGreaterThanCondition(5), new TextHasParameterCondition()),
          ConversationStates.BUY_PRICE_OFFERED,
          null,
          new ChatAction() {
            public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
              text = sentence.getOriginalText().substring(5).trim();
View Full Code Here

TOP

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

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.