Multisell with names

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Multisell with names

Post by Berkas »

Hello, how make multisell without 1002 to example WeaponsIcarus name of xml?
Tryed with this, but doesn't working...
MultisellData.java

Code: Select all

int id = getCurrentFile().getName().replaceAll(".xml", "").hashCode();     public final void separateAndSend(String listName, L2PcInstance player, L2Npc npc, boolean inventoryOnly, double productMultiplier, double ingredientMultiplier)    {        int listId = listName.hashCode();
XML Name: WeaponsVesper
[11/11 02:18:20] MultisellData: can't find list id: -1429817456 requested by player: Berkas, npcId:0
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Multisell with names

Post by UnAfraid »

You cannot do that because npc of the multisell is the id of the multisell and client/server exchanges it as a digit
Image
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Re: Multisell with names

Post by Berkas »

But I'm using it only for Community Board which is not NPC, so maybe possible? As you can see in code i using hashCode
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Multisell with names

Post by UnAfraid »

Use only numeric values for multisell names no matter where!
Image
Berkas
Posts: 94
Joined: Sat Dec 14, 2013 9:23 am

Re: Multisell with names

Post by Berkas »

UnAfraid wrote:Use only numeric values for multisell names no matter where!
Okey, thanks for answer! :wink:
Post Reply