Advertisement
Sarada-L2

Vender Itens Enchantado no NPC Acis 398

Oct 29th, 2021
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/Ingredient.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/Ingredient.java
  2. index c059824..be5ffe8 100644
  3. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/Ingredient.java
  4. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/Ingredient.java
  5. @@ -23,13 +23,14 @@
  6.  
  7. public Ingredient(StatSet set)
  8. {
  9. - this(set.getInteger("id"), set.getInteger("count"), set.getBool("isTaxIngredient", false), set.getBool("maintainIngredient", false));
  10. + this(set.getInteger("id"), set.getInteger("count"), set.getInteger("enchantmentLevel", 0), set.getBool("isTaxIngredient", false), set.getBool("maintainIngredient", false));
  11. }
  12.  
  13. - public Ingredient(int itemId, int itemCount, boolean isTaxIngredient, boolean maintainIngredient)
  14. + public Ingredient(int itemId, int itemCount, int enchantmentLevel, boolean isTaxIngredient, boolean maintainIngredient)
  15. {
  16. _itemId = itemId;
  17. _itemCount = itemCount;
  18. + _enchantmentLevel = enchantmentLevel;
  19. _isTaxIngredient = isTaxIngredient;
  20. _maintainIngredient = maintainIngredient;
  21.  
  22. @@ -42,7 +43,7 @@
  23. */
  24. public Ingredient getCopy()
  25. {
  26. - return new Ingredient(_itemId, _itemCount, _isTaxIngredient, _maintainIngredient);
  27. + return new Ingredient(_itemId, _itemCount, _enchantmentLevel, _isTaxIngredient, _maintainIngredient);
  28. }
  29.  
  30. public final int getItemId()
  31. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java
  32. index 0b856a0..e92d9a7 100644
  33. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java
  34. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java
  35. @@ -44,7 +44,7 @@
  36. // now add the adena, if any.
  37. adenaAmount += _taxAmount; // do not forget tax
  38. if (adenaAmount > 0)
  39. - _ingredients.add(new Ingredient(57, adenaAmount, false, false));
  40. + _ingredients.add(new Ingredient(57, adenaAmount, 0, false, false));
  41.  
  42. // now copy products
  43. _products = new ArrayList<>(template.getProducts().size());
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement