На сборке l2ava нету кнопки закрыть окно ! не подскажете как её туда вставить :-D
Код:
if (canChangeClass(player, jobLevel))
{
StringBuilder html = new StringBuilder();
html.append("<html noscrollbar><head><title>L2AvA Newbie Tutorial</title></head>");
html.append("<body>");
html.append("<table border=0 cellpadding=0 cellspacing=0 width=292 height=310 background=\"l2ui_ct1.Windows_DF_TooltipBG\">");
html.append("<tr><td align=center><br>");
html.append("<table width=280><tr><td align=center valign=center>");
html.append("<img src=\"L2UI.squaregray\" width=285 height=1/> ");
html.append("<font name=hs12 color=3399FF>L2AvA</font>");
html.append("<img src=\"L2UI.squaregray\" width=285 height=1/>");
html.append("</td></tr></table>");
html.append("<br></td></tr><tr>");
html.append("<td align=center height=150>");
html.append("<table width=280><tr><td align=center><img src=\"%image:servername.png%\" width=240 height=64></td></tr>");
html.append("<tr><td align=center><br><font color=LEVEL name=hs12>Welcome to L2AvA ! </font></td></tr>");
html.append("</table>");
html.append("<br1>");
html.append("<table width=280><tr><td align=center>");
html.append("<font color=00ff99>").append(player.getName()).append("</font> change your class for <font color=\"LEVEL\">").append(Util.formatAdena(Config.CLASS_MASTERS_PRICE_LIST[jobLevel])).append(" Adena</font>!<br1>");
html.append("</td></tr></table>");
html.append("<table width=280>");
for (ClassId cid : ClassId.values())
{
if (cid != ClassId.inspector && cid.childOf(classId) && cid.level() == classId.level() + 1)
{
String name = cid.name().substring(0, 1).toUpperCase() + cid.name().substring(1);
html.append("<tr><td align=center><button value=\"").append(name).append("\" action=\"bypass -h ChangeTo;").append(cid.getId()).append(';').append(Config.CLASS_MASTERS_PRICE_LIST[jobLevel]).append("\" width=200 height=32 back=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_HeroConfirm\"></td></tr>");
}
}
html.append("<tr><td align=center><button value=\"Remaind me later\" action=\"bypass CloseTutorial\" width=200 height=28 back=\"L2UI_CT1.OlympiadWnd_DF_Back_Down\" fore=\"L2UI_CT1.OlympiadWnd_DF_Back\"></td></tr>");
html.append("</table>");
html.append("</td></tr><tr>");
html.append("<td align=center><table width=280><tr>");
html.append("<td align=center valign=center>");
html.append("<img src=\"L2UI.squaregray\" width=285 height=1/> ");
html.append("<font name=hs12 color=3399FF>L2AvA</font>");
html.append("<img src=\"L2UI.squaregray\" width=285 height=1/> ");
html.append("</td></tr></table><br></td></tr>");
html.append("</table></body></html>");
st.closeTutorial(); // Close the tutorial first so the other html can be shown
st.showTutorialHTML(html.toString());
}
}