Data/stringView attachment 962
How to make it as new design? The 1st one looks so bad ...
Can you light me up?gameserver/data/html-*/scripts/services/hero_sell.htm
/home/l2/gameserver/data/string/strings_*.properties
services.HeroSell.requestLine=<br><a action="bypass -h scripts_services.HeroSell:hero_sell {0}" msg="Buy hero?">Buy Hero for {2} &#{1}; with hero time duration {3} day(s).</a>
</a>
Can give an example?Data/string
Try itCan give an example?
<html><head><body>Hero status:<br>
<table width=300>
%hero_options_list%
</table>
</body></html>
services.HeroSell.requestLine=<tr><td width=5></td><td width=140>Buy hero for <font color="00ff00">{3} day(s)</font></td><td width=90>Cost {2} &#{1};</td><td width=70><a action="bypass -h scripts_services.HeroSell:hero_sell {0}" msg="Buy hero?">BUY NOW</a></td></tr>
Try it
html
HTML:<html><head><body>Hero status:<br> <table width=300> %hero_options_list% </table> </body></html>
String
Code:services.HeroSell.requestLine=<tr><td width=5></td><td width=140>Buy hero for <font color="00ff00">{3} day(s)</font></td><td width=90>Cost {2} &#{1};</td><td width=70><a action="bypass -h scripts_services.HeroSell:hero_sell {0}" msg="Buy hero?">BUY NOW</a></td></tr>
History: FMallocWindows::Malloc <- NCHtmlFrame::CreateTableFrame <- NCHtmlFrame::LoadHtml <- NCHtmlViewer::AnalyzeHtml <- NCHtmlViewer::LoadHtmlFormString <- NCNPCHtmlViewer::LoadHtml <- NConsoleWnd::ReceiveHtmlMessage <- UGameEngine::OnNpcHtmlMessage <- UNetworkHandler::Tick <- Function Name=NpcHtmlMessageP <- UGameEngine::Tick <- UpdateWorld <- MainLoop


services.HeroSell.requestLine=<table width=297 border=0 cellspacing=1 cellpadding=0><tr><td width=100>Buy hero for <font color="00ff00"> {3} Day(s)</font></td><td width=80>Cost {2} DC</td><td width=100><button width=91 height=21 back="pvpms.mbutf" fore="pvpms.mbut" action="bypass -h scripts_services.HeroSell:hero_sell {0}" value=" {3} day(s)." > </td></tr></table>
Таблицу в стринги лучше не заносить т.к в диалоге есть лимит на количество таблиц. И если захочешь оформить диалог с таблицами, то будешь получать крит
<html><head><body>
<center><img src="L2UI.SquareGray" width=300 height=2></center>
<table width=300 bgcolor=000000>
<tr>
<td width=5></td>
<td width=140><font color="00ff00">Hero Days</font></td>
<td width=110>Item Cost</td>
<td width=70>Action</td>
</tr>
</table>
<center><img src="L2UI.SquareGray" width=300 height=2></center>
<br>
<table width=300>
<tr>
<td>
%hero_options_list%
</td>
</tr>
</table>
</body></html>
services.HeroSell.requestLine=<table width=310><tr><td width=120>Buy hero for <font color="00ff00">{3} day(s)</font></td><td width=90>{2} &#{1};</td><td width=70><a action="bypass -h scripts_services.HeroSell:hero_sell {0}" msg="Buy hero?">BUY NOW</a></td></tr></table>

ну это я игрался сиделТаблицу в стринги лучше не заносить т.к в диалоге есть лимит на количество таблиц. И если захочешь оформить диалог с таблицами, то будешь получать крит![]()