Package games.stendhal.server.entity.npc.behaviour.adder

Examples of games.stendhal.server.entity.npc.behaviour.adder.ProducerAdder


    requiredResources.put("skull ring", 1);
    requiredResources.put("empty goblet", 1);
    final ProducerBehaviour behaviour = new ProducerBehaviour(
        "sicky_fill_goblet", "fill", "goblet", requiredResources,
        5 * 60, true);
    new ProducerAdder().addProducer(npc, behaviour,
      "Please don't try to kill me...I'm just a sick old #vampire. Do you have any #blood I could drink? If you have an #empty goblet I will #fill it with blood for you in my cauldron.");

  }
View Full Code Here


        requiredResources.put("mithril nugget", 1);

        final ProducerBehaviour behaviour = new ProducerBehaviour("Pedinghaus_cast_mithril",
            "cast", "mithril bar", requiredResources, 18 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Greetings. I sense you may be interested in mithril. If you desire me to #cast you a #'mithril bar', just say the word.");
        addReply("wood",
                "The wood is for the fire. I hope you collect yours from the forest, and not the barbaric practise of killing ents.");
        addReply(Arrays.asList("mithril ore", "mithril nugget"),
                "Nowadays these rare nuggets are only likely to be found in the Ados mountains. I have no idea if that area is still civilised...");
View Full Code Here

        requiredResources.put("ham", 1);

        final ProducerBehaviour behaviour = new ProducerBehaviour("kroip_make_pizza", "make", "pizza",
                requiredResources, 5 * 60, true);

        new ProducerAdder().addProducer(this, behaviour,
                "Welkom!");
      }
    };

    baker.setEntityClass("koboldchefnpc");
View Full Code Here

        requiredResources.put("minor potion", 1);

        final ProducerBehaviour mixerBehaviour = new ProducerBehaviour("pamela_mix_cream",
            "mix", "suntan cream", requiredResources, 10 * 60);

        new ProducerAdder().addProducer(this, mixerBehaviour, "Hallo!");

        addReply(
                Arrays.asList("suntan", "cream", "suntan cream"),
                "David's and mine suntan cream is famous all over the island. But the way to the labyrinth entrance is blocked, so we can't get all the ingredients we need. If you bring me the things we need, I can #mix our special suntan cream for you.");

View Full Code Here

        requiredResources.put("gold nugget", 1);

        final ProducerBehaviour behaviour = new ProducerBehaviour("joshua_cast_gold",
            "cast", "gold bar", requiredResources, 15 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Hi! I'm the local goldsmith. If you require me to #cast you a #'gold bar' just tell me!");
        addReply("wood",
                "I need some wood to keep my furnace lit. You can find any amount of it just lying around in the forest.");
        addReply(Arrays.asList("ore", "gold ore", "gold nugget"),
                "I think there are places in the water where you can find gold ore. But you need a special tool to prospect for gold.");
View Full Code Here

        requiredResources.put("flour", 2);

        final ProducerBehaviour behaviour = new ProducerBehaviour("erna_bake_bread",
            "bake", "bread", requiredResources, 10 * 60);

        new ProducerAdder().addProducer(this, behaviour,
        "Welcome to the Semos bakery! We'll #bake fine bread for anyone who helps bring our #flour delivery from the mill.");
       
        addOffer("Our pizza delivery team can #borrow some kitchen equipment from me.");
        
        add(ConversationStates.ATTENDING, "borrow",
View Full Code Here

        final ProducerBehaviour behaviour = new ProducerBehaviour(
            "leander_make_sandwiches", "make", "sandwich",
            requiredResources, 3 * 60);

        new ProducerAdder().addProducer(this, behaviour,
        "Hallo! Glad to see you in my kitchen where I make #pizza and #sandwiches.");


      }};
      npc.setPosition(15, 3);
View Full Code Here

    requiredResources.put("grain", 5);

    final ProducerBehaviour behaviour = new ProducerBehaviour("jenny_mill_flour",
        "mill", "flour", requiredResources, 2 * 60);
    new SellerAdder().addSeller(npc, new SeedSellerBehaviour());
    new ProducerAdder().addProducer(npc, behaviour,"Greetings! I am Jenny, the local miller. If you bring me some #grain, I can #mill it into flour for you.");
    npc.setPosition(19, 39);
    npc.setDescription("You see Jenny. She is the local miller.");
    npc.setDirection(Direction.DOWN);
    npc.setEntityClass("woman_003_npc")
    zone.add(npc);
View Full Code Here

        requiredResources.put("money", 20);
        requiredResources.put("giant heart", 1);
        final ProducerBehaviour behaviour = new ProducerBehaviour("valo_concoct_potion",
            "concoct", "mega potion", requiredResources, 2 * 60);

        new ProducerAdder().addProducer(this, behaviour,
        "Greetings, young one. I #heal and I #help.");
        // charge (1*the player level + 1) to heal
        new HealerAdder().addHealer(this, -1);
      }
    };
View Full Code Here

      requiredResources.put("wine", Integer.valueOf(2));
     
      final ProducerBehaviour behaviour = new ProducerBehaviour("blacksheepbob_make_sausage", "make", "sausage",
              requiredResources, 2 * 60);

      new ProducerAdder().addProducer(this, behaviour,
              "Hey there. Welcome to Blacksheep Meat Market. Can I #make you some sausage?");
    }
  };

  blacksheepbob.setEntityClass("blacksheepnpc");
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.behaviour.adder.ProducerAdder

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.