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

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


                                     requiredResources, REQUIRED_MINUTES_THREAD);

    npc.add(ConversationStates.ATTENDING,
        "make",
        new QuestInStateCondition(mithrilcloak.getQuestSlot(), "need_fabric"), ConversationStates.ATTENDING, null,
        new ProducerBehaviourAction(behaviour) {
          @Override
          public void fireRequestOK(final ItemParserResult res, Player player, Sentence sentence, EventRaiser npc) {
            // Find out how much items we shall produce.
            if (res.getAmount() < 40) {
              npc.say("Do you really want so few? I'm not wasting my time with that! Any decent sized pieces of fabric needs at least 40 spools of thread! You should at least #make #40.");
View Full Code Here


        add(
        ConversationStates.ATTENDING,
        "make",
        new QuestNotActiveCondition(behaviour.getQuestSlot()),
        ConversationStates.ATTENDING, null,
        new ProducerBehaviourAction(behaviour) {
          @Override
          public void fireRequestOK(final ItemParserResult res, final Player player, final Sentence sentence, final EventRaiser npc) {
            // Find out how much items we shall produce.
            if (res.getAmount() > 1000) {
              logger.warn("Decreasing very large amount of "
View Full Code Here

          new NotCondition(new SentenceHasErrorCondition()),
          new QuestNotActiveCondition(QUEST_SLOT)
        ),
                false,
                ConversationStates.ATTENDING, null,
        new ProducerBehaviourAction(behaviour) {
          @Override
          public void fireRequestOK(final ItemParserResult res, final Player player, final Sentence sentence, final EventRaiser npc) {
            // Find out how much items we shall produce.
            if (res.getAmount() > 1000) {
              logger.warn("Decreasing very large amount of "
View Full Code Here

        add(
            ConversationStates.ATTENDING,
            "make",
            new QuestNotActiveCondition(behaviour.getQuestSlot()),
            ConversationStates.ATTENDING, null,
            new ProducerBehaviourAction(behaviour, "produce") {
              @Override
              public void fireRequestOK(final ItemParserResult res, final Player player, final Sentence sentence, final EventRaiser npc) {
                // Find out how much items we shall produce.
                if (res.getAmount() > 1000) {
                  logger.warn("Decreasing very large amount of "
View Full Code Here

TOP

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

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.