MaestroLuke Posted January 28, 2009 Posted January 28, 2009 Okey now i will post that for make no phx working on multisell Index: java/net/sf/l2j/gameserver/network/clientpackets/MultiSellChoose.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/MultiSellChoose.java (revision 2745) +++ java/net/sf/l2j/gameserver/network/clientpackets/MultiSellChoose.java (working copy) @@ -88,6 +88,8 @@ { PcInventory inv = player.getInventory(); + boolean maintainItemFound = false; + // given the template entry and information about maintaining enchantment and applying taxes // re-create the instance of the entry that will be used for this exchange // i.e. change the enchantment level of select ingredient/products and adena amount appropriately. @@ -126,10 +128,26 @@ } if (newIng) { + // If there is a maintainIngredient, then we do not need to check the enchantment parameter + // as the enchant level will be checked elsewhere + if (maintainEnchantment && e.getMantainIngredient()) + { + maintainItemFound = true; + } // if it's a new ingredient, just store its info directly (item id, count, enchantment) _ingredientsList.add(L2Multisell.getInstance().new MultiSellIngredient(e)); } } + + // If there is no maintainIngredient, then we must make sure that the + // enchantment is not kept from the client packet, as it may have been forged + if (!maintainItemFound) + { + for (MultiSellIngredient product : entry.getProducts()) + { + product.setEnchantmentLevel(0); + } + } // now check if the player has sufficient items in the inventory to cover the ingredients' expences for (MultiSellIngredient e : _ingredientsList) { Credits to Hawnik Quote
MaestroLuke Posted January 29, 2009 Author Posted January 29, 2009 you checked it or you just spammed?:S:S:S:S Quote
Kràtos Posted January 29, 2009 Posted January 29, 2009 This is usefull fix..!! Btw give credits to Hanwik ...!! He fix it on L2JFree!! Quote
ChaotikoS Posted January 29, 2009 Posted January 29, 2009 Pedia ligo help, exo to sygkekrimeno bug edw kai 3 meres ston server mou, an mboreite na me voithisete na to kanw, he genika to topic pos mborw na to kanw. thx. Quote
MaestroLuke Posted January 29, 2009 Author Posted January 29, 2009 cobra i found it on L2JSERVER so i give the credits to l2j btw it would be good to add it in ur list as many ppl got this problem give the credits wherever u want Quote
LouLou Posted January 29, 2009 Posted January 29, 2009 Could ypou share in l2jfree plz? :D and smth else in wthat file i will add it? give me more infors where i will add it where i will give the import... Quote
MaestroLuke Posted January 29, 2009 Author Posted January 29, 2009 lol search the same in l2jfree forums cobra said that Hawnkik or something like that share it Quote
ChaotikoS Posted January 31, 2009 Posted January 31, 2009 Guys i have this problem at my l2jfree 1.2.9 gameserver version, how i can put that code, what i need from programs & what file? plz... i need help. Many ppl everyday at my server using the l2phx to enchant items with multisell bug thx. Quote
MaestroLuke Posted January 31, 2009 Author Posted January 31, 2009 add me in msn so i can help you :) Quote
ChaotikoS Posted February 1, 2009 Posted February 1, 2009 ok thx, i added you, waiting to speak with you :) Quote
MaestroLuke Posted February 2, 2009 Author Posted February 2, 2009 currently i have some problems with msn send me a private message Quote
LouLou Posted February 13, 2009 Posted February 13, 2009 a big question how i improt this ? in what file tell us more Quote
MaestroLuke Posted February 13, 2009 Author Posted February 13, 2009 a big question how i improt this ? in what file tell us more if you want to spam go to spam topic if you don't know what to do don't even try learn the basics there are many guides Quote
DāЯқŜiĐє Posted February 26, 2009 Posted February 26, 2009 pff you just copy paste or what??Anyway nice share.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.