if(SkillsEnd - SkillsStart > MaxSkillsPerPage)
{
SkillsEnd = SkillsStart + MaxSkillsPerPage;
}
NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
TextBuilder replyMSG = new TextBuilder("<html><body>");
replyMSG.append("<table width=260><tr>");
replyMSG.append("<td width=40><button value=\"Main\" action=\"bypass -h admin_admin\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
replyMSG.append("<td width=180><center>Character Selection Menu</center></td>");
replyMSG.append("<td width=40><button value=\"Back\" action=\"bypass -h admin_show_skills\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
replyMSG.append("</tr></table>");
replyMSG.append("<br><br>");
replyMSG.append("<center>Editing <font color=\"LEVEL\">" + player.getName() + "</font></center>");
replyMSG.append("<br><table width=270><tr><td>Lv: " + player.getLevel() + " " + player.getTemplate().className + "</td></tr></table>");
replyMSG.append("<br><table width=270><tr><td>Note: Dont forget that modifying players skills can</td></tr>");
replyMSG.append("<tr><td>ruin the game...</td></tr></table>");
replyMSG.append("<br><center>Click on the skill you wish to remove:</center>");
replyMSG.append("<br>");
String pages = "<center><table width=270><tr>";
for(int x = 0; x < MaxPages; x++)
{
int pagenr = x + 1;
pages += "<td><a action=\"bypass -h admin_remove_skills " + x + "\">Page " + pagenr + "</a></td>";
}
pages += "</tr></table></center>";
replyMSG.append(pages);
replyMSG.append("<br><table width=270>");
replyMSG.append("<tr><td width=80>Name:</td><td width=60>Level:</td><td width=40>Id:</td></tr>");
for(int i = SkillsStart; i < SkillsEnd; i++)
{
replyMSG.append("<tr><td width=80><a action=\"bypass -h admin_remove_skill " + skills[i].getId() + "\">" + skills[i].getName() + "</a></td><td width=60>" + skills[i].getLevel() + "</td><td width=40>" + skills[i].getId() + "</td></tr>");
}
replyMSG.append("</table>");
replyMSG.append("<br><center><table>");
replyMSG.append("Remove skill by ID :");
replyMSG.append("<tr><td>Id: </td>");
replyMSG.append("<td><edit var=\"id_to_remove\" width=110></td></tr>");
replyMSG.append("</table></center>");
replyMSG.append("<center><button value=\"Remove skill\" action=\"bypass -h admin_remove_skill $id_to_remove\" width=110 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
replyMSG.append("<br><center><button value=\"Back\" action=\"bypass -h admin_current_player\" width=40 height=15></center>");
replyMSG.append("</body></html>");
adminReply.setHtml(replyMSG.toString());
activeChar.sendPacket(adminReply);
replyMSG = null;
adminReply = null;
skills = null;