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

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


        addJob("I'm here to buy supplies for a rainy day.");
        addHelp("I buy several things.  Please read the sign to see what we need.");
        addOffer("Read the sign to see what we need.");
        addQuest("Thanks for asking, but I am fine.");
        addGoodbye("Bye now. So glad you stopped in to visit us.");
         new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buy4gnomes")), false);
      }
    };

    garbiddle.setEntityClass("gnomenpc");
    garbiddle.setPosition(37, 112);
View Full Code Here


      @Override
      protected void createDialog() {
        addGreeting("Hello there.");
        addJob("I'm a seamstress. I make sails for ships, like the Athor ferry. If you could #offer me material I'd be grateful.");
        addHelp("If you want to go to the island Athor on the ferry, just go south once you've departed from Ados, and look for the pier.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buycloaks")), false);
        addOffer("I buy cloaks, because we are short of material to make sails with. The better the material, the more I pay. My notebook on the table has the price list.");
        addGoodbye("Bye, thanks for stepping in.");
      }
    };
View Full Code Here

        addGoodbye("Bye, come back soon.");
       
        final Map<String, Integer> pricelist =
          SingletonRepository.getShopList().get("buyadosarmors");
       
        final BuyerBehaviour behaviour = new BuyerBehaviour(pricelist);
        new BuyerAdder().add(this, behaviour, true);
      }
    };

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

      @Override
      protected void createDialog() {
          addQuest("I'm too scared to leave here yet... I'm waiting for someone to #offer me some better equipment.");
        addJob("I'm was the guard of this Prison. Until .. well you know the rest.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buychaos")), true);

        addGoodbye("Bye .. be careful ..");
      }
      // remaining behaviour is defined in maps.quests.JailedDwarf.
    };
View Full Code Here

      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

      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

        addGreeting("Welcome to my shop.");
        addJob("I #trade in weapons. I sell only to the locals here in Fado, but I will buy from you.");
        addHelp("I #deal in rare weapons. Ognir there is the ring maker, he buys the odd gem too.");
        addOffer("Please look at the blackboard on the wall to see what I buy.");
        addQuest("Thanks, but no thanks. I don't need anything.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyrare2")), false);
        addGoodbye("Bye - and see you soon.");
      }
    };

    npc.setDescription("You see Yorphin Baos, the friendly shop keeper.");
View Full Code Here

            "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.");
      }
    };

    npc.setDescription("You see Ognir, a friendly bearded chap.");
View Full Code Here

        addReply(
            "scarlet",
            "The Scarlet Army is a special division of Kalavan's Army. They all wear a red armor.");
        addHelp("Have you seen this, no armor left here. At the moment I'm not able to serve the #Scarlet Army!");
        addOffer("Bring me some armor and I pay you out!");
        new BuyerAdder().add(this, new BuyerBehaviour(SingletonRepository.getShopList().get("buyred")), false);
        addGoodbye("Have a nice day!");
      }
    };

    storageNPC.setEntityClass("scarletarmynpc");
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.