Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This code provides lvl 80 character
- ===================================================================
- Config.java (revision 0)
- ===================================================================
- + public static boolean ENABLE_CMD_UPLEVEL;
- + public static boolean UPLEVEL_ITEM_ID;
- + public static boolean UPLEVEL_ITEM_COUNT;
- public static String ALLOWED_SKILLS;
- public static String ALLOWED_SKILLS;
- public static FastList<Integer> ALLOWED_SKILLS_LIST = new FastList<>();
- + ENABLE_CMD_UPLEVEL = Boolean.parseBoolean(L2JFrozenSettings.getProperty("EnableUpSystem", "True"));
- + UPLEVEL_ITEM_ID = Boolean.parseBoolean(L2JFrozenSettings.getProperty("UpLevelItemID", "57"));
- + UPLEVEL_ITEM_COUNT = Boolean.parseBoolean(L2JFrozenSettings.getProperty("UpLevelItemCount", "1"));
- ALT_SERVER_NAME_ENABLED = Boolean.parseBoolean(L2JFrozenSettings.getProperty("ServerNameEnabled", "false"));
- ANNOUNCE_TO_ALL_SPAWN_RB = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AnnounceToAllSpawnRb", "false"));
- ===================================================================
- gameserver/handler/VoicedCommandHandler.java
- ===================================================================
- import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Voting;
- import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding;
- + import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.UpLevel;
- + if (Config.ENABLE_CMD_UPLEVEL)
- + registerVoicedCommandHandler(new UpLevel());
- + if (Config.BANKING_SYSTEM_ENABLED)
- + {
- + registerVoicedCommandHandler(new BankingCmd());
- + }
- if (Config.CTF_COMMAND)
- {
- registerVoicedCommandHandler(new CTFCmd());
- }
- ===================================================================
- gameserver/handler/voicedcommandhandlers/UpLevel.java (revision 0)
- ===================================================================
- package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
- import java.text.SimpleDateFormat;
- import com.l2jfrozen.Config;
- import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
- import com.l2jfrozen.gameserver.model.PcInventory;
- import com.l2jfrozen.gameserver.model.L2World;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
- import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
- import com.l2jfrozen.gameserver.network.serverpackets.SocialAction;
- /*
- * Edited By Dagger
- */
- public class UpLevel implements IVoicedCommandHandler
- {
- private static final String[] VOICED_COMMANDS = {"up"};
- public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
- {
- if (command.equalsIgnoreCase("up"))
- {
- {
- activeChar.getInventory().destroyItemByItemId("", Config.UPLEVEL_ITEM_ID, Config.UPLEVEL_ITEM_COUNT, activeChar, activeChar.getTarget());
- activeChar.getStat().addExp(activeChar.getStat().getExpForLevel(81));
- activeChar.sendMessage("Felicidades : "+activeChar.getName()+" Ha Ganado un LvL usando el comando .up ! .");
- }
- }
- return false;
- }
- public String[] getVoicedCommandList()
- {
- return VOICED_COMMANDS;
- }
- }
- //No New line
- ===================================================================
- gameserver.config.functions.l2jfrozen.properties
- ===================================================================
- # Npc Protector Message
- ProtectorMessage = Hey Tu ! aqui no se puede matar !!!
- +#
- +#Comando .up ( Enable = True | Disable = False )
- +#Subir de nivel 80 al personaje
- +EnableUpSystem = True
- +UpLevelItemID = 57
- +UpLevelItemCount = 10000000
- //No New Line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement