Fogotendx20 Posted February 11, 2009 Posted February 11, 2009 About //get_vitality ... who want to show informations in HTML file 1. Add This Code - Remove Old else if (cmd.equals("admin_get_vitality")) { target.getVitalityLevel(); target.getVitalityPoints(); target.updateVitalityLevel(false); String htmFile = "data/html/custom/other/vitality.htm"; String htmContent = HtmCache.getInstance().getHtm(htmFile); if (htmContent != null) { NpcHtmlMessage html = new NpcHtmlMessage(1); html.setHtml(htmContent); html.replace("%get_Vitality_Level%", String.valueOf(target.getVitalityLevel())); html.replace("%get_Vitality_Points%", String.valueOf(target.getVitalityPoints())); activeChar.sendPacket(html); } } 2. go html/custom ( create folder with name "other" ) (and in folder "other" create vitality.html) html/custom/other/vitality.htm HTML Code <html><body> <br><br> <center> <img src="l2ui.squaregray" width="300" height="1"><br> <font color=0099FF>Player Vitality Panel</font> <img src="l2ui.squaregray" width="300" height="1"> <table width=300> <tr><td><font color=00ff00>Player Vitality Level:</td><td>%get_Vitality_Level%</font></td></tr> <tr><td><font color=00ff00>Player Vitality Points:</td><td>%get_Vitality_Points%</font></td></tr> </table> <img src="l2ui.squaregray" width="300" height="1"> </center><br> </body></html> Result - Photo Quote
DāЯқŜiĐє Posted February 11, 2009 Posted February 11, 2009 Woot Fogotend that code works??I will test it and i will put it in my favorites collection!! Quote
ZumbuL Posted May 11, 2009 Posted May 11, 2009 Now this is something that definitely deserves a +1! Great job, fully implemented in my test server right now! Quote
Bruj4h Posted September 12, 2009 Posted September 12, 2009 Vitality System it's very good!! Ty for sharing Quote
KostasXD Posted October 20, 2009 Posted October 20, 2009 How can i adapt it to l2jofficial?? (gracia final) Quote
Recommended Posts
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.