player.sendPacket(my);
my = null;
if(isAutoAttackable(player))
{
DoorStatusUpdate su = new DoorStatusUpdate(this);
player.sendPacket(su);
su = null;
}
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
TextBuilder html1 = new TextBuilder("<html><body><table border=0>");
html1.append("<tr><td>S.Y.L. Says:</td></tr>");
html1.append("<tr><td>Current HP " + getCurrentHp() + "</td></tr>");
html1.append("<tr><td>Max HP " + getMaxHp() + "</td></tr>");
html1.append("<tr><td>Object ID: " + getObjectId() + "</td></tr>");
html1.append("<tr><td>Door ID: " + getDoorId() + "</td></tr>");
html1.append("<tr><td><br></td></tr>");
html1.append("<tr><td>Class: " + getClass().getName() + "</td></tr>");
html1.append("<tr><td><br></td></tr>");
html1.append("</table>");
html1.append("<table><tr>");
html1.append("<td><button value=\"Open\" action=\"bypass -h admin_open " + getDoorId() + "\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
html1.append("<td><button value=\"Close\" action=\"bypass -h admin_close " + getDoorId() + "\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
html1.append("<td><button value=\"Kill\" action=\"bypass -h admin_kill\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
html1.append("<td><button value=\"Delete\" action=\"bypass -h admin_delete\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
html1.append("</tr></table></body></html>");
html.setHtml(html1.toString());
player.sendPacket(html);
html1 = null;
html = null;
//openMe();
}
else
{
// ATTACK the mob without moving?
player.setTarget(this);
MyTargetSelected my = new MyTargetSelected(getObjectId(), player.getLevel());
player.sendPacket(my);
my = null;
if(isAutoAttackable(player))
{
DoorStatusUpdate su = new DoorStatusUpdate(this);
player.sendPacket(su);
su = null;
}
NpcHtmlMessage reply = new NpcHtmlMessage(5);