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

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


        addReply("helmets", "I do not have a good source of helmets. Any you can #trade with me would be appreciated, at the moment we only have enough for the lieutenants, and none for the soldiers. The red book has details.");
        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.");
View Full Code Here


        addReply(Arrays.asList("sandwich", "sandwiches"),
        "My sandwiches are tasty and nutritious. If you want one, just tell me to #'make 1 sandwich'.");
        addOffer("My #pizza needs cheese and we have no supplies. I'll buy cheese if you will #sell.");
        final Map<String, Integer> offers = new TreeMap<String, Integer>();
        offers.put("cheese", 5);
        new BuyerAdder().add(this, new BuyerBehaviour(offers), false);

        addGoodbye();

        // Leander makes sandwiches if you bring him bread, cheese, and ham.
        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>();
View Full Code Here

        addHelp("You could earn some money if you'd #offer me something to poison these damn #rats.");
        addReply(Arrays.asList("rat", "rats"),
        "These rats are everywhere. I wonder where they come from. I can't even kill them as fast as they come up.");

        new BuyerAdder().add(this,
            new BuyerBehaviour(SingletonRepository.getShopList().get("buypoisons")), true);

        addGoodbye("Please kill some rats on your way up!");
      }};

      new AthorFerry.FerryListener() {
View Full Code Here

        addOffer("Have a look at the blackboard on the wall to see my offers.");
        add(ConversationStates.ATTENDING, Arrays.asList("eye", "leg", "wood", "patch"),
                ConversationStates.ATTENDING, "Not every day is a lucky day ...", null);
        add(ConversationStates.ATTENDING, "pirate", null, ConversationStates.ATTENDING,
                "That's none of your business!", null);
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyrare")), false);
      }
    };

    // Add some atmosphere
    mcpegleg.setDescription("You see a dubious man with a patched eye and a wooden leg.");
View Full Code Here

        addJob("I buy archery equipment for our village.");
        addHelp("I can offer you no help. Sorry.");
        addOffer("Check the blackboard for prices.");
        addQuest("I have no quest for you.");
        addGoodbye("Have a happy. Bye.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyarcherstuff")), false);         
      }};
      npc.setPosition(10, 5);
      npc.setEntityClass("mageelfnpc");
      zone.add(npc);   
  }
View Full Code Here

        addHelp("I can buy your vegetables and herbs.  Please see blackboards on wall for what I need.");
        addOffer("Look at blackboards on wall to see my prices.");
        addQuest("You could try to help me #escape from these hoodlums. Well... maybe not.");
        addGoodbye("Don't forget where I am now. Come back and see me some time. I do get lonely.");
        addReply("escape", "Yes! I want to pursue my dream. Mother Helena offered me a most wonderful job.  She needs a dishwasher. Lots of complaining customers!!!");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyveggiesandherbs")), false);         
      }};
      npc.setPosition(20, 3);
      npc.setEntityClass("chieffalatheennpc");
      zone.add(npc);   
  }
View Full Code Here

        addJob("It is my job to keep all my little guys armed and equipped. Please help me.");
        addHelp("I can buy your surplus items.  Please see blackboard on wall for what I need.");
        addOffer("Look at blackboard on wall to see my offer.");
        addQuest("Other than selling me what I need, I don't require anything from you.");
        addGoodbye();
         new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buy4assassins")), false);
      }
    };

    principal.setEntityClass("principalnpc");
    principal.setPosition(2, 18);
View Full Code Here

        addGreeting("*grrr* You dare come in my shop?");
        addJob("I buy weapons. I pay more to elves. Ha!");
        addHelp("I #trade rare weapons.");
        addOffer("Look at the blackboard on the wall to see what I will buy.");
        addQuest("You think I'd trust a human with anything important? You're wrong!");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("elfbuyrare")), false);
        addGoodbye("Bye - be careful not to annoy the other elves as much.");
      }
    };

    npc.setDescription("You see Elodrin, a mean looking elf.");
View Full Code Here

            "Ah, that mighty piece was made in Deniran. I'm afraid I know little more about it.");
        addReply(
            "sewing machine",
            "Oh you know that is my favourite. It was made by a man called Zinger, and it still works just as well as the day it was made.");
        addQuest("I have no favour to ask of you.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buymagic")), false);
        addOffer("There is a list of prices for relics and magic items I would buy, over on that large book.");
        addGoodbye("Bye.");
      }
    };
View Full Code Here

        addReply(ConversationPhrases.NO_MESSAGES, "Then get out of my sight before I feed you to the dragons!");
        addJob("Isn't it clear by my title...?");
        addReply("mainio", "My advisors tell me the word means 'excellent' in some foreign language. If it is so, my men must wear it! I do not think Diehelm Brui is equipping them well enough!");
        addHelp("My army must have the best items. #Offer me some of the rare #mainio armor I have heard tell of, and I will pay you handsomely.");
        //addQuest("The Mithrilbourgh Army and I are not in need of your services at present.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buymainio")), true);
         addGoodbye("Bye.");
      }
     
      @Override
      protected void onGoodbye(RPEntity player) {
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.behaviour.impl.BuyerBehaviour

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.