Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private final void sendCBHtml(L2PcInstance activeChar, String html)
- {
- if (activeChar == null)
- return;
- if (html != null)
- {
- activeChar.clearBypass();
- int len = html.length();
- for (int i = 0; i < len; i++)
- {
- int start = html.indexOf("\"bypass ", i);
- int finish = html.indexOf("\"", start + 1);
- if (start < 0 || finish < 0)
- break;
- if (html.substring(start+8, start+10).equals("-h"))
- start += 11;
- else
- start += 8;
- i = finish;
- int finish2 = html.indexOf("$", start);
- if (finish2 < finish && finish2 > 0)
- activeChar.addBypass2(html.substring(start, finish2).trim());
- else
- activeChar.addBypass(html.substring(start, finish).trim());
- }
- }
- activeChar.sendPacket(new ShowBoard(null, "101"));
- activeChar.sendPacket(new ShowBoard(html, "101"));
- activeChar.sendPacket(new ShowBoard(null, "102"));
- activeChar.sendPacket(new ShowBoard(null, "103"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement