Package games.stendhal.server.entity.npc

Examples of games.stendhal.server.entity.npc.ShopList


    final String myZone = "int_admin_playground";
    sandbox.setZone(myZone);
    int x = 11;
    int y = 4;
    String shop = "food&drinks";
    final ShopList shops = SingletonRepository.getShopList();
    if (args.size() > 0 ) {
      if (shops.get(args.get(0))!= null) {
        shop = args.get(0);   
      } else {
        admin.sendPrivateText(args.get(0)
            + " not recognised as a shop name. Using default food&drinks");
      }
View Full Code Here


    if (args.isEmpty()) {
      itemList.add(prepareItem("club", 100));
      itemList.add(prepareItem("leather armor", -100));
      itemList.add(prepareItem("ice sword", -10000));
    } else {
      ShopList shops = SingletonRepository.getShopList();
      Map<String, Integer> items = shops.get(args.get(0));
      for (Map.Entry<String, Integer> entry : items.entrySet()) {
        itemList.add(prepareItem(entry.getKey(), Integer.valueOf(entry.getValue())));
      }
    }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.ShopList

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.