Jump to content

[SHARE] Multisell Black Icons? Nah! No More!


Recommended Posts

Well , I'm Sure That You All Have Seen That , Some Times When We Put an Item Into a Multisell , We Get a Black Icon , Instead of That Item..

 

So, There are 2 Possible Ways For Fixing.

First, Lower The Id's of those items.. for example, instead of 999912 Put 9610 Or Something.

 

Second.. Via Java. ( No need of changing the id's )

 

so.. Here's The Patch.

 

java/net/sf/l2j/gameserver/network/serverpackets/MultiSellList.java
@@ -91,8 +91,8 @@
                 for(MultiSellIngredient i : ent.getIngredients())
                 {
                 	int items = i.getItemId();
-                	int typeE = 65535;
-                	if (items != 65336)
+                	int typeE = 500000;
+                	if (items != 500000)
                 		typeE = ItemTable.getInstance().getTemplate(i.getItemId()).getType2();
                     writeH(items);      //ID
                     writeH(typeE);


java/net/sf/l2j/gameserver/network/clientpackets/MultiSellChoose.java
@@ -166,7 +166,7 @@
                 _ingredientsList = null;
                 return;
             }
-            if(e.getItemId() !=65336)
+            if(e.getItemId() !=500000)
             {
	            // if this is not a list that maintains enchantment, check the count of all items that have the given id.
	            // otherwise, check only the count of items with exactly the needed enchantment level
@@ -205,7 +205,7 @@

     	for(MultiSellIngredient e : entry.getIngredients())
     	{
-			if(e.getItemId()!=65336)
+			if(e.getItemId()!=500000)
			{
				L2ItemInstance itemToTake = inv.getItemByItemId(e.getItemId());		// initialize and initial guess for the item to take.
				if (itemToTake == null)

 

Credits : VaGo

Link to comment
Share on other sites

Thanks For the share its rly helpfull i may test it cause i have some Problems with that black icon BTW Can u make a Share how to fix that no item name?I mean a lot of people Have that type of Problem

Even when itemname-e.dat is fine some custom items are shown like NoItemName

 

Plz a Guide to fix it

Link to comment
Share on other sites

Thanks For the share its rly helpfull i may test it cause i have some Problems with that black icon BTW Can u make a Share how to fix that no item name?I mean a lot of people Have that type of Problem

Even when itemname-e.dat is fine some custom items are shown like NoItemName

 

Plz a Guide to fix it

 

That can be because of wrong slots. Also if your IDs are over 65535 this patch will fix it.

Link to comment
Share on other sites

  • 3 months later...

things never work if you dont use them right..

 

so maybe see whats different in your source and adapt the patch? maybe do it manual in the first place and you wont have to w8 for forum replys..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...