Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
- index 093a08d..4ac511a 100644
- --- a/aCis_gameserver/java/net/sf/l2j/Config.java
- +++ b/aCis_gameserver/java/net/sf/l2j/Config.java
- @@ -35,6 +35,7 @@
- import net.sf.l2j.gameserver.geoengine.geodata.GeoFormat;
- import net.sf.l2j.gameserver.model.holder.ItemHolder;
- import net.sf.l2j.gameserver.model.holder.RewardHolder;
- +import net.sf.l2j.gameserver.model.holder.RewardHolderNew;
- import net.sf.l2j.gameserver.util.FloodProtectorConfig;
- import net.sf.l2j.util.StringUtil;
- @@ -600,6 +601,7 @@
- public static int BANKING_SYSTEM_GOLDBARS;
- public static int BANKING_SYSTEM_ADENA;
- public static int BANKING_SYSTEM_GOLDBAR_ID;
- + public static boolean ALLOW_AUTO_GB;
- public static int PVP_POINT_ID;
- public static int PVP_POINT_COUNT;
- public static boolean ALLOW_EVENT_COMMANDS;
- @@ -890,8 +892,8 @@
- public static int PARTY_ZONE_RUNNING_TIME;
- public static String PART_ZONE_MONSTERS_EVENT;
- public static List<Integer> PART_ZONE_MONSTERS_EVENT_ID;
- - public static List<RewardHolder> PARTY_ZONE_REWARDS = new ArrayList<>();
- - public static List<RewardHolder> PARTY_ZONE_EVENT_REWARDS = new ArrayList<>();
- + public static List<RewardHolderNew> PARTY_ZONE_REWARDS = new ArrayList<>();
- + public static List<RewardHolderNew> PARTY_ZONE_EVENT_REWARDS = new ArrayList<>();
- public static int INSTANCE_FARM_MONSTER_ID;
- public static int ISTANCE_FARM_LOCS_COUNT;
- @@ -2148,6 +2150,7 @@
- BANKING_SYSTEM_GOLDBARS = l2jmod.getProperty("BankingGoldbarCount", 1);
- BANKING_SYSTEM_ADENA = l2jmod.getProperty("BankingAdenaCount", 500000000);
- BANKING_SYSTEM_GOLDBAR_ID = l2jmod.getProperty("BankingGoldbar_Id", 1);
- + ALLOW_AUTO_GB = l2jmod.getProperty("AllowAutoGoldBar", false);
- PVP_POINT_ID = l2jmod.getProperty("ColorCoinID", 57);
- PVP_POINT_COUNT = l2jmod.getProperty("ColorCoinCount", 200);
- ALLOW_EVENT_COMMANDS = l2jmod.getProperty("AllowEventCommands", false);
- @@ -2750,8 +2753,8 @@
- PART_ZONE_MONSTERS_EVENT_ID = new ArrayList<>();
- for(String id : PART_ZONE_MONSTERS_EVENT.split(","))
- PART_ZONE_MONSTERS_EVENT_ID.add(Integer.parseInt(id));
- - PARTY_ZONE_REWARDS = parseReward(l2jevent, "PartyZoneReward");
- - PARTY_ZONE_EVENT_REWARDS = parseReward(l2jevent, "PartyZoneEventReward");
- + PARTY_ZONE_REWARDS = parseRewardNew(l2jevent, "PartyZoneReward");
- + PARTY_ZONE_EVENT_REWARDS = parseRewardNew(l2jevent, "PartyZoneEventReward");
- ALLOW_HIDE_ITEM_EVENT = l2jevent.getProperty("HideEventEnable", false);
- HIDE_ITEM_REWARDS = parseReward(l2jevent, "HideEventRewardList");
- @@ -3802,9 +3805,26 @@
- return auxReturn;
- }
- - public static ExProperties load(String filename)
- + public static List<RewardHolderNew> parseRewardNew(Properties propertieNew, String configNameNew)
- {
- - return load(new File(filename));
- + List<RewardHolderNew> auxReturnNew = new ArrayList<>();
- +
- + String aux = propertieNew.getProperty(configNameNew).trim();
- + for (String randomRewardNew : aux.split(";"))
- + {
- + final String[] infos = randomRewardNew.split(",");
- +
- + if (infos.length > 3)
- + auxReturnNew.add(new RewardHolderNew(Integer.valueOf(infos[0]), Integer.valueOf(infos[1]), Integer.valueOf(infos[2]), Integer.valueOf(infos[3])));
- + else
- + auxReturnNew.add(new RewardHolderNew(Integer.valueOf(infos[0]), Integer.valueOf(infos[1]), Integer.valueOf(infos[2])));
- + }
- + return auxReturnNew;
- + }
- +
- + public static ExProperties load(String filenameNew)
- + {
- + return load(new File(filenameNew));
- }
- public static ExProperties load(File file)
- diff --git a/aCis_gameserver/java/net/sf/l2j/Team.java b/aCis_gameserver/java/net/sf/l2j/Team.java
- index 2d8ea5a..234a560 100644
- --- a/aCis_gameserver/java/net/sf/l2j/Team.java
- +++ b/aCis_gameserver/java/net/sf/l2j/Team.java
- @@ -27,24 +27,22 @@
- public static void info()
- {
- _log.info(" ");
- - _log.info(" ___________$$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" ________$$$$___$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" ______$$$$______$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" ____$$$$$________$$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" ___$$$$$__________$$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" __$$$$$_____*______$$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" _$$$$$$____________$$$$$$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" _$$$$$$___________$$$$$$$$$___________$$$$$$ ");
- - _log.info(" _$$$$$$$_________$$$_$$$_$$$_________$$$$$$$$ ");
- - _log.info(" _$$$$$$$$______$$$$___$___$$$$______$$$$$$$$$$ ");
- - _log.info(" _$$$$$$$$$$$$$$$$$___$$$___$$$$$$$$$$$$$$$$$$$ ");
- - _log.info(" ");
- - _log.info(" -= Rev Base: aCis =- ");
- - _log.info(" -= Essa rev foi customizada e editada por Oseias Garcez =- ");
- - _log.info(" -= Facebook para contato: fb.com/oseias.trooper =- ");
- - _log.info(" --------------------------- ");
- - _log.info(" -= Essa Revisao Pertence a Ferx Zajaicikysky =- ");
- - _log.info(" ");
- + _log.info(" ___________$$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" ________$$$$___$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" ______$$$$______$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" ____$$$$$________$$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" ___$$$$$__________$$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" __$$$$$_____*______$$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" _$$$$$$____________$$$$$$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" _$$$$$$___________$$$$$$$$$___________$$$$$$ ");
- + _log.info(" _$$$$$$$_________$$$_$$$_$$$_________$$$$$$$$ ");
- + _log.info(" _$$$$$$$$______$$$$___$___$$$$______$$$$$$$$$$ ");
- + _log.info(" _$$$$$$$$$$$$$$$$$___$$$___$$$$$$$$$$$$$$$$$$$ ");
- + _log.info(" ");
- + _log.info(" -= Rev Base: aCis =- ");
- + _log.info(" --------------------------- ");
- + _log.info(" -= Essa Revisao Pertence a Jhonata TioPatinhaS =- ");
- + _log.info(" ");
- }
- }
- \ No newline at end of file
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MapRegionTable.java b/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MapRegionTable.java
- index d916e1d..49ebec6 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MapRegionTable.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MapRegionTable.java
- @@ -38,6 +38,7 @@
- import net.sf.l2j.gameserver.model.zone.type.L2AutoPvpZone;
- import net.sf.l2j.gameserver.model.zone.type.L2ChaoticFreeZone;
- import net.sf.l2j.gameserver.model.zone.type.L2ClanHallZone;
- +import net.sf.l2j.gameserver.model.zone.type.L2FarmZone;
- import net.sf.l2j.gameserver.model.zone.type.L2ChaoticSelfZone;
- import net.sf.l2j.gameserver.model.zone.type.L2NoZergZone;
- import net.sf.l2j.gameserver.model.zone.type.L2PartyFarmZone;
- @@ -369,6 +370,11 @@
- if (flag != null)
- return flag.getSpawnLoc();
- + // Checking if in Farm Zone
- + L2FarmZone farm = ZoneManager.getFarm(player);
- + if (farm != null)
- + return farm.getSpawnLoc();
- +
- L2AutoPvpZone pvpzone = ZoneManager.getAutoPvpZone(player);
- if (PvPZoneConfig.PVP_ZONE_EVENT_ENABLED && pvpzone != null)
- return PvPZone.getInstance().zoneWins.getSpawnLoc();
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MultisellData.java b/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MultisellData.java
- index 3942b6f..d139c4a 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MultisellData.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/datatables/MultisellData.java
- @@ -219,6 +219,9 @@
- public void separateAndSend(String listName, L2PcInstance player, boolean inventoryOnly, double taxRate)
- {
- + if (player.isGM())
- + player.sendMessage("Multisell File: " + listName);
- +
- final ListContainer list = generateMultiSell(listName, inventoryOnly, player, taxRate);
- ListContainer temp = new ListContainer();
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java
- index ae1b3da..2ab8ec3 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java
- @@ -45,6 +45,7 @@
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminFakePlayers;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminFence;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminGeodata;
- +import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminGiran;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminGm;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminGmChat;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminHeal;
- @@ -85,6 +86,7 @@
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminUnblockIp;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminVip;
- import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminZone;
- +import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminZoneCreation;
- public class AdminCommandHandler
- {
- @@ -166,6 +168,8 @@
- registerAdminCommandHandler(new AdminVip());
- registerAdminCommandHandler(new AdminZone());
- registerAdminCommandHandler(new AdminLocationGenerator());
- + registerAdminCommandHandler(new AdminGiran());
- + registerAdminCommandHandler(new AdminZoneCreation());
- }
- public void registerAdminCommandHandler(IAdminCommandHandler handler)
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java
- index 2120cb7..72ea024 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java
- @@ -18,6 +18,7 @@
- import java.util.Map;
- import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.handler.voicedcommandhandlers.VoicedAutoGB;
- import net.sf.l2j.gameserver.handler.voicedcommandhandlers.VoicedBanking;
- import net.sf.l2j.gameserver.handler.voicedcommandhandlers.VoicedBossSpawn;
- import net.sf.l2j.gameserver.handler.voicedcommandhandlers.VoicedCastles;
- @@ -63,7 +64,9 @@
- registerHandler(new VoicedSecurity());
- registerHandler(new RewardVote());
- }
- -
- + if (Config.ALLOW_AUTO_GB)
- + registerHandler(new VoicedAutoGB());
- +
- if (Config.ALLOW_EVENT_COMMANDS)
- registerHandler(new VoicedEvent());
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGiran.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGiran.java
- new file mode 100644
- index 0000000..3e45867
- --- /dev/null
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminGiran.java
- @@ -0,0 +1,52 @@
- +package net.sf.l2j.gameserver.handler.admincommandhandlers;
- +
- +import java.util.logging.Logger;
- +
- +import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
- +import net.sf.l2j.gameserver.model.L2Object;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage;
- +
- +public class AdminGiran implements IAdminCommandHandler
- +{
- + private static final String[] ADMIN_COMMANDS =
- + {
- + "admin_giran"
- + };
- +
- + protected static final Logger _log = Logger.getLogger(AdminGiran.class.getName());
- +
- + @Override
- + public boolean useAdminCommand(String command, L2PcInstance activeChar)
- + {
- + if ((activeChar.getTarget() == null))
- + {
- + activeChar.sendMessage("Select a target");
- + return false;
- + }
- +
- + L2Object target = activeChar.getTarget();
- +
- + if (!(target instanceof L2PcInstance))
- + {
- + activeChar.sendMessage("Target need to be player");
- + return false;
- + }
- +
- + L2PcInstance player = activeChar.getTarget().getActingPlayer();
- +
- + if (command.equals("admin_giran"))
- + {
- + player.teleToLocation(82840, 147996, -3469, 50); // Giran
- + activeChar.sendMessage("The Player " + player.getName() + " Went Teleport to Giran.");
- + activeChar.sendPacket(new ExShowScreenMessage("The Player " + player.getName() + " Went Teleport to Giran.", 6 * 1000));
- + }
- + return false;
- + }
- +
- + @Override
- + public String[] getAdminCommandList()
- + {
- + return ADMIN_COMMANDS;
- + }
- +}
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminZoneCreation.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminZoneCreation.java
- new file mode 100644
- index 0000000..6bb7d90
- --- /dev/null
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminZoneCreation.java
- @@ -0,0 +1,322 @@
- +package net.sf.l2j.gameserver.handler.admincommandhandlers;
- +
- +import java.io.BufferedWriter;
- +import java.io.File;
- +import java.io.FileWriter;
- +import java.io.IOException;
- +import java.text.SimpleDateFormat;
- +import java.util.ArrayList;
- +import java.util.Date;
- +import java.util.List;
- +import java.util.StringTokenizer;
- +
- +import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
- +import net.sf.l2j.gameserver.model.Location;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
- +
- +/**
- + * @author melron
- + */
- +public class AdminZoneCreation implements IAdminCommandHandler
- +{
- + private static final List<Location> savedLocs = new ArrayList<>();
- + private static final String fileName = "coordinates" + "%s" + ".xml";
- + private static ZoneShape shape = ZoneShape.NONE;
- + private static final int zDifference = 1000;
- + private static final String maxLocs = "You have reached the maximum locations for this shape.";
- + private static int radius = 0;
- +
- + private static enum ZoneShape
- + {
- + NONE,
- + NPoly,
- + Cuboid,
- + Cylinder
- + }
- +
- + private static final String[] ADMIN_COMMANDS =
- + {
- + "admin_create_zone",
- + "admin_setType",
- + "admin_setRad",
- + "admin_saveLoc",
- + "admin_reset",
- + "admin_removeLoc",
- + "admin_storeLocs",
- + };
- +
- + @Override
- + public boolean useAdminCommand(String command, L2PcInstance activeChar)
- + {
- + final StringTokenizer st = new StringTokenizer(command);
- + st.nextToken();
- + if (command.startsWith("admin_create_zone"))
- + openHtml(activeChar);
- + else if (command.startsWith("admin_setType"))
- + {
- + clear();
- + shape = ZoneShape.valueOf(st.nextToken());
- + switch (shape)
- + {
- + case NPoly:
- + activeChar.sendMessage("You can add unlimited but atleast 3 coordinates in this shape.");
- + break;
- + case Cuboid:
- + activeChar.sendMessage("You must add 2 coordinates (in order to make a square) in this shape.");
- + break;
- + case Cylinder:
- + activeChar.sendMessage("You must add 1 coordinates and radius (in order to make a circle) in this shape.");
- + break;
- + default:
- + activeChar.sendMessage("You have to select the zone shape first.");
- + }
- + openHtml(activeChar);
- + }
- + else if (command.startsWith("admin_saveLoc"))
- + {
- + if (canSaveLoc(activeChar))
- + {
- + final Location loc = new Location(activeChar.getX(), activeChar.getY(), activeChar.getZ());
- + if (savedLocs.add(loc))
- + activeChar.sendMessage(loc + " saved..");
- + }
- + openHtml(activeChar);
- + }
- + else if (command.startsWith("admin_reset"))
- + {
- + clear();
- + activeChar.sendMessage("Reset completed.");
- + openHtml(activeChar);
- + }
- + else if (command.startsWith("admin_removeLoc"))
- + {
- + if (savedLocs.size() > 0)
- + activeChar.sendMessage(savedLocs.remove(savedLocs.size() - 1) + " removed.");
- + openHtml(activeChar);
- + }
- + else if (command.startsWith("admin_storeLocs"))
- + {
- + if (savedLocs.isEmpty())
- + {
- + activeChar.sendMessage("Empty locs..");
- + return false;
- + }
- + store(activeChar);
- + }
- + else if (command.startsWith("admin_setRad"))
- + {
- + if (!st.hasMoreTokens() || !setRadius(parseInt(st.nextToken())))
- + activeChar.sendMessage("Invalid value or shape.");
- + else
- + activeChar.sendMessage("Radius stored.");
- +
- + openHtml(activeChar);
- + }
- + return true;
- + }
- +
- + private static int calcZ(boolean minZ)
- + {
- + return (savedLocs.stream().mapToInt(loc -> loc.getZ()).sum() / savedLocs.size()) + (minZ ? -zDifference : zDifference);
- + }
- +
- + private static int parseInt(String nextToken)
- + {
- + try
- + {
- + return Integer.parseInt(nextToken);
- + }
- + catch (NumberFormatException e)
- + {
- + return 0;
- + }
- + }
- +
- + private static void store(L2PcInstance gm)
- + {
- + if (!canStoreLocs(gm))
- + return;
- + final String fName = String.format(fileName, "_" + shape.name() + "_" + getTimeStamp());
- + String filePath = "";
- + try (BufferedWriter writer = new BufferedWriter(new FileWriter(fName)))
- + {
- + final File file = new File(fName);
- + filePath = file.getAbsolutePath().replaceAll("\\\\", "/");
- + writer.write(getHeadLine());
- + for (Location loc : savedLocs)
- + writer.write(String.format("\t<node X=\"%s\" Y=\"%s\" />\r\n", loc.getX(), loc.getY()));
- +
- + writer.write("</zone>");
- + }
- + catch (IOException e)
- + {
- + gm.sendMessage(String.format("Couldn't store coordinates in %s file.", fName));
- + e.printStackTrace();
- + }
- + gm.sendMessage("Coordinates has been successfully stored at " + filePath);
- + clear();
- + openHtml(gm);
- + }
- +
- + private static String getTimeStamp()
- + {
- + return new SimpleDateFormat("hh-mm-ss").format(new Date());
- + }
- +
- + private static boolean canStoreLocs(L2PcInstance gm)
- + {
- + switch (shape)
- + {
- + case NPoly:
- + if (savedLocs.size() < 3)
- + {
- + gm.sendMessage("You have to set atleast 3 coordinates!");
- + return false;
- + }
- + return true;
- + case Cuboid:
- + if (savedLocs.size() != 2)
- + {
- + gm.sendMessage("You have to set 2 coordinates.");
- + return false;
- + }
- + return true;
- + case Cylinder:
- + if (savedLocs.size() != 1)
- + {
- + gm.sendMessage("Only 1 location required for this shape.");
- + return false;
- + }
- + return true;
- + default:
- + gm.sendMessage("You have to select the zone shape first.");
- + return false;
- + }
- + }
- +
- + private static boolean canSaveLoc(L2PcInstance activeChar)
- + {
- + switch (shape)
- + {
- + case NPoly:
- + return true; // unlimited locs can be added
- + case Cuboid:
- + if (savedLocs.size() >= 2)
- + {
- + activeChar.sendMessage(maxLocs);
- + return false;
- + }
- + return true;
- + case Cylinder:
- + if (savedLocs.size() >= 1)
- + {
- + activeChar.sendMessage("Only 1 locations required for this shape.");
- + return false;
- + }
- + return true;
- + default:
- + activeChar.sendMessage("You have to select the zone shape first.");
- + return false;
- + }
- + }
- +
- + private static String getHeadLine()
- + {
- + switch (shape)
- + {
- + case NPoly:
- + return String.format("<zone shape='NPoly' minZ='%s' maxZ='%s'>\r\n", calcZ(true), calcZ(false));
- + case Cuboid:
- + return String.format("<zone shape='Cuboid' minZ='%s' maxZ='%s'>\r\n", calcZ(true), calcZ(false));
- + case Cylinder:
- + return String.format("<zone shape='Cylinder' minZ='%s' maxZ='%s' rad='%s'>\r\n", calcZ(true), calcZ(false), getRad());
- + default:
- + return "";
- + }
- + }
- +
- + private static boolean setRadius(int val)
- + {
- + if (shape == ZoneShape.Cylinder)
- + {
- + if (val == 0)
- + return false;
- + radius = val;
- + }
- +
- + return shape == ZoneShape.Cylinder;
- + }
- +
- + private static int getRad()
- + {
- + return radius;
- + }
- +
- + private static void openHtml(L2PcInstance activeChar)
- + {
- + final NpcHtmlMessage html = new NpcHtmlMessage(0);
- + html.setFile("data/html/admin/zone_create.htm");
- + switch (shape)
- + {
- + case NONE:
- + html.replace("%zoneShape%", "Empty");
- + html.replace("%locsSize%", "Locations Saved: Null");
- + html.replace("%proceed%", "");
- + html.replace("%undo%", savedLocs.size() > 0 ? "<button value=\"Undo\" action=\"bypass admin_removeLoc\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + html.replace("%dist%", "");
- + break;
- + case NPoly:
- + html.replace("%zoneShape%", shape.name());
- + html.replace("%locsSize%", "Locations Saved: " + savedLocs.size());
- + html.replace("%proceed%", savedLocs.size() > 2 ? "<button value=\"Save\" action=\"bypass admin_storeLocs\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + html.replace("%undo%", savedLocs.size() > 0 ? "<button value=\"Undo\" action=\"bypass admin_removeLoc\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + html.replace("%dist%", "");
- + break;
- + case Cuboid:
- + html.replace("%zoneShape%", shape.name());
- + html.replace("%locsSize%", "Locations Saved: " + savedLocs.size());
- + html.replace("%proceed%", savedLocs.size() == 2 ? "<button value=\"Save\" action=\"bypass admin_storeLocs\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + html.replace("%undo%", savedLocs.size() > 0 ? "<button value=\"Undo\" action=\"bypass admin_removeLoc\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + html.replace("%dist%", "");
- + break;
- + case Cylinder:
- + html.replace("%zoneShape%", shape.name());
- + html.replace("%locsSize%", "Locations Saved: " + savedLocs.size());
- + html.replace("%undo%", savedLocs.size() == 1 ? "<button value=\"Undo\" action=\"bypass admin_removeLoc\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">" : "");
- + if (savedLocs.size() == 1)
- + {
- + if (radius == 0)
- + {
- + html.replace("%proceed%", "");
- + html.replace("%dist%", "Set the radius: <edit var=\"Radius\" width=110 height=15> <button value=\"Save\" action=\"bypass admin_setRad $Radius\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">");
- + }
- + else
- + {
- + html.replace("%proceed%", "<button value=\"Save\" action=\"bypass admin_storeLocs\" back=\"l2ui_ch3.smallbutton2_down\" width=65 height=20 fore=\"l2ui_ch3.smallbutton2\">");
- + html.replace("%dist%", "");
- + }
- + }
- + else
- + {
- + html.replace("%proceed%", "");
- + html.replace("%dist%", "");
- + }
- + break;
- + }
- + activeChar.sendPacket(html);
- + }
- +
- + private static void clear()
- + {
- + shape = ZoneShape.NONE;
- + savedLocs.clear();
- + radius = 0;
- + }
- +
- + @Override
- + public String[] getAdminCommandList()
- + {
- + return ADMIN_COMMANDS;
- + }
- +}
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/custom/special/ItemSkins.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/custom/special/ItemSkins.java
- index 5b053f0..6f666ce 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/custom/special/ItemSkins.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/custom/special/ItemSkins.java
- @@ -23,671 +23,384 @@
- public class ItemSkins implements IItemHandler
- {
- - @Override
- - public void useItem(L2Playable playable, ItemInstance item, boolean forceUse)
- - {
- - if (!(playable instanceof L2PcInstance))
- - return;
- -
- - L2PcInstance activeChar = (L2PcInstance) playable;
- -
- - int itemId = item.getItemId();
- -
- - if (itemId == 30000) // Dark
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26103);
- - activeChar.getDressMeData().setHairId(26108);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30001) // Light
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26102);
- - activeChar.getDressMeData().setHairId(26107);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30002) // Pirate
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(9961);
- - activeChar.getDressMeData().setLegsId(9962);
- - activeChar.getDressMeData().setGlovesId(9963);
- - activeChar.getDressMeData().setBootsId(9964);
- - activeChar.getDressMeData().setHairId(9960);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30003) // Muskeeter
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(9965);
- - activeChar.getDressMeData().setHairId(9966);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30004) // Wizard
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(9967);
- - activeChar.getDressMeData().setHairId(9968);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30005) // Archer
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26100);
- - activeChar.getDressMeData().setHairId(26105);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30006) // Ninja
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26101);
- - activeChar.getDressMeData().setHairId(26106);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30007) // Beleth
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26104);
- - activeChar.getDressMeData().setHairId(26109);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30008) // Knight
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26110);
- - activeChar.getDressMeData().setHairId(26111);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30009) // Healer
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26112);
- - activeChar.getDressMeData().setHairId(26113);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30010) // Lilith
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(26114);
- - activeChar.getDressMeData().setHairId(26115);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30011) // Royal Archer
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45002);
- - activeChar.getDressMeData().setHairId(45003);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30012) // Royal Muskeeter
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45008);
- - activeChar.getDressMeData().setHairId(45009);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30013) // Warrior
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45014);
- - activeChar.getDressMeData().setHairId(45015);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30014) // Cat
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45016);
- - activeChar.getDressMeData().setHairId(45017);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30015) // Red King
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45018);
- - activeChar.getDressMeData().setHairId(45019);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30016) // Red King
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45020);
- - activeChar.getDressMeData().setHairId(45021);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30017) // Valkyr
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45022);
- - activeChar.getDressMeData().setHairId(45023);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30018) // Anakim
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45024);
- - activeChar.getDressMeData().setHairId(45025);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30019) // Pirate
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45028);
- - activeChar.getDressMeData().setHairId(45029);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30020) // Samurai
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45032);
- - activeChar.getDressMeData().setHairId(45033);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30021) // Vampire
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45036);
- - activeChar.getDressMeData().setHairId(45037);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30022) // Cyborgue
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45040);
- - activeChar.getDressMeData().setHairId(45041);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30023) // Cyborgue
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45042);
- - activeChar.getDressMeData().setHairId(45043);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30024) // Wolf
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45044);
- - activeChar.getDressMeData().setHairId(45045);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30025) // Dragon Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45046);
- - activeChar.getDressMeData().setHairId(45047);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30026) // Knight Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45048);
- - activeChar.getDressMeData().setHairId(45049);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30027) // Merry Christmas Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45052);
- - activeChar.getDressMeData().setHairId(45053);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30028) // Merry Christmas Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45050);
- - activeChar.getDressMeData().setHairId(45051);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30029) // Skull Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45060);
- - activeChar.getDressMeData().setChestId(45061);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30030) // Skull Suit
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45068);
- - activeChar.getDressMeData().setChestId(45068);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30031) // Wizard
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45012);
- - activeChar.getDressMeData().setHairId(45013);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30032) // Bunny?
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45062);
- - activeChar.getDressMeData().setChestId(45063);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30033) // Punk?
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45064);
- - activeChar.getDressMeData().setChestId(45065);
- -
- - activeChar.broadcastUserInfo();
- - }
- -
- - if (itemId == 30034) // Street?
- - {
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45066);
- - activeChar.getDressMeData().setChestId(45067);
- -
- - activeChar.broadcastUserInfo();
- - }
- - }
- -}
- \ No newline at end of file
- + @Override
- + public void useItem(final L2Playable playable, final ItemInstance item, final boolean forceUse) {
- + if (!(playable instanceof L2PcInstance)) {
- + return;
- + }
- + final L2PcInstance activeChar = (L2PcInstance)playable;
- + final int itemId = item.getItemId();
- + if (itemId == 30000) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50000);
- + activeChar.getDressMeData().setHairId(50001);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30001) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50002);
- + activeChar.getDressMeData().setHairId(50003);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30002) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50004);
- + activeChar.getDressMeData().setHairId(50005);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30003) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50006);
- + activeChar.getDressMeData().setHairId(50007);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30004) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50008);
- + activeChar.getDressMeData().setHairId(50009);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30005) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50010);
- + activeChar.getDressMeData().setHairId(50011);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30006) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50012);
- + activeChar.getDressMeData().setHairId(50013);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30007) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50014);
- + activeChar.getDressMeData().setHairId(50015);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30008) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50016);
- + activeChar.getDressMeData().setHairId(50017);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30009) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50018);
- + activeChar.getDressMeData().setHairId(50019);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30010) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50020);
- + activeChar.getDressMeData().setHairId(50021);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30011) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50022);
- + activeChar.getDressMeData().setHairId(50023);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30012) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50024);
- + activeChar.getDressMeData().setHairId(50025);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30013) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50026);
- + activeChar.getDressMeData().setHairId(50027);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30014) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50028);
- + activeChar.getDressMeData().setHairId(50029);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30015) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50030);
- + activeChar.getDressMeData().setHairId(50031);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30016) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50032);
- + activeChar.getDressMeData().setHairId(50033);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30017) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50034);
- + activeChar.getDressMeData().setHairId(50035);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30018) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50036);
- + activeChar.getDressMeData().setHairId(50037);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30019) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50038);
- + activeChar.getDressMeData().setHairId(50039);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30020) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50040);
- + activeChar.getDressMeData().setHairId(50041);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30021) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50042);
- + activeChar.getDressMeData().setHairId(50043);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30022) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50044);
- + activeChar.getDressMeData().setHairId(50045);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30023) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50046);
- + activeChar.getDressMeData().setHairId(50047);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30024) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50048);
- + activeChar.getDressMeData().setHairId(50049);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30025) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50050);
- + activeChar.getDressMeData().setHairId(50051);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30026) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50052);
- + activeChar.getDressMeData().setHairId(50053);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30027) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50054);
- + activeChar.getDressMeData().setHairId(50055);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30028) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50056);
- + activeChar.getDressMeData().setHairId(50057);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30029) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50058);
- + activeChar.getDressMeData().setHairId(50059);
- + activeChar.broadcastUserInfo();
- + }
- + if (itemId == 30030) {
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, 1036, 1, 4000, 0));
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(6408);
- + activeChar.getDressMeData().setHairId(6842);
- + activeChar.broadcastUserInfo();
- + }
- + }
- +}
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedAutoGB.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedAutoGB.java
- new file mode 100644
- index 0000000..e065abc
- --- /dev/null
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedAutoGB.java
- @@ -0,0 +1,93 @@
- +package net.sf.l2j.gameserver.handler.voicedcommandhandlers;
- +
- +import java.util.HashMap;
- +import java.util.logging.Logger;
- +
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage;
- +import net.sf.l2j.gameserver.network.serverpackets.ItemList;
- +
- +public class VoicedAutoGB implements IVoicedCommandHandler {
- +
- + static final Logger _log = Logger.getLogger(Config.class.getName());
- +
- + static final HashMap<String, Thread> userGB = new HashMap<>();
- +
- + private static String[] _voicedCommands = {
- + "gb",
- + };
- +
- + @Override
- + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) {
- + if (activeChar == null) {
- + return false;
- + }
- +
- + if (command.equals("gb")) {
- +
- + if (userGB.containsKey(activeChar.toString()) && activeChar.isAutoGB())
- + {
- + userGB.remove(activeChar.toString()) //here we get thread and remove it from map
- + .interrupt(); //and interrupt it
- + activeChar.setAutoGB(false);
- + //activeChar.sendPacket(new CreatureSay(0, Say2.TELL, "", "SYS: Auto GB Desativado!"));
- + activeChar.sendMessage("Auto GB Disabled.");
- + activeChar.sendPacket(new ExShowScreenMessage("Auto GoldBar Disabled.", 4000));
- + VoicedMenu.showMenuHtml(activeChar);
- + } else {
- + activeChar.setAutoGB(true);
- + //activeChar.sendPacket(new CreatureSay(0, Say2.TELL, "", "SYS: Auto GB Ativado!"));
- + activeChar.sendMessage("Auto GB Enabled.");
- + activeChar.sendPacket(new ExShowScreenMessage("Auto GoldBar Enabled.", 4000));
- + Thread t = new Thread(new Autogb(activeChar));
- + userGB.put(activeChar.toString(), t);
- + t.start();
- + VoicedMenu.showMenuHtml(activeChar);
- + }
- +
- + return true;
- + }
- + return false;
- + }
- +
- + @Override
- + public String[] getVoicedCommandList() {
- + return _voicedCommands;
- + }
- +
- + private class Autogb implements Runnable {
- +
- + L2PcInstance activeChar;
- +
- + public Autogb(L2PcInstance activeChar) {
- + this.activeChar = activeChar;
- + }
- +
- + @Override
- + public void run() {
- + try {
- + while (true) {
- +
- + if (activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
- + {
- + activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
- + activeChar.getInventory().addItem("Goldbar", Config.BANKING_SYSTEM_GOLDBAR_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
- + activeChar.getInventory().updateDatabase();
- + activeChar.sendPacket(new ItemList(activeChar, false));
- + //activeChar.sendMessage("Now you have " + Config.BANKING_SYSTEM_GOLDBARS + " Goldbar(s), and " + Config.BANKING_SYSTEM_ADENA + " less adena.");
- + }
- + Thread.sleep(2000);
- + }
- + } catch (InterruptedException e) {
- + //nothing
- + } catch (Exception e) {
- + _log.warning(e.getMessage());
- + Thread.currentThread().interrupt();
- + } finally {
- + userGB.remove(activeChar.toString());
- + }
- + }
- + }
- +}
- \ No newline at end of file
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedMenu.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedMenu.java
- index 21a39c5..fb4d299 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedMenu.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedMenu.java
- @@ -40,7 +40,8 @@
- "hideEnchantGlow",
- "hideSkillsAnimation",
- "hideSkinsTextures",
- - "autoFarm"
- + "autoFarm",
- + "gb"
- };
- private static final String ACTIVED = "<font color=00FF00>ON</font>";
- @@ -199,7 +200,7 @@
- return true;
- }
- - private static void showMenuHtml(L2PcInstance activeChar)
- + static void showMenuHtml(L2PcInstance activeChar)
- {
- NpcHtmlMessage html = new NpcHtmlMessage(0);
- html.setFile("data/html/mods/menu/Menu.htm");
- @@ -217,7 +218,8 @@
- html.replace("%server_os%", String.valueOf(System.getProperty("os.name")));
- html.replace("%server_free_mem%", String.valueOf((Runtime.getRuntime().maxMemory()-Runtime.getRuntime().totalMemory()+Runtime.getRuntime().freeMemory()) / 1048576));
- html.replace("%server_total_mem%", String.valueOf(Runtime.getRuntime().totalMemory() / 1048576));
- - activeChar.sendPacket(html);
- + html.replace("%gb%", activeChar.isAutoGB() ? "<font color=00FF00>ON</font>" : "<font color=FF0000>OFF</font>");
- + activeChar.sendPacket(html);
- }
- private static void showAuctionHtml(L2PcInstance activeChar)
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedOutfit.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedOutfit.java
- index f93e397..1128d7c 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedOutfit.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/VoicedOutfit.java
- @@ -25,7 +25,7 @@
- public class VoicedOutfit implements IVoicedCommandHandler
- {
- private static final String[] VOICED_COMMANDS =
- - {
- + { /*
- "skins",
- "trySkin_RArcher",
- "RArcher",
- @@ -99,2623 +99,1578 @@
- "Hallowen",
- "trySkin_BlackZaken",
- "BlackZaken",
- - "disable_Helm"
- - };
- + "disable_Helm"*/
- + "skins",
- + "trySkin_Archer", "Archer",
- + "trySkin_GreenArcher", "GreenArcher",
- + "trySkin_LightAssassin", "LightAssassin",
- + "trySkin_DarkAssassin", "DarkAssassin",
- + "trySkin_RedMusketeer", "RedMusketeer",
- + "trySkin_Muskeeter", "Muskeeter",
- + "trySkin_Wizard", "Wizard",
- + "trySkin_Warrior", "Warrior",
- + "trySkin_Cat", "Cat",
- + "trySkin_King", "King",
- + "trySkin_WhiteKing", "WhiteKing",
- + "trySkin_Valkyri", "Valkyri",
- + "trySkin_Anakim", "Anakim",
- + "trySkin_Pirate", "Pirate",
- + "trySkin_PirateBlue", "PirateBlue",
- + "trySkin_Ninja", "Ninja",
- + "trySkin_Samurai", "Samurai",
- + "trySkin_DarkWizard", "DarkWizard",
- + "trySkin_Vampire", "Vampire",
- + "trySkin_Beleth", "Beleth",
- + "trySkin_Cyborg", "Cyborg",
- + "trySkin_Cowboy", "Cowboy",
- + "trySkin_Barbarian", "Barbarian",
- + "trySkin_Dragon", "Dragon",
- + "trySkin_WhiteKnight", "WhiteKnight",
- + "trySkin_RedSanta", "RedSanta",
- + "trySkin_BlueSanta", "BlueSanta",
- + "trySkin_DarkKnight", "DarkKnight",
- + "trySkin_Healer", "Healer",
- + "trySkin_Lilith", "Lilith",
- + "trySkin_Wedding", "Wedding",
- + "disable_Helm"
- + };
- @Override
- - public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
- - {
- - if (command.equals("skins"))
- - showSkinPanel(activeChar);
- -
- - // Red Archer
- - if (command.equals("trySkin_RArcher"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45000);
- - activeChar.getDressMeData().setHairId(45001);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RArcher"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45000);
- - activeChar.getDressMeData().setHairId(45001);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Yellow Archer
- - if (command.equals("trySkin_YArcher"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45002);
- - activeChar.getDressMeData().setHairId(45003);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("YArcher"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45002);
- - activeChar.getDressMeData().setHairId(45003);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Light Assassin
- - if (command.equals("trySkin_LAssassin"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45004);
- - activeChar.getDressMeData().setHairId(45005);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("LAssassin"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45004);
- - activeChar.getDressMeData().setHairId(45005);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Dark Assassin
- - if (command.equals("trySkin_DAssassin"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45006);
- - activeChar.getDressMeData().setHairId(45007);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("DAssassin"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45006);
- - activeChar.getDressMeData().setHairId(45007);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Red Muskeeteer
- - if (command.equals("trySkin_RMuskeeter"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45008);
- - activeChar.getDressMeData().setHairId(45009);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RMuskeeter"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45008);
- - activeChar.getDressMeData().setHairId(45009);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Blue Muskeeteer
- - if (command.equals("trySkin_BMuskeeter"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45010);
- - activeChar.getDressMeData().setHairId(45011);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("BMuskeeter"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45010);
- - activeChar.getDressMeData().setHairId(45011);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Royal Wizard
- - if (command.equals("trySkin_RWizard"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45012);
- - activeChar.getDressMeData().setHairId(45013);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RWizard"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45012);
- - activeChar.getDressMeData().setHairId(45013);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Chevalier Armor
- - if (command.equals("trySkin_Chevalier"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45014);
- - activeChar.getDressMeData().setHairId(45015);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Chevalier"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45014);
- - activeChar.getDressMeData().setHairId(45015);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Cat Armor
- - if (command.equals("trySkin_Cat"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45016);
- - activeChar.getDressMeData().setHairId(45017);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Cat"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45016);
- - activeChar.getDressMeData().setHairId(45017);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Royal King
- - if (command.equals("trySkin_RKing"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45018);
- - activeChar.getDressMeData().setHairId(45019);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RKing"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45018);
- - activeChar.getDressMeData().setHairId(45019);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // White King
- - if (command.equals("trySkin_WKing"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45020);
- - activeChar.getDressMeData().setHairId(45021);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("WKing"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45020);
- - activeChar.getDressMeData().setHairId(45021);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Valkyrie Armor
- - if (command.equals("trySkin_Valkyrie"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45022);
- - activeChar.getDressMeData().setHairId(45023);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Valkyrie"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45022);
- - activeChar.getDressMeData().setHairId(45023);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Anakim Armor
- - if (command.equals("trySkin_Anakim"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45024);
- - activeChar.getDressMeData().setHairId(45025);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Anakim"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45024);
- - activeChar.getDressMeData().setHairId(45025);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Red Pirate
- - if (command.equals("trySkin_RPirate"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45026);
- - activeChar.getDressMeData().setHairId(45027);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RPirate"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45026);
- - activeChar.getDressMeData().setHairId(45027);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Blue Pirate
- - if (command.equals("trySkin_BPirate"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45028);
- - activeChar.getDressMeData().setHairId(45029);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("BPirate"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45028);
- - activeChar.getDressMeData().setHairId(45029);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Ninja
- - if (command.equals("trySkin_Ninja"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45030);
- - activeChar.getDressMeData().setHairId(45031);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Ninja"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45030);
- - activeChar.getDressMeData().setHairId(45031);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Samurai
- - if (command.equals("trySkin_Samurai"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45032);
- - activeChar.getDressMeData().setHairId(45033);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Samurai"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45032);
- - activeChar.getDressMeData().setHairId(45033);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Red Magician
- - if (command.equals("trySkin_RMagician"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45034);
- - activeChar.getDressMeData().setHairId(45035);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RMagician"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45034);
- - activeChar.getDressMeData().setHairId(45035);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Vampiric Armor
- - if (command.equals("trySkin_Vampiric"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45036);
- - activeChar.getDressMeData().setHairId(45037);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Vampiric"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45036);
- - activeChar.getDressMeData().setHairId(45037);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Beleth Armor
- - if (command.equals("trySkin_Beleth"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45038);
- - activeChar.getDressMeData().setHairId(45039);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Beleth"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45038);
- - activeChar.getDressMeData().setHairId(45039);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Cyborg Armor
- - if (command.equals("trySkin_Cyborg"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45040);
- - activeChar.getDressMeData().setHairId(45041);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Cyborg"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45040);
- - activeChar.getDressMeData().setHairId(45041);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Cowboy Armor
- - if (command.equals("trySkin_Cowboy"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45042);
- - activeChar.getDressMeData().setHairId(45043);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Cowboy"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45042);
- - activeChar.getDressMeData().setHairId(45043);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Barbarian Armor
- - if (command.equals("trySkin_Barbarian"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45044);
- - activeChar.getDressMeData().setHairId(45045);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Barbarian"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45044);
- - activeChar.getDressMeData().setHairId(45045);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Dragon Armor
- - if (command.equals("trySkin_Dragon"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45046);
- - activeChar.getDressMeData().setHairId(45047);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Dragon"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45046);
- - activeChar.getDressMeData().setHairId(45047);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // White Knight
- - if (command.equals("trySkin_WKnight"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45048);
- - activeChar.getDressMeData().setHairId(45049);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("WKnight"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45048);
- - activeChar.getDressMeData().setHairId(45049);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Red Christmas
- - if (command.equals("trySkin_RChristmas"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45050);
- - activeChar.getDressMeData().setHairId(45051);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("RChristmas"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45050);
- - activeChar.getDressMeData().setHairId(45051);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Blue Christmas
- - if (command.equals("trySkin_BChristmas"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45052);
- - activeChar.getDressMeData().setHairId(45053);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("BChristmas"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45052);
- - activeChar.getDressMeData().setHairId(45053);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Dark Knight
- - if (command.equals("trySkin_DKnight"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45054);
- - activeChar.getDressMeData().setHairId(45055);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("DKnight"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45054);
- - activeChar.getDressMeData().setHairId(45055);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Healer Armor
- - if (command.equals("trySkin_Healer"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45056);
- - activeChar.getDressMeData().setHairId(45057);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Healer"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45056);
- - activeChar.getDressMeData().setHairId(45057);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Lilith Armor
- - if (command.equals("trySkin_Lilith"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45058);
- - activeChar.getDressMeData().setHairId(45059);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Lilith"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setChestId(45058);
- - activeChar.getDressMeData().setHairId(45059);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Skeleton Armor
- - if (command.equals("trySkin_Skeleton"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45060);
- - activeChar.getDressMeData().setChestId(45061);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Skeleton"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45060);
- - activeChar.getDressMeData().setChestId(45061);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Butler Armor
- - if (command.equals("trySkin_Butler"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45062);
- - activeChar.getDressMeData().setChestId(45063);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Butler"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45062);
- - activeChar.getDressMeData().setChestId(45063);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Punk Armor
- - if (command.equals("trySkin_Punk"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45064);
- - activeChar.getDressMeData().setChestId(45065);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Punk"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45064);
- - activeChar.getDressMeData().setChestId(45065);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Punk Armor
- - if (command.equals("trySkin_Street"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45066);
- - activeChar.getDressMeData().setChestId(45067);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Street"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45066);
- - activeChar.getDressMeData().setChestId(45067);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // Hallowen Armor
- - if (command.equals("trySkin_Hallowen"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45068);
- - activeChar.getDressMeData().setChestId(45068);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("Hallowen"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45068);
- - activeChar.getDressMeData().setChestId(45068);
- - activeChar.broadcastUserInfo();
- - }
- -
- - // BlackZaken Armor
- - if (command.equals("trySkin_BlackZaken"))
- - {
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE))
- - {
- - activeChar.sendMessage("This command can only be used on peace area.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setTryDressMeEnabled(true);
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45070);
- - activeChar.getDressMeData().setChestId(45069);
- - activeChar.broadcastUserInfo();
- -
- - initCountdown(activeChar, 5);
- - ThreadPoolManager.getInstance().scheduleAi(new Runnable()
- - {
- - @Override
- - public void run()
- - {
- - activeChar.setTryDressMeEnabled(false);
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.setDressMeEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- -
- - }, 5 * 1000);
- - }
- -
- - if (command.equals("BlackZaken"))
- - {
- - if (!activeChar.isVip())
- - {
- - activeChar.sendMessage("You need to be a VIP member to access skins.");
- - return false;
- - }
- -
- - if (activeChar.isTryDressMeEnabled())
- - {
- - activeChar.sendMessage("You are already trying a new skin.");
- - return false;
- - }
- -
- - if (activeChar.getDressMeData() == null)
- - {
- - DressMeData dmd = new DressMeData();
- - activeChar.setDressMeData(dmd);
- - }
- -
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.setDressMeEnabled(true);
- -
- - activeChar.getDressMeData().setHairId(45070);
- - activeChar.getDressMeData().setChestId(45069);
- - activeChar.broadcastUserInfo();
- - }
- -
- - //Disables
- - if (command.equals("disable_Helm"))
- - {
- - if (activeChar.isDressMeHelmEnabled())
- - {
- - activeChar.setDressMeHelmEnabled(false);
- - activeChar.broadcastUserInfo();
- - }
- - else
- - {
- - activeChar.setDressMeHelmEnabled(true);
- - activeChar.broadcastUserInfo();
- - }
- - }
- - return true;
- - }
- + public boolean useVoicedCommand(final String command, final L2PcInstance activeChar, final String target) {
- + if (command.equals("skins")) {
- + showSkinPanel(activeChar);
- + }
- + if (command.equals("trySkin_Archer")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50000);
- + activeChar.getDressMeData().setHairId(50001);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Archer")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50000);
- + activeChar.getDressMeData().setHairId(50001);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_GreenArcher")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50002);
- + activeChar.getDressMeData().setHairId(50003);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("GreenArcher")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50002);
- + activeChar.getDressMeData().setHairId(50003);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_LightAssassin")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50004);
- + activeChar.getDressMeData().setHairId(50005);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("LightAssassin")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50004);
- + activeChar.getDressMeData().setHairId(50005);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_DarkAssassin")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50006);
- + activeChar.getDressMeData().setHairId(50007);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("DarkAssassin")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50006);
- + activeChar.getDressMeData().setHairId(50007);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_RedMusketeer")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50008);
- + activeChar.getDressMeData().setHairId(50009);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("RedMusketeer")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50008);
- + activeChar.getDressMeData().setHairId(50009);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Muskeeter")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50010);
- + activeChar.getDressMeData().setHairId(50011);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Muskeeter")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50010);
- + activeChar.getDressMeData().setHairId(50011);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Wizard")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50012);
- + activeChar.getDressMeData().setHairId(50013);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Wizard")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50012);
- + activeChar.getDressMeData().setHairId(50013);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Warrior")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50014);
- + activeChar.getDressMeData().setHairId(50015);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Warrior")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50014);
- + activeChar.getDressMeData().setHairId(50015);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Cat")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50016);
- + activeChar.getDressMeData().setHairId(50017);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Cat")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50016);
- + activeChar.getDressMeData().setHairId(50017);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_King")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50018);
- + activeChar.getDressMeData().setHairId(50019);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("King")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50018);
- + activeChar.getDressMeData().setHairId(50019);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_WhiteKing")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50020);
- + activeChar.getDressMeData().setHairId(50021);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("WhiteKing")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50020);
- + activeChar.getDressMeData().setHairId(50021);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Valkyri")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50022);
- + activeChar.getDressMeData().setHairId(50023);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Valkyri")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50022);
- + activeChar.getDressMeData().setHairId(50023);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Anakim")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50024);
- + activeChar.getDressMeData().setHairId(50025);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Anakim")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50024);
- + activeChar.getDressMeData().setHairId(50025);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Pirate")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50026);
- + activeChar.getDressMeData().setHairId(50027);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Pirate")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50026);
- + activeChar.getDressMeData().setHairId(50027);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_PirateBlue")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50028);
- + activeChar.getDressMeData().setHairId(50029);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("PirateBlue")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50028);
- + activeChar.getDressMeData().setHairId(50029);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Ninja")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50030);
- + activeChar.getDressMeData().setHairId(50031);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Ninja")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50030);
- + activeChar.getDressMeData().setHairId(50031);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Samurai")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50032);
- + activeChar.getDressMeData().setHairId(50033);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Samurai")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50032);
- + activeChar.getDressMeData().setHairId(50033);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_DarkWizard")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50034);
- + activeChar.getDressMeData().setHairId(50035);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("DarkWizard")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50034);
- + activeChar.getDressMeData().setHairId(50035);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Vampire")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50036);
- + activeChar.getDressMeData().setHairId(50037);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Vampire")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50036);
- + activeChar.getDressMeData().setHairId(50037);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Beleth")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50038);
- + activeChar.getDressMeData().setHairId(50039);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Beleth")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50038);
- + activeChar.getDressMeData().setHairId(50039);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Cyborg")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50040);
- + activeChar.getDressMeData().setHairId(50041);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Cyborg")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50040);
- + activeChar.getDressMeData().setHairId(50041);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Cowboy")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50042);
- + activeChar.getDressMeData().setHairId(45043);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Cowboy")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50042);
- + activeChar.getDressMeData().setHairId(50043);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Barbarian")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50044);
- + activeChar.getDressMeData().setHairId(50045);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Barbarian")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50044);
- + activeChar.getDressMeData().setHairId(50050);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Dragon")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50046);
- + activeChar.getDressMeData().setHairId(50047);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Dragon")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50046);
- + activeChar.getDressMeData().setHairId(50047);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_WhiteKnight")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50048);
- + activeChar.getDressMeData().setHairId(50049);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("WhiteKnight")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50048);
- + activeChar.getDressMeData().setHairId(50049);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_RedSanta")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50050);
- + activeChar.getDressMeData().setHairId(50051);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("RedSanta")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50050);
- + activeChar.getDressMeData().setHairId(50051);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_BlueSanta")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50052);
- + activeChar.getDressMeData().setHairId(50053);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("BlueSanta")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50052);
- + activeChar.getDressMeData().setHairId(50053);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_DarkKnight")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50054);
- + activeChar.getDressMeData().setHairId(50055);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("DarkKnight")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50054);
- + activeChar.getDressMeData().setHairId(50055);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Healer")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50056);
- + activeChar.getDressMeData().setHairId(50057);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Healer")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50056);
- + activeChar.getDressMeData().setHairId(50057);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Lilith")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50058);
- + activeChar.getDressMeData().setHairId(50059);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Lilith")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(50058);
- + activeChar.getDressMeData().setHairId(50059);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("trySkin_Wedding")) {
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (!activeChar.isInsideZone(ZoneId.TOWN) || !activeChar.isInsideZone(ZoneId.PEACE)) {
- + activeChar.sendMessage("This command can only be used on peace area.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setTryDressMeEnabled(true);
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(6408);
- + activeChar.getDressMeData().setHairId(6842);
- + activeChar.broadcastUserInfo();
- + initCountdown(activeChar, 5);
- + ThreadPoolManager.getInstance().scheduleAi(new Runnable() {
- + @Override
- + public void run() {
- + activeChar.setTryDressMeEnabled(false);
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.setDressMeEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + }, 5000L);
- + }
- + if (command.equals("Wedding")) {
- + if (!activeChar.isVip()) {
- + activeChar.sendMessage("You need to be a VIP member to access skins.");
- + return false;
- + }
- + if (activeChar.isTryDressMeEnabled()) {
- + activeChar.sendMessage("You are already trying a new skin.");
- + return false;
- + }
- + if (activeChar.getDressMeData() == null) {
- + final DressMeData dmd = new DressMeData();
- + activeChar.setDressMeData(dmd);
- + }
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.setDressMeEnabled(true);
- + activeChar.getDressMeData().setChestId(6408);
- + activeChar.getDressMeData().setHairId(6842);
- + activeChar.broadcastUserInfo();
- + }
- + if (command.equals("disable_Helm")) {
- + if (activeChar.isDressMeHelmEnabled()) {
- + activeChar.setDressMeHelmEnabled(false);
- + activeChar.broadcastUserInfo();
- + }
- + else {
- + activeChar.setDressMeHelmEnabled(true);
- + activeChar.broadcastUserInfo();
- + }
- + }
- + return true;
- + }
- public static void showSkinPanel(L2PcInstance activeChar)
- {
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/instancemanager/ZoneManager.java b/aCis_gameserver/java/net/sf/l2j/gameserver/instancemanager/ZoneManager.java
- index c7e46aa..19beeb3 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/instancemanager/ZoneManager.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/instancemanager/ZoneManager.java
- @@ -39,6 +39,7 @@
- import net.sf.l2j.gameserver.model.zone.type.L2AutoPvpZone;
- import net.sf.l2j.gameserver.model.zone.type.L2ChaoticFreeZone;
- import net.sf.l2j.gameserver.model.zone.type.L2ChaoticSelfZone;
- +import net.sf.l2j.gameserver.model.zone.type.L2FarmZone;
- import net.sf.l2j.gameserver.model.zone.type.L2NoZergZone;
- import net.sf.l2j.gameserver.model.zone.type.L2OlympiadStadiumZone;
- import net.sf.l2j.gameserver.model.zone.type.L2PartyFarmZone;
- @@ -536,6 +537,20 @@
- return null;
- }
- + public final static L2FarmZone getFarm(L2Character character)
- + {
- + if (character == null)
- + return null;
- +
- + for (L2ZoneType temp : ZoneManager.getInstance().getZones(character.getX(), character.getY(), character.getZ()))
- + {
- + if (temp instanceof L2FarmZone && temp.isCharacterInZone(character))
- + return ((L2FarmZone) temp);
- + }
- +
- + return null;
- + }
- +
- public final static L2PartyFarmZone getParty(L2Character character)
- {
- if (character == null)
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
- index ccd60ec..256db52 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
- @@ -14401,4 +14401,26 @@
- {
- _applyAugment = item;
- }
- +
- + private boolean _autogb;
- + public void setAutoGB(boolean comm)
- + {
- + _autogb = comm;
- + }
- +
- + public boolean isAutoGB()
- + {
- + return _autogb;
- + }
- +
- + private String _html_save = "";
- + public final String getHtmlSave()
- + {
- + return _html_save;
- + }
- +
- + public final void setHtmlSave(String value)
- + {
- + _html_save = value;
- + }
- }
- \ No newline at end of file
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/entity/events/partyzone/PartyZoneReward.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/entity/events/partyzone/PartyZoneReward.java
- index a47eb99..c7ae8da 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/entity/events/partyzone/PartyZoneReward.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/entity/events/partyzone/PartyZoneReward.java
- @@ -9,7 +9,7 @@
- import net.sf.l2j.gameserver.model.actor.L2Npc;
- import net.sf.l2j.gameserver.model.actor.L2Playable;
- import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- -import net.sf.l2j.gameserver.model.holder.RewardHolder;
- +import net.sf.l2j.gameserver.model.holder.RewardHolderNew;
- import net.sf.l2j.util.Rnd;
- public class PartyZoneReward
- @@ -126,28 +126,29 @@
- public static void RandomReward(L2PcInstance player)
- {
- - for (RewardHolder reward : Config.PARTY_ZONE_REWARDS)
- + for (RewardHolderNew rewardNew : Config.PARTY_ZONE_REWARDS)
- {
- - if (Rnd.get(100) <= reward.getRewardChance())
- + if (Rnd.get(100) <= rewardNew.getRewardChance())
- {
- if (player.isVip())
- - player.addItem("Random Reward", reward.getRewardId(), reward.getRewardCount() * Config.VIP_DROP_RATE, player, true);
- + player.addItem("Random Reward", rewardNew.getRewardId(), Rnd.get(rewardNew.getRewardMin(), rewardNew.getRewardMax()) * Config.VIP_DROP_RATE, player, true);
- else
- - player.addItem("Random Reward", reward.getRewardId(), reward.getRewardCount(), player, true);
- + //player.addItem("Random Reward", reward.getRewardId(), reward.getRewardCount(), player, true);
- + player.addItem("Random Reward", rewardNew.getRewardId(), Rnd.get(rewardNew.getRewardMin(), rewardNew.getRewardMax()), player, true);
- }
- }
- }
- public static void RandomRewardEvent(L2PcInstance player)
- {
- - for (RewardHolder reward : Config.PARTY_ZONE_EVENT_REWARDS)
- + for (RewardHolderNew rewardNew : Config.PARTY_ZONE_EVENT_REWARDS)
- {
- - if (Rnd.get(100) <= reward.getRewardChance())
- + if (Rnd.get(100) <= rewardNew.getRewardChance())
- {
- if (player.isVip())
- - player.addItem("Random Reward", reward.getRewardId(), reward.getRewardCount() * Config.VIP_DROP_RATE, player, true);
- + player.addItem("Random Reward", rewardNew.getRewardId(), Rnd.get(rewardNew.getRewardMin(), rewardNew.getRewardMax()) * Config.VIP_DROP_RATE, player, true);
- else
- - player.addItem("Random Reward", reward.getRewardId(), reward.getRewardCount(), player, true);
- + player.addItem("Random Reward", rewardNew.getRewardId(), Rnd.get(rewardNew.getRewardMin(), rewardNew.getRewardMax()), player, true);
- }
- }
- }
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/holder/RewardHolderNew.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/holder/RewardHolderNew.java
- new file mode 100644
- index 0000000..e377a1d
- --- /dev/null
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/holder/RewardHolderNew.java
- @@ -0,0 +1,81 @@
- +package net.sf.l2j.gameserver.model.holder;
- +
- +/**
- + *
- + * @author TioPatinhaS
- + *
- + */
- +public class RewardHolderNew
- + {
- + private int _id;
- + private int _min;
- + private int _max;
- + private int _chance;
- +
- + /**
- + * @param rewardId
- + * @param rewardMin
- + * @param rewardMax
- + */
- + public RewardHolderNew(int rewardId, int rewardMin, int rewardMax)
- + {
- + _id = rewardId;
- + _min = rewardMin;
- + _max = rewardMax;
- + _chance = 100;
- + }
- +
- + /**
- + * @param rewardId
- + * @param rewardMin
- + * @param rewardMax
- + * @param rewardChance
- + */
- + public RewardHolderNew(int rewardId, int rewardMin, int rewardMax, int rewardChance)
- + {
- + _id = rewardId;
- + _min = rewardMin;
- + _max = rewardMax;
- + _chance = rewardChance;
- + }
- +
- + public int getRewardId()
- + {
- + return _id;
- + }
- +
- + public int getRewardMin()
- + {
- + return _min;
- + }
- +
- + public int getRewardMax()
- + {
- + return _max;
- + }
- +
- + public int getRewardChance()
- + {
- + return _chance;
- + }
- +
- + public void setId(int id)
- + {
- + _id = id;
- + }
- +
- + public void setMin(int min)
- + {
- + _min = min;
- + }
- +
- + public void setMax(int max)
- + {
- + _max = max;
- + }
- +
- + public void setChance(int chance)
- + {
- + _chance = chance;
- + }
- +}
- \ No newline at end of file
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/L2FarmZone.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/L2FarmZone.java
- new file mode 100644
- index 0000000..6c0cc11
- --- /dev/null
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/zone/type/L2FarmZone.java
- @@ -0,0 +1,139 @@
- +package net.sf.l2j.gameserver.model.zone.type;
- +
- +import java.util.ArrayList;
- +import java.util.List;
- +
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.ThreadPoolManager;
- +import net.sf.l2j.gameserver.datatables.MapRegionTable;
- +import net.sf.l2j.gameserver.instancemanager.protect.LimitHwidZone;
- +import net.sf.l2j.gameserver.model.actor.L2Character;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.model.zone.L2SpawnZone;
- +import net.sf.l2j.gameserver.model.zone.ZoneId;
- +import net.sf.l2j.gameserver.taskmanager.PvpFlagTaskManager;
- +
- +/**
- + *
- + * @author TioPatinhaS
- + *
- + */
- +
- +public class L2FarmZone extends L2SpawnZone
- +{
- + private boolean _checkClasses;
- + private static List<String> _classes = new ArrayList<>();
- +
- + public L2FarmZone(int id)
- + {
- + super(id);
- + _checkClasses = false;
- + }
- +
- + @Override
- + public void setParameter(String name, String value)
- + {
- + if (name.equals("checkClasses"))
- + _checkClasses = Boolean.parseBoolean(value);
- + else if (name.equals("Classes"))
- + {
- + String[] propertySplit = value.split(",");
- + for (String i : propertySplit)
- + _classes.add(i);
- + }
- + else
- + {
- + super.setParameter(name, value);
- + }
- + }
- +
- + @Override
- + protected void onEnter(L2Character character)
- + {
- + character.setInsideZone(ZoneId.COLOR_AREA, true);
- + character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
- + character.setInsideZone(ZoneId.NO_RESTART, true);
- +
- + character.sendMessage("You have entered the Farm Zone.");
- +
- + if (character instanceof L2PcInstance)
- + {
- + final L2PcInstance activeChar = (L2PcInstance) character;
- +
- + if (_checkClasses)
- + {
- + if (_classes != null && _classes.contains(""+ activeChar.getClassId().getId()))
- + {
- + activeChar.teleToLocation(83597, 147888, -3405, 0);
- + activeChar.sendMessage("Your class is not allowed in the Farm zone.");
- + return;
- + }
- + }
- +
- + activeChar.updatePvPStatus();
- +
- + if (Config.LIMIT_HWID_ON_AREA && LimitHwidZone.getInstance().checkCount(activeChar))
- + {
- + ThreadPoolManager.getInstance().scheduleGeneral(new KickPlayer(activeChar), 1000);
- + activeChar.sendMessage("Max " + Config.MAX_BOX_ON_AREA + " box per hwid in this Zone!");
- + }
- + }
- + }
- +
- + private static final class KickPlayer implements Runnable
- + {
- + private L2PcInstance _player;
- +
- + public KickPlayer(L2PcInstance player)
- + {
- + _player = player;
- + }
- +
- + public void run()
- + {
- + if (_player != null)
- + {
- + _player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
- + _player = null;
- + }
- + }
- + }
- +
- + @Override
- + protected void onExit(L2Character character)
- + {
- + character.setInsideZone(ZoneId.COLOR_AREA, false);
- + character.setInsideZone(ZoneId.NO_SUMMON_FRIEND, false);
- + character.setInsideZone(ZoneId.NO_RESTART, false);
- +
- + character.sendMessage("You have left the Farm Zone.");
- +
- + if (character instanceof L2PcInstance)
- + {
- + final L2PcInstance activeChar = (L2PcInstance) character;
- +
- + PvpFlagTaskManager.getInstance().add(activeChar, Config.PVP_NORMAL_TIME);
- +
- + // Set pvp flag
- + if (activeChar.getPvpFlag() == 0)
- + activeChar.updatePvPFlag(1);
- +
- + activeChar.broadcastUserInfo();
- +
- + if (Config.LIMIT_HWID_ON_AREA)
- + LimitHwidZone.getInstance().removeHwidCount(activeChar);
- + }
- + }
- +
- + @Override
- + public void onDieInside(L2Character character)
- + {
- +
- + }
- +
- + @Override
- + public void onReviveInside(L2Character character)
- + {
- +
- + }
- +}
- \ No newline at end of file
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
- index 74c777d..d9a4ebf 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
- @@ -122,15 +122,9 @@
- }
- }
- }
- -
- - /*
- - if (activeChar.isGM())
- - {
- - activeChar.sendPacket(new CreatureSay(0, Say2.PARTY, "Item Info", "ID: " + item.getItemId() + " | Name: " + item.getItemName()));
- - activeChar.sendPacket(ActionFailed.STATIC_PACKET);
- - return;
- - }
- - */
- +
- + if (activeChar.isGM())
- + activeChar.sendMessage(item.getItem().getName() + " , ID: " + item.getItem().getItemId());
- if (activeChar.isFishing() && item.getItem().getDefaultAction() != ActionType.fishingshot)
- {
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/NpcHtmlMessage.java b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/NpcHtmlMessage.java
- index 62291e8..69e56cd 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/NpcHtmlMessage.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/NpcHtmlMessage.java
- @@ -35,6 +35,7 @@
- private final int _npcObjId;
- private String _html;
- + private String _file;
- private int _itemId = 0;
- private boolean _validate = true;
- @@ -53,6 +54,12 @@
- if (activeChar == null)
- return;
- + if (activeChar.isGM() && _file != null)
- + activeChar.sendMessage("Html File: " + _file);
- +
- + if (_file != null)
- + activeChar.setHtmlSave(_file);
- +
- activeChar.clearBypass();
- for (int i = 0; i < _html.length(); i++)
- {
- @@ -131,6 +138,11 @@
- public void setFile(String filename)
- {
- + _file = filename;
- +
- + if (_file.startsWith("data/html/"))
- + _file = _file.replace("data/html/", "");
- +
- setHtml(HtmCache.getInstance().getHtmForce(filename));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement