Jump to content
  • 0

[REQUEST] NPC Vitality


Question

2 answers to this question

Recommended Posts

  • 0
Posted

Nope, but you can easly create one.

 

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

 

setVitalityPoints();

 

good luck.

  • 0
Posted

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.


×
×
  • Create New...