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

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


        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


      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

      @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

        addGreeting("Welcome to Kirdneh Museum.");
        addJob("I am the curator of this museum. That means I organise the displays and look for new #exhibits.");
        addHelp("This is a place for rare artefacts and special #exhibits.");
        addReply("exhibits","Perhaps you'd have a knack for finding rate items and would like to do a #task for me.");
        // remaining behaviour defined in games.stendhal.server.maps.quests.WeeklyItemQuest
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("kirdnehscrolls")));
        addGoodbye("Good bye, it was pleasant talking with you.");
      }
    };

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

        addQuest("If you can write Junit tests then my daughter needs you. Just ask Diogenes how to help the project.");
        addHelp("I can sell you a bottle of milk or some butter from our dairy cows if you like.");
        final Map<String, Integer> offerings = new HashMap<String, Integer>();
        offerings.put("milk", 30);
        offerings.put("butter", 40);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));

        addGoodbye("Tot ziens.");
      }
    };
    npc.setEntityClass("wifenpc");
View Full Code Here

        addReply(Arrays.asList("oil", "can of oil"), "Oh, fishermen supply us with that.");

        addHelp("If you bring me #wood and #'iron ore', I can #cast the iron for you. Then you could sell it to the dwarves, to make yourself a little money.");
        addJob("I am a blacksmith. I #cast iron, and #trade tools.");
        addGoodbye();
        new SellerAdder().addSeller(this, new SellerBehaviour(SingletonRepository.getShopList().get("selltools")));

        // Xoderos casts iron if you bring him wood and iron ore.
        final Map<String, Integer> requiredResources = new TreeMap<String, Integer>()
        requiredResources.put("wood", 1);
        requiredResources.put("iron ore", 1);
View Full Code Here

        offerings.put("beer", 10);
        offerings.put("wine", 15);
        // more expensive than in normal taverns
        offerings.put("ham", 100);
        offerings.put("pie", 150);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));

        addGoodbye();

      }};
      new AthorFerry.FerryListener() {
View Full Code Here

        offerings.put("wine", 15);
        // more expensive than in normal taverns
        offerings.put("bread", 50);
        offerings.put("cheese", 20);
        offerings.put("pie", 160);
        new SellerAdder().addSeller(this, new SellerBehaviour(offerings));
        addGoodbye("Goodbye.");
      }
    };

    barmanNPC.setEntityClass("barman2npc");
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("I sell bows and arrows.");
        addHelp("I sell several items, ask me for my #offer.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellrangedstuff")));
        addGoodbye();
      }
    };

    ouchit.setEntityClass("weaponsellernpc");
View Full Code Here

      @Override
      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

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.