Examples of countId()


Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList.countID()

       
        for (int i=0; i<list.size(); i++)
        {
            CardSim currentCard = list.getCard(i);

            if (ret.countID(currentCard) <maxSame)
            {
                ret.addCard(currentCard);
            }
       
        }
View Full Code Here

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

      }
      slot = bank.getLastItemSlot(itemID);
      if (slot > -1) {
        player.getActionSender().sendInventory();
        player.getActionSender().updateBankItem(slot, itemID,
            bank.countId(itemID));
      }
      break;
    case 183: // Withdraw item
      itemID = p.readShort();
      amount = p.readInt();
View Full Code Here

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

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

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

      }

      if (slot > -1) {
        player.getActionSender().sendInventory();
        player.getActionSender().updateBankItem(slot, itemID,
            bank.countId(itemID));
      }
      break;
    }
  }
View Full Code Here

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

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

      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

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

          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

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

        Logger.println("[SHOPDUPE] " + player.getUsername()
            + " tried to buy " + item.getDef().name + " for "
            + value);
        return;
      }
      if (shop.countId(item.id) < 1)
        return;
      if (player.getInventory().countId(10) < value) {
        player.getActionSender().sendMessage(
            "You don't have enough money to buy that!");
        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.