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

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


        offers.put("cherry", 20);
        offers.put("chicken", 50);
        offers.put("bread", 50);
        offers.put("sandwich", 150);
  
        new SellerAdder().addSeller(this, new SellerBehaviour(offers));
        addGoodbye("Goodbye, all you customers do work me hard ...");
      }
    };

    tavernMaid.setPlayerChatTimeout(TIME_OUT);
View Full Code Here


        addHelp("If you bring me some #lunch I'll #swap you for a magic scroll.");
        addOffer("My tomatoes and garlic are doing well, I have enough that I am selling some.");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
                offerings.put("tomato", 30);
                offerings.put("garlic", 50);
                new SellerAdder().addSeller(this, new SellerBehaviour(offerings), false);
        addReply("lunch", "Tea and a sandwich, please!");
        addReply("sandwich", "Mmm.. I'd like a ham and cheese one.");
        addReply(Arrays.asList("kalavan city scroll", "scroll"), "It's a magic scroll that would take you back to Kalavan. Just don't ask me how it works!");
       
        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>()
View Full Code Here

              addGreeting("Welcome to the humble dwellings of the albino elves.");
        addJob("I just wander around. In fact, albino elves wander around a lot. We're #nomadic, you know.");
        addReply("nomadic", "We don't have a permanent home, we travel instead between forests and glens. When we find a clearing we like, we settle. We liked this one because of the ancient #stones near by.");
        addReply("stones", "They have some mystical quality. We like to be by them for the changing of the seasons.");
        addHelp("I would sell you enchanted scrolls to return to Fado City. I have a source of cheap ones.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("fadoscrolls")) {

          @Override
          public int getUnitPrice(final String item) {
            // Player gets 20 % rebate
            return (int) (0.80f * priceCalculator.calculatePrice(item, null));
View Full Code Here

        addQuest("I don't think I have any job for you to do. You have to work with bees alone, really.");
        addHelp("Bees make honey and wax. I can sell you some if you like. Honey and wax that is, not bees!");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
        offerings.put("honey", 50);
        offerings.put("beeswax", 80);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings), false);
        addOffer("I sell sweet honey and beeswax which I harvest myself.");
        addGoodbye("Goodbye and be careful around the hives!");
      }
    };
View Full Code Here

              }
            } );

        final Map<String, Integer> offers = new HashMap<String, Integer>();
        offers.put("icecream", 30);
        new SellerAdder().addSeller(this, new SellerBehaviour(offers));
        addGoodbye("Bye, enjoy your day!");
      }
    };

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

TOP

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

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.