Package org.moparscape.msc.gs.model.definition.entity

Examples of org.moparscape.msc.gs.model.definition.entity.ItemDef


        InvItem tItem = new InvItem(p.readShort(), p.readInt());
        if (tItem.amount < 1) {
          player.setSuspiciousPlayer(true);
          continue;
        }
        ItemDef def = tItem.getDef();
        if (!def.canTrade()) {
          player.getActionSender().sendMessage(
              def.getName()
                  + " cannot be traded with other players");
          player.setRequiresOfferUpdate(true);
          continue;
        }
        duelOffer.add(tItem.id, tItem.amount, false);
View Full Code Here


        if (tItem.amount < 1) {
          player.setSuspiciousPlayer(true);
          player.setRequiresOfferUpdate(true);
          continue;
        }
        ItemDef def = tItem.getDef();
        if (!def.canTrade() && !player.isMod()) {
          player.getActionSender().sendMessage(
              def.getName()
                  + " cannot be traded with other players");
          player.setRequiresOfferUpdate(true);
          continue;
        }
        tradeOffer.add(tItem.id, tItem.amount, false);
View Full Code Here

TOP

Related Classes of org.moparscape.msc.gs.model.definition.entity.ItemDef

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.