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

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


                "Fado guards the bridge over Or'ril river which is vital for the commercial route between #Deniran and Ados. There's an active social life here, being the preferred city for celebrating marriages and tasting elaborate meals.");
        addReply("Deniran",
                "Deniran is the jewel of the crown. Deniran is the center of Faiumoni and supports the army that tries to defeat enemies that wants to conquer Faiumoni.");
        addJob("I greet all of the new-comers to Fado. I can #offer you a scroll if you'd like to come back here again.");
        addHelp("You can head into the tavern to buy food and drinks. You can also visit the people in the houses, or visit the blacksmith or the city hotel.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("fadoscrolls")));
        addGoodbye("Bye.");
      }
    };

    greeterNPC.setOutfit(new Outfit(0, 05, 01, 06, 01));
View Full Code Here


        addReply("ammunition", "I sell arrows, wooden arrows are the cheapest, power arrows the most costly. Check the board for all the prices.");
        addHelp("As Quartermaster, I take #offers for supplies which we are short of.");
        addOffer("I buy #boots and #helmets on behalf of the Mithrilbourgh Army, and I sell surplus stock of #ammunition.");
        addQuest("The Mithrilbourgh Army is not in need your services at present.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("boots&helm")), false);
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellarrows")), false);
         addGoodbye("Bye.");
      }
    };
    npc.setDescription("You see Diehelm Brui, the Quartermaster.");
    npc.setEntityClass("recruiter3npc");
View Full Code Here

      @Override
      protected void createDialog() {
          addGreeting(null, new SayTextWithPlayerNameAction("Hello, [name]."));
        addJob("As a priestess I can #offer you a number of potions and antidotes.");
        addHelp("My sister Salva has the gift of healing. She is out for a walk by the aqueduct, you should find her there if you need her.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("superhealing")), true);
         addGoodbye("Bye, for now.");
      }
    };

    npc.setDescription("You see a beautiful woman hidden under swathes of fabric.");
View Full Code Here

        addJob("I am a wizard, like all who dwell in this magic underground city. We practise #magic here.");
        addReply("magic", "Indeed, enchantments such as our Sunlight Spell to keep the grass and flowers healthy down here. I suppose you are wondering why you have seen traditional enemies such as dark elves and green elves in company together here, let me #explain.");
        addReply("explain", "As a city for wizards only, we have much to learn from one another. Thus, old quarrels are forgotten and we live here in peace.");
        addHelp("It is part of my #job to #offer you enchanted scrolls to travel to any major city in Faiumoni. I also have a supply of scrolls you may mark, and some scrolls to summon creatures. Be aware, they do not come cheap.");

        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("allscrolls")) {
          @Override
          public int getUnitPrice(final String item) {
            // Player pays 150 % of standard price
            return (int) (1.50f * priceCalculator.calculatePrice(item, null));
          }
View Full Code Here

        addReply("sounds","The sounds are very weird... Sometimes they sound like someone is shouting from far away... just like commanding soldiers or so... I also heard steps in the shadows a few times... that's really scary...");
        addOffer("I can sell you a useful tool for getting some coal with. Most of my friends who used to work with me left me some time ago, so you can buy some #picks which they left here. I'd also like to give you some of my drink and food but there isn't much left... I still need to work some hours so I need it for myself, sorry... But I can show you a hand drawn #map of the mine if you want.");
        addReply("picks", "You need a pick for getting some coal from places on the walls in Semos Mine.");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
                offerings.put("pick", 450);
                new SellerAdder().addSeller(this, new SellerBehaviour(offerings), false);
        addQuest("Sorry but as you can see, I'm covered with dust and still didn't finish my work up yet. I can't think about any quests for you, but you can help me to gain some coal.");
        addJob("I am a miner. Working in a mine is quite hard work. If you get deep and deeper into the earth it gets very warm and even more dusty. And you can hardly see anything in this low light...");
        addReply("map","This is a map of the Semos Mine which I have drawn by myself some time ago. It may help you to find the way. But take care, not everything is exactly right!",
            new ExamineChatAction("map-semos-mine.png", "Semos Mine", "Rough map of Semos Mine"));
        addGoodbye("Nice to meet you. Good luck!");
View Full Code Here

      protected void createDialog() {
        addGreeting();
        addReply("flask", "If you wish to buy a flask please just tell me: #buy #flask. Or, you can ask what else I #offer.");
        addJob("I am the bar maid for this fair tavern. You can #buy both imported and local beers, and fine food.");
        addHelp("This tavern is a great place to take a break and meet new people! Just ask if you want me to #offer you a drink.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("food&drinks")));
        addGoodbye();
      }
    };

    margaret.setEntityClass("tavernbarmaidnpc");
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting("Hi. Hope you are enjoying our wonderful theater.");
        addJob("I sell the most delectable foods in Magic City.");
        addHelp("If you are hungry, check out the blackboard for foods and prices.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellmagic")), false);
        addOffer("See the blackboard for my prices.");
        addQuest("I have no need of your help, thanks.");
        addReply("licorice", "Poor Baldemar, he is so very alergic to licorice.");
        addGoodbye("Great to see you. Come again.");
      }
View Full Code Here

        offerings.put("beer", 15);
        offerings.put("pie", 160);
        offerings.put("bread", 50);
        offerings.put("cheese", 20);
        offerings.put("tomato", 30);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));
        addGoodbye();
      }
    };

    tavernMaid.setEntityClass("maidnpc");
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting("Hi, can I #help you?");
        addJob("I work in this post office. But I'm new and I haven't been trusted with much yet.");
        addHelp("I've not had this #job long ... come back soon and I might have been given something interesting to do.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("nalworscrolls")));
        addGoodbye("Bye - nice to meet you!");
      }
    };

    npc.setDescription("You see a pretty elf girl.");
View Full Code Here

        addHelp("This is the room for the ladies. Guys hang out in the other bar, Coralia serves the gents.");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
        offerings.put("wine", 20);
        offerings.put("pina colada", 100);
        offerings.put("chocolate bar", 100);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));
        addGoodbye("See you around, sweetcheeks.");
      }
    };

    barman.setEntityClass("barman3npc");
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.