Jump to content
  • 0

Return String (Html) Problem


Question

Posted

Hello i made this

 

public static String stats(final L2PcInstance player)
{
 
final TextBuilder tb = new TextBuilder();
tb.append("<html><title>Casino Manager</title><body>");
tb.append("<center>");
 
tb.append("<center>");
tb.append("Place your bets");
 
tb.append("</tr>");
 
tb.append("</center>");
tb.append("<center><img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\">");
tb.append("</body></html>");
player.sendPacket(ActionFailed.STATIC_PACKET);
 
return tb.toString();
}
 
 
 
i call it but when i call it no html come up >.> the rest code work exept this

3 answers to this question

Recommended Posts

  • 0
Posted

What do you have near that method call?

It should be something like that:

NpcHtmlMessage msg = new NpcHtmlMessage(0);
msg.setHtml(stats(player));
player.sendPacket(msg);
  • 0
Posted

 

What do you have near that method call?

It should be something like that:

NpcHtmlMessage msg = new NpcHtmlMessage(0);
msg.setHtml(stats(player));
player.sendPacket(msg);

sec sir imma try

Guest
This topic is now closed to further replies.
×
×
  • Create New...