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

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


        addGreeting("Welcome to Kirdneh Museum.");
        addJob("I am the curator of this museum. That means I organise the displays and look for new #exhibits.");
        addHelp("This is a place for rare artefacts and special #exhibits.");
        addReply("exhibits","Perhaps you'd have a knack for finding rate items and would like to do a #task for me.");
        // remaining behaviour defined in games.stendhal.server.maps.quests.WeeklyItemQuest
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("kirdnehscrolls")));
        addGoodbye("Good bye, it was pleasant talking with you.");
      }
    };

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


        addQuest("If you can write Junit tests then my daughter needs you. Just ask Diogenes how to help the project.");
        addHelp("I can sell you a bottle of milk or some butter from our dairy cows if you like.");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
        offerings.put("milk", 30);
        offerings.put("butter", 40);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));

        addGoodbye("Tot ziens.");
      }
    };
    npc.setEntityClass("wifenpc");
View Full Code Here

        addReply(Arrays.asList("oil", "can of oil"), "Oh, fishermen supply us with that.");

        addHelp("If you bring me #wood and #'iron ore', I can #cast the iron for you. Then you could sell it to the dwarves, to make yourself a little money.");
        addJob("I am a blacksmith. I #cast iron, and #trade tools.");
        addGoodbye();
        new SellerAdder().addSeller(this, new SellerBehaviour(SingletonRepository.getShopList().get("selltools")));

        // Xoderos casts iron if you bring him wood and iron ore.
        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>()
        requiredResources.put("wood", 1);
        requiredResources.put("iron ore", 1);
View Full Code Here

        offerings.put("beer", 10);
        offerings.put("wine", 15);
        // more expensive than in normal taverns
        offerings.put("ham", 100);
        offerings.put("pie", 150);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));

        addGoodbye();

      }};
      new AthorFerry.FerryListener() {
View Full Code Here

        offerings.put("wine", 15);
        // more expensive than in normal taverns
        offerings.put("bread", 50);
        offerings.put("cheese", 20);
        offerings.put("pie", 160);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));
        addGoodbye("Goodbye.");
      }
    };

    barmanNPC.setEntityClass("barman2npc");
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("I sell bows and arrows.");
        addHelp("I sell several items, ask me for my #offer.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellrangedstuff")));
        addGoodbye();
      }
    };

    ouchit.setEntityClass("weaponsellernpc");
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("Shhh! I sell stuff to adventurers.");
        addHelp("I buy and sell several items, ask me for my #offer.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellstuff")), false);
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buystuff")), false);
        addOffer("Have a look at the blackboards on the wall to see my offers.");
        addQuest("Talk to Hackim Easso in the smithy, he might want you.");
        addGoodbye();
      }
View Full Code Here

      @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

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.