Page 1 of 1

Multisell

Posted: Tue Nov 08, 2011 12:25 am
by Nerimah
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

Re: Multisell

Posted: Tue Nov 08, 2011 1:15 pm
by Nerimah
Hello again,

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;    }

Re: Multisell

Posted: Wed Nov 09, 2011 11:01 am
by Copyleft
if you don't want HTMLs to close when you click on some link, remove "-h " from the bypass :P