cl1ch3 Posted March 2, 2010 Posted March 2, 2010 Does anyone have npc or script which can increase your vitality lvl? thx ;)
0 Matim Posted March 2, 2010 Posted March 2, 2010 Nope, but you can easly create one. Create new NPC, new bypass, and you can use this function: setVitalityPoints(); good luck.
0 cl1ch3 Posted March 7, 2010 Author Posted March 7, 2010 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; } }
Question
cl1ch3
Does anyone have npc or script which can increase your vitality lvl? thx ;)
2 answers to this question
Recommended Posts