Page 1 of 1

Multisell support for CB

Posted: Thu Jan 06, 2011 10:23 pm
by jaman4321
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision all:
L2JDP Revision all:


Hello. help pls.

I want to do support gmshop a community board.

I already did this on l2j Gracia Epilogue. But for Freya need to change the code.

the code that worked for Gracia Epilogue
________________________________________________________________
else if (command.startsWith ("_bbsmultisell;"))
{
StringTokenizer st = new StringTokenizer (command, ";");
st.nextToken ();
TopBBSManager.getInstance (). Parsecmd ("_bbstop;" st.nextToken (), activeChar);
L2Multisell.getInstance (). SeparateAndSend (Integer. parseInt (st.nextToken ()), activeChar, 0, false, 0);
}
________________________________________________________________
-Here is the code that worked for Gracia Epilogue. This code is not suitable for Freya, because the the method separateandsend () changed and the class itself L2multisell Move to Folder Datatables (gameserver / datatables / multisell.java)

Here's the method:
public final void separateAndSend (int listId, L2PcInstance player, L2Npc npc, boolean inventoryOnly)

What settings need to specify in separeAndSend() it in the class communityboard.java?

Re: Multisell support for CB

Posted: Thu Jan 06, 2011 10:34 pm
by jurchiks
just open call hierarchy of the new separateAndSend method and check how it's done in other places...

Re: Multisell support for CB

Posted: Thu Jan 06, 2011 11:17 pm
by jaman4321
do not have this method anywhere else ...

Re: Multisell support for CB

Posted: Thu Jan 06, 2011 11:45 pm
by jaman4321
problem was solved, sorry