Skip to content

[Updated][Share]Vitality System L2J,L2JFree,L2Emu!

Featured Replies

very nice share man !thx a lot

Thx For its! Very Fun!! :D

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

t455237_1.bmp.jpg

 

 

 

 

  • 1 month later...
  • 1 month later...

can i add vitality  in hellbound client???

Very very good thaanks man for it :)

aprishiate nice share

Now this is something that definitely deserves a +1!

 

Great job, fully implemented in my test server right now!

  • 4 months later...

Vitality System it's very good!!

 

Ty for sharing

Lets try  :) thx for the share

  • 1 month later...

How can i adapt it to l2jofficial??

(gracia final)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.