Examples of SellerAdder


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

      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

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

      @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

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

        addGreeting();
        addJob("I work as a sheep seller.");
        addHelp("I sell sheep. To buy one, just tell me you want to #buy #sheep. If you're new to this business, I can tell you how to #travel with her, take #care of her, and finally give you tips on when to #sell her. If you find any wild sheep, incidentally, you can make them your #own.");
        addGoodbye();
        new SellerAdder().addSeller(this, new SheepSellerBehaviour(items));
        addReply("care",
            "My sheep especially love to eat the red berries that grow on these little bushes. Just stand near one and your sheep will walk over to start eating. You can right-click and choose LOOK at any time, to check up on her weight; she will gain one unit of weight for every cherry she eats.");
        addReply("travel",
            "You'll need your sheep to be close by in order for her to follow you when you change zones; you can say #sheep to call her if she's not paying attention. If you decide to abandon her instead, you can right-click on yourself and select LEAVE SHEEP; but frankly I think that sort of behaviour is disgraceful.");
        addReply("sell",
View Full Code Here

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

        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

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

      @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

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

        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

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

        addGreeting();
        addJob("I sell cats. Well, really they are just little kittens when I sell them to you but if you #care for them well they grow into cats.");
        addHelp("I sell cats. To buy one, just tell me you want to #buy #cat. If you're new to this business, I can tell you how to #travel with her and take #care of her. If you find any wild cat, incidentally, you can make them your #own.");
        addGoodbye();
        new SellerAdder().addSeller(this, new CatSellerBehaviour(items));
        addReply("care",
            "Cats love chicken and fish. Just place a piece on the ground and your cat will run over to eat it. You can right-click on her and choose 'Look' at any time, to check up on her weight; she will gain one unit of weight for every piece of chicken she eats.");
        addReply("travel",
            "You'll need your cat to be close by in order for her to follow you when you change zones; you can say #cat to call her if she's not paying attention. If you decide to abandon her instead, you can right-click on yourself and select 'Leave Pet'; but frankly I think that sort of behaviour is disgraceful.");
        addReply("sell",
View Full Code Here

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

        nodes.add(new Node(5, 46));
        nodes.add(new Node(18, 46));
        setPath(new FixedPath(nodes, true));
      }
    };
    new SellerAdder().addSeller(npc, new SellerBehaviour(SingletonRepository.getShopList().get("healing")));
    new HealerAdder().addHealer(npc, 0);
    npc.setPosition(5, 46);
    npc.setDescription("You see kind Carmen. She looks like someone you could ask for help.");
    npc.setEntityClass("welcomernpc");
    zone.add(npc);
View Full Code Here

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

      protected void createDialog() {
        addGreeting("On behalf of the citizens of Ados, welcome.");
        addJob("I'm the mayor of Ados. I can #offer you the chance to return here easily.");
        addHelp("Ask me about my #offer to return here.");
        //addQuest("I don't know you well yet. Perhaps later in the year I can trust you with something.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("adosscrolls")));
        addGoodbye("Good day to you.");
      }
    };

    mayor.setDescription("You see the respected mayor of Ados.");
View Full Code Here

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

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("My special powers help me to heal wounded people. I also sell potions and antidotes.");
        addHelp("I can #heal you here for a cost, or you can take one of my prepared medicines with you on your travels; just ask for an #offer.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("healing")));
        // charge (2*the player level + 1) to heal
        new HealerAdder().addHealer(this, -2);
        addGoodbye();
      }
    };
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.