Multisell support for CB

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
jaman4321
Posts: 19
Joined: Fri Feb 05, 2010 11:48 pm

Multisell support for CB

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Multisell support for CB

Post by jurchiks »

just open call hierarchy of the new separateAndSend method and check how it's done in other places...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
jaman4321
Posts: 19
Joined: Fri Feb 05, 2010 11:48 pm

Re: Multisell support for CB

Post by jaman4321 »

do not have this method anywhere else ...
jaman4321
Posts: 19
Joined: Fri Feb 05, 2010 11:48 pm

Re: Multisell support for CB

Post by jaman4321 »

problem was solved, sorry
Post Reply