Browse Source

Fix for mustisells using fame and maintainEnchantement=true, thanks _DS_

DrHouse 16 years ago
parent
commit
50e774b95f

+ 2 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/L2Multisell.java

@@ -191,7 +191,8 @@ public class L2Multisell
         		continue;	// do not adena yet, as taxIngredient adena entries might occur next (order not guaranteed)
         	}
         	// if it is an armor/weapon, modify the enchantment level appropriately, if necessary
-        	else if (maintainEnchantment)
+        	// not used for clan reputation and fame
+        	else if (maintainEnchantment && newIngredient.getItemId() > 0)
         	{
             	L2Item tempItem = ItemTable.getInstance().createDummyItem(ing.getItemId()).getItem();
             	if ((tempItem instanceof L2Armor) || (tempItem instanceof L2Weapon))

+ 2 - 1
L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/MultiSellChoose.java

@@ -429,7 +429,8 @@ public class MultiSellChoose extends L2GameClientPacket
 				continue; // do not yet add this adena amount to the list as taxIngredient adena might be entered later (order not guaranteed)
 			}
 			// if it is an armor/weapon, modify the enchantment level appropriately, if necessary
-			else if (maintainEnchantment)
+			// not used for clan reputation and fame
+			else if (maintainEnchantment && newIngredient.getItemId() > 0)
 			{
 				L2Item tempItem = ItemTable.getInstance().createDummyItem(newIngredient.getItemId()).getItem();
 				if ((tempItem instanceof L2Armor) || (tempItem instanceof L2Weapon))