Package games.stendhal.server.util

Examples of games.stendhal.server.util.ItemCollection.removeItem()


    final ItemCollection itemsTodo = new ItemCollection();

    itemsTodo.addFromQuestStateString(player.getQuest(questSlot));

    if (player.drop(itemName, itemCount)) {
      if (itemsTodo.removeItem(itemName, itemCount)) {
        result = true;
      }
    } else {
      /*
       * handle the cases the player has part of the items or all divided
View Full Code Here


          final int n = Math.min(itemCount, quantity);

          if (player.drop(itemName, n)) {
            itemCount -= n;

            if (itemsTodo.removeItem(itemName, n)) {
              result = true;
            }
          }

          if (itemCount == 0) {
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.