Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.l2emu.gameserver.handler.voicedcommandhandlers;
- import com.l2emu.gameserver.handler.IVoicedCommandHandler;
- import com.l2emu.gameserver.model.actor.instance.L2PcInstance;
- import com.l2emu.gameserver.model.base.Experience;
- /**
- @author Intrepid
- */
- public class delevel implements IVoicedCommandHandler
- {
- private static final String[] VOICED_COMMANDS = {"delevel"};
- public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
- {
- if (command.equalsIgnoreCase("delevel"))
- {
- activeChar.destroyItemByItemId("Consume", 57, 10000000, activeChar, true);
- activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0);
- }
- return true;
- }
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment