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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...