return (level >= REQUIRED_LEVEL);
}
public void showMainPage(L2PcInstance activeChar)
{
NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
final StringBuilder replyMSG = StringUtil.startAppend(1000, "<html><body>");
replyMSG.append("<center><font color=\"LEVEL\">[Raid Engine]</font></center><br><br><br>");
replyMSG.append("<table><tr><td><edit var=\"input1\" width=\"125\"></td><td><edit var=\"input2\" width=\"125\"></td></tr></table>");
replyMSG.append("<table border=\"0\"><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Name\" action=\"bypass -h admin_rai_name $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Description\" action=\"bypass -h admin_rai_desc $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Join Location\" action=\"bypass -h admin_rai_join_loc $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Max lvl\" action=\"bypass -h admin_rai_maxlvl $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Min lvl\" action=\"bypass -h admin_rai_minlvl $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Max players\" action=\"bypass -h admin_rai_maxplayers $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Min players\" action=\"bypass -h admin_rai_minplayers $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"NPC\" action=\"bypass -h admin_rai_npc $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"NPC Pos\" action=\"bypass -h admin_rai_npc_pos\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("</tr><tr><td width=\"100\"><button value=\"Raidboss\" action=\"bypass -h admin_rai_bos $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Raidboss Pos\" action=\"bypass -h admin_rai_boss_pos\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Reward\" action=\"bypass -h admin_rai_reward $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Reward Amount\" action=\"bypass -h admin_rai_reward_amount $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Join Time\" action=\"bypass -h admin_rai_jointime $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Event Time\" action=\"bypass -h admin_rai_eventtime $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Fight Pos\" action=\"bypass -h admin_rai_team_pos $input1\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><table><tr>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Join\" action=\"bypass -h admin_rai_join\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Teleport\" action=\"bypass -h admin_rai_teleport\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Start\" action=\"bypass -h admin_rai_start\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Abort\" action=\"bypass -h admin_rai_abort\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Finish\" action=\"bypass -h admin_rai_finish\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Sit Force\" action=\"bypass -h admin_rai_sit\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><br><table><tr>");
replyMSG
.append("<td width=\"100\"><button value=\"Save\" action=\"bypass -h admin_rai_save\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Load\" action=\"bypass -h admin_rai_load\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG
.append("<td width=\"100\"><button value=\"Auto Event\" action=\"bypass -h admin_rai_autoevent\" width=90 height=15 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>");
replyMSG.append("</tr></table><br><br>");
replyMSG.append("Current event...<br1>");
replyMSG.append(" ... name: <font color=\"00FF00\">" + Raid._eventName + "</font><br1>");
replyMSG.append(" ... description: <font color=\"00FF00\">" + Raid._eventDesc + "</font><br1>");
replyMSG.append(" ... joining location name: <font color=\"00FF00\">" + Raid._joiningLocationName + "</font><br1>");
replyMSG.append(" ... joining NPC ID: <font color=\"00FF00\">" + Raid._npcId + " on pos " + Raid._npcX + "," + Raid._npcY + "," + Raid._npcZ
+ "</font><br1>");
replyMSG.append(" ... Raidboss ID: <font color=\"00FF00\">" + Raid._bossId + " on pos " + Raid._bossX + "," + Raid._bossY + "," + Raid._bossZ
+ "</font><br1>");
replyMSG.append(" ... Fight pos: <font color=\"00FF00\">" + Raid._startX + "," + Raid._startY + "," + Raid._startZ
+ "</font><br1>");
replyMSG.append(" ... reward ID: <font color=\"00FF00\">" + Raid._rewardId + "</font><br1>");
replyMSG.append(" ... reward Amount: <font color=\"00FF00\">" + Raid._rewardAmount + "</font><br><br>");
replyMSG.append(" ... Min lvl: <font color=\"00FF00\">" + Raid._minlvl + "</font><br>");
replyMSG.append(" ... Max lvl: <font color=\"00FF00\">" + Raid._maxlvl + "</font><br><br>");
replyMSG.append(" ... Min Players: <font color=\"00FF00\">" + Raid._minPlayers + "</font><br>");
replyMSG.append(" ... Max Players: <font color=\"00FF00\">" + Raid._maxPlayers + "</font><br><br>");
replyMSG.append(" ... Joining Time: <font color=\"00FF00\">" + Raid._joinTime + "</font><br>");
replyMSG.append(" ... Event Timer: <font color=\"00FF00\">" + Raid._eventTime + "</font><br><br>");
replyMSG.append("<center><table border=\"0\">");
replyMSG.append("</table></center>");
replyMSG.append("</body></html>");
adminReply.setHtml(replyMSG.toString());
activeChar.sendPacket(adminReply);
}