Jump to content
  • 0

Question

Posted

Hello, i have a simple queston. How i can change this line

StringUtil.append(html1, "<br><tr>", "<td><img src=\"" + item.getIcon() + "\" height=32 width=32>", "</td>", "<td>", "<font color=" + (cat.isSweep() ? ("ff00ff") : ("ff9933")) + ">" + item.getName() + "</font>", "<br1><font color=\"00cc66\">Chance:  </font>", "<font color=\"ffffff\">" + roundChance, "0%" + "</font>", "<font color=\"00cc66\"> Min: </font>", "<font color=\"ffffff\">" + drop.getMinDrop() + "</font>", "<font color=\"00cc66\"> Max: </font>", "<font color=\"ffffff\">" + drop.getMaxDrop() + "</font>", "</td>", "</tr>");
					

To read from HTML file? To load from NpcInfoTest.html. Now altview it is showing by this code. Java. But i want to make java read html. ( I hope SweeTs see this) Thanks.

3 answers to this question

Recommended Posts

  • 0
Posted

showBookmarks method. In short, you call the htm, do the magic and use html.replace, the hardcoded content is simply replaced.

 

https://gitlab.com/Tryskell/acis_public/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminBookmark.java

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..