Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/org/l2jmobius/gameserver/data/xml/impl/MultisellData.java
- ===================================================================
- --- java/org/l2jmobius/gameserver/data/xml/impl/MultisellData.java (revision 7038)
- +++ java/org/l2jmobius/gameserver/data/xml/impl/MultisellData.java (working copy)
- @@ -162,22 +162,7 @@
- LOGGER.warning("Invalid product id or count for itemId: " + product.getId() + ", count: " + product.getCount() + " in list: " + listId);
- continue;
- }
- + final int listmultisellname = Integer.parseInt(f.getName().substring(0, f.getName().length() - 4));
- + if ((entry.getIngredients().size() == 1) && (entry.getProducts().size() == 1) && (entry.getIngredients().get(0).getId() == 57))
- + {
- + Item item = ItemTable.getInstance().getTemplate(entry.getProducts().get(0).getId());
- + if (item == null)
- + {
- + LOGGER.warning(getClass().getSimpleName() + ": [" + listmultisellname + "] Production [" + entry.getProducts().get(0).getId() + "] not found!");
- + continue;
- + }
- +
- + if (item.getReferencePrice() > (entry.getIngredients().get(0).getCount() / entry.getProducts().get(0).getCount()))
- + {
- + LOGGER.warning(getClass().getSimpleName() + ": [" + listmultisellname + "] Production '" + item.getName() + "' [" + entry.getProducts().get(0).getId() + "] price is lower than referenced | " + item.getReferencePrice() + " / " + entry.getIngredients().get(0).getCount() + " should be " + (item.getReferencePrice() * entry.getProducts().get(0).getCount()));
- + continue;
- + }
- + }
- +
- }
- }
Add Comment
Please, Sign In to add comment