public static void separateAndSend(final String html, final L2PcInstance acha)
{
if (html == null)
return;
if (html.length() < 4090)
{
acha.sendPacket(new ShowBoard(html, "101"));
acha.sendPacket(new ShowBoard(null, "102"));
acha.sendPacket(new ShowBoard(null, "103"));
}
else if (html.length() < 8180)
{
acha.sendPacket(new ShowBoard(html.substring(0, 4090), "101"));
acha.sendPacket(new ShowBoard(html.substring(4090, html.length()), "102"));
acha.sendPacket(new ShowBoard(null, "103"));
}
else if (html.length() < 12270)
{
acha.sendPacket(new ShowBoard(html.substring(0, 4090), "101"));
acha.sendPacket(new ShowBoard(html.substring(4090, 8180), "102"));
acha.sendPacket(new ShowBoard(html.substring(8180, html.length()), "103"));
}
}
so max 12270 bytes on c6(maybe it just mistake in source), and on h5 i see 24540 bytes max.