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

Examples of games.stendhal.server.entity.npc.behaviour.impl.SellerBehaviour


      @Override
      protected void createDialog() {
        addGreeting("Like, OMG!!! I sure am glad you stopped by!!! For real!!!");
        addJob("I'm so psyched! I'm just catchin some rays and sellin things that are, like, totally radical!");
        addHelp("Gnarly! You think I got a clue?");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellhotdogs")), false);
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buy4hotdogs")), false);
        addOffer("Check out the blackboards over there, like, for prices.");
        addQuest("What-ever!");
        addGoodbye("Later. You want fries with that?");
      }
View Full Code Here


        addReply(
            "gold",
            "It's cast from gold nuggets which you can pan for on Or'ril river. I don't cast it myself, but a smith in Ados does.");
        addHelp("I am an expert on #'wedding rings' and #'emerald rings', sometimes called the ring of #life.");
        addQuest("Well, you could consider getting married to be a quest! Ask me about #'wedding rings' if you need one.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellrings")), false);
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyprecious")), false);
        addGoodbye("Bye, my friend.");
      }
    };
View Full Code Here

      protected void onGoodbye(RPEntity player) {
        setDirection(Direction.DOWN);
      }
     
    };
    new SellerAdder().addSeller(npc, new SellerBehaviour(SingletonRepository.getShopList().get("superhealing")));
    npc.setPosition(3, 5);
    npc.setEntityClass("wizardwomannpc");
    npc.setDirection(Direction.DOWN);
    npc.setDescription("You see Sarzina. She is a healer and knows a lot about your karma.");
    zone.add(npc);
View Full Code Here

        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.impl.SellerBehaviour

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.