Examples of SellerAdder


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

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("I sell good quality armor and weapons.");
        addHelp("Look at the blackboard for what I provide.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellbetterstuff2")), false);
        addOffer("Look at the blackboard to see my offer.");
        addQuest("I thank you for offering to help, but I am fine.");
        addGoodbye();
      }
    };
View Full Code Here

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

        addJob("I'm looking after the weaponry here. We have plenty of ammunition but running low on armor. I see you have some you might #offer though.");
        addHelp("I buy armor for the barracks here, make me an #offer. If you'll keep it quiet, I'll even sell you ammunition.");
        addOffer("Please look at the blackboard by the shields rack to see what we are short of, and what we pay. I also sell a variety of arrows.");
        addQuest("Oh, thanks but no thanks. I don't need anything.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyrare3")), false);
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellarrows")), false);
        addGoodbye("Goodbye, comrade.");
      }
    };

    npc.setDescription("You see Mrotho, guarding over Ados Barracks.");
View Full Code Here

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

                "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

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

        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

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

      protected void createDialog() {

        final Map<String, Integer> items = new HashMap<String, Integer>();
        items.put("roach", BUYING_PRICE);

        new SellerAdder().addSeller(this, new QuestCompletedSellerBehaviour(QUEST_SLOT, "I have a #task for you before I will sell you anything.", items));
        // for quest see games.stendhal.server.maps.quest.HelpMrsYeti
        addGreeting("Greetings, strange foreigner!");
        addJob("I go out to hunt for food while Mr Yeti makes his snow sculptures.");
        addHelp("Be careful of the creatures lurking in these caves!");       
        addGoodbye();
View Full Code Here

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

      @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

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

        items.put("beer", 18);
        items.put("wine", 25);
        items.put("mild koboldish torcibud", MILD_KOBOLDISH_TORCIBUD_PRICE);
        items.put("strong koboldish torcibud", STRONG_KOBOLDISH_TORCIBUD_PRICE);

        new SellerAdder().addSeller(this, new TorcibudSellerBehaviour(items));

        addGreeting(
          "Wroff! Welcome into the Kobold's Den bar wanderer!"
            + " I'm Wrviliza, wife of #Wrvil."
            + " If you want me to #offer you some beverages, just say so!");
View Full Code Here

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

        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

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

    final Map<String, Integer> requiredResources = new TreeMap<String, Integer>();
    requiredResources.put("grain", 5);

    final ProducerBehaviour behaviour = new ProducerBehaviour("jenny_mill_flour",
        "mill", "flour", requiredResources, 2 * 60);
    new SellerAdder().addSeller(npc, new SeedSellerBehaviour());
    new ProducerAdder().addProducer(npc, behaviour,"Greetings! I am Jenny, the local miller. If you bring me some #grain, I can #mill it into flour for you.");
    npc.setPosition(19, 39);
    npc.setDescription("You see Jenny. She is the local miller.");
    npc.setDirection(Direction.DOWN);
    npc.setEntityClass("woman_003_npc")
View Full Code Here

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

        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
TOP
Copyright © 2018 www.massapi.com. 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.