I couldn't find this code on forum so i've decided to share it. I took it from L2jServer rev3008, but it wasn't implemented on interlude, so whoever had that problem like me here it is
Go to net.sf.l2j.gameserver.util.FloodProtector.java
and find this array
private static final int[] REUSEDELAY = new int[]{ 4, 42, 42, 16, 100 }
edit it to look like this
private static final int[] REUSEDELAY = new int[]{ 4, 42, 42, 16, 100, 20 }
if you have more numbers here np, just add ,20 at the end.
now find this variables
public static final int PROTECTED_USEITEM = 0;
public static final int PROTECTED_ROLLDICE = 1;
public static final int PROTECTED_FIREWORK = 2;
public static final int PROTECTED_ITEMPETSUMMON = 3;
public static final int PROTECTED_HEROVOICE = 4;
and after them add 1 more line
public static final int PROTECTED_MULTISELL = 5;
now go to net.sf.l2j.gameserver.clientpackets.MultiSellChoose.java
find
@Override
public void runImpl()
{
function and add this line just after {
L2PcInstance player = getClient().getActiveChar();
if (player == null)
return;
if (!FloodProtector.getInstance().tryPerformAction(player.getObjectId(), FloodProtector.PROTECTED_MULTISELL))
{
player.sendMessage("You can not use shop that fast!");
return;
}
if you have
L2PcInstance player = getClient().getActiveChar();
if (player == null)
return;
somewhere later in that function, eclipse will warn you about error, so just delete that lines.
tested, its working on l2jserver latest rev