If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
Hello there,
When a player request a multisell list (from a GM shop for exemple), the html page is automatically closed.
How can I make the html pages remain when using multisell?
I did try to search into the files but I don't understand much the codes for multisell, I have some clues in these files:
/com/l2jserver/gameserver/datatables/MultiSell.java
/com/l2jserver/gameserver/model/multisell/PreparedListContainer.java
Which line to edit/comment in order to make what I need?
Thanks,
Nerimah
Multisell
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 76
- Joined: Mon May 02, 2011 10:19 am
- Location: Paris, France
- Contact:
Re: Multisell
Hello again,
Finally I found it by myself, I needed to edit the file : handlers.bypasshandlers.Multisell.java from datapack:
Finally I found it by myself, I needed to edit the file : handlers.bypasshandlers.Multisell.java from datapack:
Code: Select all
public boolean useBypass(String command, L2PcInstance activeChar, L2Character target) { if (!(target instanceof L2Npc)) return false; try { int listId; if (command.toLowerCase().startsWith(COMMANDS[0])) // multisell { listId = Integer.parseInt(command.substring(9).trim()); MultiSell.getInstance().separateAndSend(listId, activeChar, (L2Npc)target, false);+ ((L2Npc)target).showChatWindow(activeChar, 0); return true; } else if (command.toLowerCase().startsWith(COMMANDS[1])) // exc_multisell { listId = Integer.parseInt(command.substring(13).trim()); MultiSell.getInstance().separateAndSend(listId, activeChar, (L2Npc)target, true);+ ((L2Npc)target).showChatWindow(activeChar, 0); return true; } return false; } catch (Exception e) { _log.info("Exception in " + getClass().getSimpleName()); } return false; }
French touch.
- Copyleft
- Posts: 253
- Joined: Fri Feb 01, 2008 9:39 pm
Re: Multisell
if you don't want HTMLs to close when you click on some link, remove "-h " from the bypass 
