Page 1 of 1

Multisell with names

Posted: Tue Nov 11, 2014 2:22 am
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

Re: Multisell with names

Posted: Tue Nov 11, 2014 4:34 am
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

Re: Multisell with names

Posted: Tue Nov 11, 2014 2:09 pm
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

Re: Multisell with names

Posted: Tue Nov 11, 2014 3:47 pm
by UnAfraid
Use only numeric values for multisell names no matter where!

Re: Multisell with names

Posted: Tue Nov 11, 2014 7:02 pm
by Berkas
UnAfraid wrote:Use only numeric values for multisell names no matter where!
Okey, thanks for answer! :wink: