Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2TradeList.addItem()


              L2ItemInstance item = ItemTable.getInstance().createDummyItem(s.getId());
              item.setPriceToSell(s.getPrice());
              item.setCount(s.getCanProduce());
              if(item.getCount() > 0 && item.getPriceToSell() > 0)
              {
                tradeList.addItem(item);
              }
            }

            BuyListSeed bl = new BuyListSeed(tradeList, castleId, player.getAdena());
            player.sendPacket(bl);
View Full Code Here


      int price = Integer.parseInt(args[3]);

      L2ItemInstance newItem = ItemTable.getInstance().createDummyItem(itemID);
      newItem.setPriceToSell(price);
      newItem.setCount(-1);
      tradeList.addItem(newItem);
      storeTradeList(itemID, price, tradeListID, order);

      activeChar.sendMessage("Added " + newItem.getItem().getName() + " to Trade List " + tradeList.getListId());
      showShopList(activeChar, tradeListID, 1);
View Full Code Here

            else
            {
              item.setCount(count);
            }

            buy1.addItem(item);
            item = null;
            buy1.setNpcId(rset1.getString("npc_id"));

            try
            {
View Full Code Here

                }
                else
                {
                  item2.setCount(count);
                }
                buy1.addItem(item2);
              }
            }
            catch(Exception e)
            {
              if(Config.ENABLE_ALL_EXCEPTIONS)
View Full Code Here

              else
              {
                item.setCount(count);
              }

              buy1.addItem(item);
              item = null;
              buy1.setNpcId(rset1.getString("npc_id"));

              try
              {
View Full Code Here

                  }
                  else
                  {
                    item2.setCount(count);
                  }
                  buy1.addItem(item2);

                  item2 = null;
                }
              }
              catch(Exception e)
View Full Code Here

    {
      int itemId = Integer.parseInt(st.nextToken());
      int price = Integer.parseInt(st.nextToken());
      L2ItemInstance item = ItemTable.getInstance().createDummyItem(itemId);
      item.setPriceToSell(price);
      buy1.addItem(item);
      itemCreated++;
    }
    st = null;

    _lists.put(new Integer(buy1.getListId()), buy1);
View Full Code Here

            else
            {
              buyItem.setCount(count);
            }

            buylist.addItem(buyItem);

            if(!buylist.isGm() && buyItem.getReferencePrice() > _price)
            {
              _log.warning("TradeListTable: Reference price of item {} in buylist {} higher then sell price. "+ _itemId+" "+ buylist.getListId());
            }
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.