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

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


        requiredResources.put("cherry", Integer.valueOf(2));

        final ProducerBehaviour behaviour = new ProducerBehaviour("gertha_bake_cherrypie", "bake", "cherry pie",
                requiredResources, 15 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Hello! Did you come to taste one of my fabulous cherry pies? I could #bake one for you happily!");
      }
    };

    npc.setEntityClass("confectionercherrypienpc");
View Full Code Here


        requiredResources.put("honey", 1);

        final ProducerBehaviour behaviour = new ProducerBehaviour("granny_brew_tea",
            "brew", "tea", requiredResources, 3 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Hello, dear.");
        addReply("milk",
                "Well my dear, I expect you can get milk from a farm.");
        addReply("honey",
                "Don't you know the beekeeper of Fado Forest?");
View Full Code Here

        requiredResources.put("tea", 1);
        requiredResources.put("sandwich", 1);

        final ProducerBehaviour behaviour = new SpecialProducerBehaviour("swap", "kalavan city scroll", requiredResources, 1 * 60);

        new ProducerAdder().addProducer(this, behaviour,
                "Fine day, isn't it?");
        addQuest("I'd love a cup of #tea, it's thirsty work, gardening. If you bring me a #sandwich too I'll #swap you for a magic scroll.");
        addReply(Arrays.asList("tea", "cup of tea"), "Old Granny Graham may brew you a cup. She's in that big cottage over there.");
        addGoodbye("Bye. Enjoy the rest of the gardens.");
      }
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.