Skip to content

[REQUEST] NPC Vitality

Featured Replies

Does anyone have npc or script which can increase your vitality lvl? thx ;)

Nope, but you can easly create one.

 

Create new NPC, new bypass, and you can use this function:

 

setVitalityPoints();

 

good luck.

  • Author

Thanks Matim, i made this one and it works

package handlers.voicedcommandhandlers;

import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.actor.stat.PcStat;

public class IncreaseVitality implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = {"vitality_max"};

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
	if (command.equalsIgnoreCase("vitality_max"))
	{
		activeChar.destroyItemByItemId("Consume", 57, 100000000, activeChar, true);
		activeChar.setVitalityPoints(PcStat.MAX_VITALITY_POINTS, true);
	}
	return true;

}
public String[] getVoicedCommandList()
{
	return VOICED_COMMANDS;
}
}

Guest
This topic is now closed to further replies.

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.