Package org.moparscape.msc.gs.model.container

Examples of org.moparscape.msc.gs.model.container.Inventory.countId()


          continue;
        }
        duelOffer.add(tItem.id, tItem.amount, false);
      }
      for (InvItem item : duelOffer.getItems()) {
        if (duelOffer.countId(item.id) > player.getInventory().countId(
            item.id)) {
          player.setSuspiciousPlayer(true);
          return;
        }
        player.addToDuelOffer(item);
View Full Code Here


      player.resetBank();
      break;
    case 198: // Deposit item
      itemID = p.readShort();
      amount = p.readInt();
      if (amount < 1 || inventory.countId(itemID) < amount) {
        world.addEntryToSnapshots(new Activity(player.getUsername(),
            player.getUsername() + " tried to deposit ID: "
                + itemID + " amount: " + amount));
        player.setSuspiciousPlayer(true);
        return;
View Full Code Here

          continue;
        }
        tradeOffer.add(tItem.id, tItem.amount, false);
      }
      for (InvItem item : tradeOffer.getItems()) {
        if (tradeOffer.countId(item.id) > player.getInventory()
            .countId(item.id)) {
          player.setSuspiciousPlayer(true);
          unsetOptions(player);
          unsetOptions(affectedPlayer);
          return;
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.