Guest User

Untitled

a guest
Jun 7th, 2020
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.97 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. # L2jFrozen Project - www.l2jfrozen.com
  3. Index: java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  4. ===================================================================
  5. --- java/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java (revision 683)
  6. +++ java/head-src/com/l2jfrozen/gameserver/network/serverpackets/UserInfo.java (working copy)
  7. @@ -102,43 +102,82 @@
  8.  
  9. writeD(_cha.getActiveWeaponItem() != null ? 40 : 20); // 20 no weapon, 40 weapon equipped
  10.  
  11. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_UNDER));
  12. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));
  13. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR));
  14. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_NECK));
  15. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RFINGER));
  16. - writeD(_cha.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LFINGER));
  17. + if (!_activeChar.isDressMeEnabled())
  18. + {
  19. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_DHAIR));
  20. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));
  21. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR));
  22. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_NECK));
  23. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RFINGER));
  24. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LFINGER));
  25. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HEAD));
  26. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND));
  27. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LHAND));
  28. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES));
  29. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST));
  30. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS));
  31. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET));
  32. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_BACK));
  33. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND));
  34. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIR));
  35. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FACE));
  36. +
  37. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR));
  38. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_REAR));
  39. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEAR));
  40. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_NECK));
  41. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RFINGER));
  42. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LFINGER));
  43. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  44. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  45. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  46. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES));
  47. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST));
  48. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS));
  49. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET));
  50. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  51. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  52. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  53. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  54. + }
  55. + else
  56. + {
  57. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_DHAIR));
  58. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));
  59. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR));
  60. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_NECK));
  61. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RFINGER));
  62. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LFINGER));
  63. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HEAD));
  64. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  65. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LHAND));
  66. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  67. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  68. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  69. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  70. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_BACK));
  71. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  72. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIR));
  73. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FACE));
  74. +
  75. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_DHAIR));
  76. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_REAR));
  77. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEAR));
  78. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_NECK));
  79. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RFINGER));
  80. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LFINGER));
  81. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  82. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  83. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  84. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  85. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  86. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  87. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  88. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  89. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  90. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  91. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  92. + }
  93. writeH(0x00);
  94. writeH(0x00);
  95. writeH(0x00);
  96. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin14.java
  97. ===================================================================
  98. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin14.java (nonexistent)
  99. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin14.java (working copy)
  100. @@ -0,0 +1,52 @@
  101. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  102. +
  103. +import com.l2jfrozen.Config;
  104. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  105. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  106. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  107. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  108. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  109. +
  110. +public class skin1 implements IItemHandler
  111. +{
  112. + @Override
  113. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  114. + {
  115. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  116. + {
  117. + if(!(playable instanceof L2PcInstance))
  118. + return;
  119. + L2PcInstance activeChar = (L2PcInstance)playable;
  120. +
  121. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1);
  122. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1);
  123. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1);
  124. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1);
  125. +
  126. + if (activeChar.isDressMeEnabled())
  127. + {
  128. + activeChar.setDressMeEnabled(false);
  129. + activeChar.broadcastUserInfo();
  130. + activeChar.sendMessage("You have disabled skin.");
  131. + }
  132. + else
  133. + {
  134. + activeChar.setDressMeEnabled(true);
  135. + activeChar.broadcastUserInfo();
  136. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME1 + " skin.");
  137. + }
  138. + }
  139. + else
  140. + playable.sendMessage("Sorry, admin has disabled skins.");
  141. + }
  142. +
  143. + @Override
  144. + public int[] getItemIds()
  145. + {
  146. + return ITEM_IDS;
  147. + }
  148. +
  149. + private static final int ITEM_IDS[] = {
  150. + Config.SKIN_ITEM_1
  151. + };
  152. +}
  153. \ No newline at end of file
  154. Index: java/head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/DressMe.java
  155. ===================================================================
  156. --- java/head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/DressMe.java (nonexistent)
  157. +++ java/head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/DressMe.java (working copy)
  158. @@ -0,0 +1,59 @@
  159. +package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
  160. +
  161. +import com.l2jfrozen.gameserver.datatables.sql.ItemTable;
  162. +import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
  163. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  164. +import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
  165. +
  166. +/**
  167. + * @author Anarchy
  168. + * @adaptacion Todos
  169. + *
  170. + */
  171. +public class DressMe implements IVoicedCommandHandler
  172. +{
  173. + private static final String[] VOICED_COMMANDS = { "dressme" };
  174. +
  175. +
  176. + @Override
  177. + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
  178. + {
  179. + if (command.equals("dressme"))
  180. + {
  181. + sendMainWindow(activeChar);
  182. + }
  183. +
  184. + return true;
  185. + }
  186. +
  187. + public static void sendMainWindow(L2PcInstance activeChar)
  188. + {
  189. + NpcHtmlMessage htm = new NpcHtmlMessage(0);
  190. + htm.setFile("./data/html/custom/dressme/main.htm");
  191. + htm.replace("%enabled%", activeChar.isDressMeEnabled() ? "enabled" : "disabled");
  192. + if (activeChar.getDressMeData() == null)
  193. + {
  194. + htm.replace("%chestinfo%", "You have no custom chest.");
  195. + htm.replace("%legsinfo%", "You have no custom legs.");
  196. + htm.replace("%bootsinfo%", "You have no custom boots.");
  197. + htm.replace("%glovesinfo%", "You have no custom gloves.");
  198. + htm.replace("%weapinfo%", "You have no custom weapon.");
  199. + }
  200. + else
  201. + {
  202. + htm.replace("%chestinfo%", activeChar.getDressMeData().getChestId() == 0 ? "You have no custom chest." : ItemTable.getInstance().getTemplate(activeChar.getDressMeData().getChestId()).getName());
  203. + htm.replace("%legsinfo%", activeChar.getDressMeData().getLegsId() == 0 ? "You have no custom legs." : ItemTable.getInstance().getTemplate(activeChar.getDressMeData().getLegsId()).getName());
  204. + htm.replace("%bootsinfo%", activeChar.getDressMeData().getBootsId() == 0 ? "You have no custom boots." : ItemTable.getInstance().getTemplate(activeChar.getDressMeData().getBootsId()).getName());
  205. + htm.replace("%glovesinfo%", activeChar.getDressMeData().getGlovesId() == 0 ? "You have no custom gloves." : ItemTable.getInstance().getTemplate(activeChar.getDressMeData().getGlovesId()).getName());
  206. + htm.replace("%weapinfo%", activeChar.getDressMeData().getWeapId() == 0 ? "You have no custom weapon." : ItemTable.getInstance().getTemplate(activeChar.getDressMeData().getWeapId()).getName());
  207. + }
  208. +
  209. + activeChar.sendPacket(htm);
  210. + }
  211. +
  212. + @Override
  213. + public String[] getVoicedCommandList()
  214. + {
  215. + return VOICED_COMMANDS;
  216. + }
  217. +}
  218. \ No newline at end of file
  219. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin12.java
  220. ===================================================================
  221. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin12.java (nonexistent)
  222. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin12.java (working copy)
  223. @@ -0,0 +1,52 @@
  224. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  225. +
  226. +import com.l2jfrozen.Config;
  227. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  228. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  229. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  230. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  231. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  232. +
  233. +public class skin12 implements IItemHandler
  234. +{
  235. + @Override
  236. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  237. + {
  238. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  239. + {
  240. + if(!(playable instanceof L2PcInstance))
  241. + return;
  242. + L2PcInstance activeChar = (L2PcInstance)playable;
  243. +
  244. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME12);
  245. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME12);
  246. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME12);
  247. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME12);
  248. +
  249. + if (activeChar.isDressMeEnabled())
  250. + {
  251. + activeChar.setDressMeEnabled(false);
  252. + activeChar.broadcastUserInfo();
  253. + activeChar.sendMessage("You have disabled skin.");
  254. + }
  255. + else
  256. + {
  257. + activeChar.setDressMeEnabled(true);
  258. + activeChar.broadcastUserInfo();
  259. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME12 + " skin.");
  260. + }
  261. + }
  262. + else
  263. + playable.sendMessage("Sorry, admin has disabled skins.");
  264. + }
  265. +
  266. + @Override
  267. + public int[] getItemIds()
  268. + {
  269. + return ITEM_IDS;
  270. + }
  271. +
  272. + private static final int ITEM_IDS[] = {
  273. + Config.SKIN_ITEM_12
  274. + };
  275. +}
  276. \ No newline at end of file
  277. Index: java/head-src/com/l2jfrozen/Config.java
  278. ===================================================================
  279. --- java/head-src/com/l2jfrozen/Config.java (revision 683)
  280. +++ java/head-src/com/l2jfrozen/Config.java (working copy)
  281. @@ -764,6 +764,45 @@
  282. public static boolean OFFLINE_SET_NAME_COLOR;
  283. /** Color for offline mode */
  284. public static int OFFLINE_NAME_COLOR;
  285. +
  286. + public static boolean ALLOW_DRESS_ME_SYSTEM;
  287. + public static Map<String, Integer> DRESS_ME_CHESTS = new HashMap<>();
  288. + public static Map<String, Integer> DRESS_ME_LEGS = new HashMap<>();
  289. + public static Map<String, Integer> DRESS_ME_BOOTS = new HashMap<>();
  290. + public static Map<String, Integer> DRESS_ME_GLOVES = new HashMap<>();
  291. + public static Map<String, Integer> DRESS_ME_WEAPONS = new HashMap<>();
  292. + public static String SKIN_NAME1;
  293. + public static String SKIN_NAME2;
  294. + public static String SKIN_NAME3;
  295. + public static String SKIN_NAME4;
  296. + public static String SKIN_NAME5;
  297. + public static String SKIN_NAME6;
  298. + public static String SKIN_NAME7;
  299. + public static String SKIN_NAME8;
  300. + public static String SKIN_NAME9;
  301. + public static String SKIN_NAME10;
  302. + public static String SKIN_NAME11;
  303. + public static String SKIN_NAME12;
  304. + public static String SKIN_NAME13;
  305. + public static String SKIN_NAME14;
  306. + public static String SKIN_NAME15;
  307. + public static int SKIN_ITEM_1;
  308. + public static int SKIN_ITEM_2;
  309. + public static int SKIN_ITEM_3;
  310. + public static int SKIN_ITEM_4;
  311. + public static int SKIN_ITEM_5;
  312. + public static int SKIN_ITEM_6;
  313. + public static int SKIN_ITEM_7;
  314. + public static int SKIN_ITEM_8;
  315. + public static int SKIN_ITEM_9;
  316. + public static int SKIN_ITEM_10;
  317. + public static int SKIN_ITEM_11;
  318. + public static int SKIN_ITEM_12;
  319. + public static int SKIN_ITEM_13;
  320. + public static int SKIN_ITEM_14;
  321. + public static int SKIN_ITEM_15;
  322. +
  323. +
  324. /** Allow teleporting to towns that are under siege ? */
  325. public static boolean ALLOW_SIEGE_TELEPORT;
  326.  
  327. @@ -2089,11 +2128,78 @@
  328. FARM1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm1CustomMeesage", "You have been teleported to Farm Zone 1!");
  329. FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!");
  330. PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!");
  331. PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!");
  332.  
  333. + ALLOW_DRESS_ME_SYSTEM = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowDressMeSystem", "false"));
  334. + SKIN_NAME1 = String.valueOf(L2JFrozenSettings.getProperty("SkinName1", "SkinName"));
  335. + SKIN_NAME2 = String.valueOf(L2JFrozenSettings.getProperty("SkinName2", "SkinName"));
  336. + SKIN_NAME3 = String.valueOf(L2JFrozenSettings.getProperty("SkinName3", "SkinName"));
  337. + SKIN_NAME4 = String.valueOf(L2JFrozenSettings.getProperty("SkinName4", "SkinName"));
  338. + SKIN_NAME5 = String.valueOf(L2JFrozenSettings.getProperty("SkinName5", "SkinName"));
  339. + SKIN_NAME6 = String.valueOf(L2JFrozenSettings.getProperty("SkinName6", "SkinName"));
  340. + SKIN_NAME7 = String.valueOf(L2JFrozenSettings.getProperty("SkinName7", "SkinName"));
  341. + SKIN_NAME8 = String.valueOf(L2JFrozenSettings.getProperty("SkinName8", "SkinName"));
  342. + SKIN_NAME9 = String.valueOf(L2JFrozenSettings.getProperty("SkinName9", "SkinName"));
  343. + SKIN_NAME10 = String.valueOf(L2JFrozenSettings.getProperty("SkinName10", "SkinName"));
  344. + SKIN_NAME11 = String.valueOf(L2JFrozenSettings.getProperty("SkinName11", "SkinName"));
  345. + SKIN_NAME12 = String.valueOf(L2JFrozenSettings.getProperty("SkinName12", "SkinName"));
  346. + SKIN_NAME13 = String.valueOf(L2JFrozenSettings.getProperty("SkinName13", "SkinName"));
  347. + SKIN_NAME14 = String.valueOf(L2JFrozenSettings.getProperty("SkinName14", "SkinName"));
  348. + SKIN_NAME15 = String.valueOf(L2JFrozenSettings.getProperty("SkinName15", "SkinName"));
  349. + SKIN_ITEM_1 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem1", "0"));
  350. + SKIN_ITEM_2 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem2", "0"));
  351. + SKIN_ITEM_3 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem3", "0"));
  352. + SKIN_ITEM_4 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem4", "0"));
  353. + SKIN_ITEM_5 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem5", "0"));
  354. + SKIN_ITEM_6 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem6", "0"));
  355. + SKIN_ITEM_7 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem7", "0"));
  356. + SKIN_ITEM_8 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem8", "0"));
  357. + SKIN_ITEM_9 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem9", "0"));
  358. + SKIN_ITEM_10 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem10", "0"));
  359. + SKIN_ITEM_11 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem11", "0"));
  360. + SKIN_ITEM_12 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem12", "0"));
  361. + SKIN_ITEM_13 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem13", "0"));
  362. + SKIN_ITEM_14 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem14", "0"));
  363. + SKIN_ITEM_15 = Integer.parseInt(L2JFrozenSettings.getProperty("SkinItem15", "0"));
  364. + String temp = L2JFrozenSettings.getProperty("DressMeChests", "");
  365. + String[] temp2 = temp.split(";");
  366. + for (String s : temp2)
  367. + {
  368. + String[] t = s.split(",");
  369. + DRESS_ME_CHESTS.put(t[0], Integer.parseInt(t[1]));
  370. + }
  371. + temp = L2JFrozenSettings.getProperty("DressMeLegs", "");
  372. + temp2 = temp.split(";");
  373. + for (String s : temp2)
  374. + {
  375. + String[] t = s.split(",");
  376. + DRESS_ME_LEGS.put(t[0], Integer.parseInt(t[1]));
  377. + }
  378. + temp = L2JFrozenSettings.getProperty("DressMeBoots", "");
  379. + temp2 = temp.split(";");
  380. + for (String s : temp2)
  381. + {
  382. + String[] t = s.split(",");
  383. + DRESS_ME_BOOTS.put(t[0], Integer.parseInt(t[1]));
  384. + }
  385. + temp = L2JFrozenSettings.getProperty("DressMeGloves", "");
  386. + temp2 = temp.split(";");
  387. + for (String s : temp2)
  388. + {
  389. + String[] t = s.split(",");
  390. + DRESS_ME_GLOVES.put(t[0], Integer.parseInt(t[1]));
  391. + }
  392. + temp = L2JFrozenSettings.getProperty("DressMeWeapons", "");
  393. + temp2 = temp.split(";");
  394. + for (String s : temp2)
  395. + {
  396. + String[] t = s.split(",");
  397. + DRESS_ME_WEAPONS.put(t[0], Integer.parseInt(t[1]));
  398. + }
  399. +
  400. ENCHANT_PROTECTOR = Boolean.parseBoolean(L2JFrozenSettings.getProperty("EnchantProtector", "true"));
  401. }
  402. catch (final Exception e)
  403. {
  404. e.printStackTrace();
  405. throw new Error("Failed to Load " + L2JFROZEN + " File.");
  406. Index: java/head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java
  407. ===================================================================
  408. --- java/head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (revision 683)
  409. +++ java/head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java (working copy)
  410. @@ -23,6 +23,7 @@
  411. import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.TvTCmd;
  412. import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.VersionCmd;
  413. import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Voting;
  414. import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding;
  415. +import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.DressMe;
  416.  
  417. /**
  418. * This class ...
  419. @@ -51,8 +52,10 @@
  420. if (Config.OFFLINE_TRADE_ENABLE && Config.OFFLINE_COMMAND2)
  421. {
  422. registerVoicedCommandHandler(new OfflineShop());
  423. }
  424. + if (Config.ALLOW_DRESS_ME_SYSTEM)
  425. + registerVoicedCommandHandler(new DressMe());
  426. +
  427. LOGGER.info("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers.");
  428. }
  429.  
  430. Index: java/head-src/com/l2jfrozen/gameserver/handler/custom/DressMeData.java
  431. ===================================================================
  432. --- java/head-src/com/l2jfrozen/gameserver/handler/custom/DressMeData.java (nonexistent)
  433. +++ java/head-src/com/l2jfrozen/gameserver/handler/custom/DressMeData.java (working copy)
  434. @@ -0,0 +1,74 @@
  435. +package com.l2jfrozen.gameserver.handler.custom;
  436. +
  437. +/**
  438. + * @author Anarchy
  439. + * @adaptacion Todos
  440. + *
  441. + */
  442. +public class DressMeData
  443. +{
  444. + private int chestId,
  445. + legsId,
  446. + glovesId,
  447. + feetId,
  448. + weapId;
  449. +
  450. + public DressMeData()
  451. + {
  452. + chestId = 0;
  453. + legsId = 0;
  454. + glovesId = 0;
  455. + feetId = 0;
  456. + weapId = 0;
  457. + }
  458. +
  459. + public int getChestId()
  460. + {
  461. + return chestId;
  462. + }
  463. +
  464. + public int getLegsId()
  465. + {
  466. + return legsId;
  467. + }
  468. +
  469. + public int getGlovesId()
  470. + {
  471. + return glovesId;
  472. + }
  473. +
  474. + public int getBootsId()
  475. + {
  476. + return feetId;
  477. + }
  478. +
  479. + public int getWeapId()
  480. + {
  481. + return weapId;
  482. + }
  483. +
  484. + public void setChestId(int val)
  485. + {
  486. + chestId = val;
  487. + }
  488. +
  489. + public void setLegsId(int val)
  490. + {
  491. + legsId = val;
  492. + }
  493. +
  494. + public void setGlovesId(int val)
  495. + {
  496. + glovesId = val;
  497. + }
  498. +
  499. + public void setBootsId(int val)
  500. + {
  501. + feetId = val;
  502. + }
  503. +
  504. + public void setWeapId(int val)
  505. + {
  506. + weapId = val;
  507. + }
  508. +}
  509. \ No newline at end of file
  510. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin10.java
  511. ===================================================================
  512. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin10.java (nonexistent)
  513. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin10.java (working copy)
  514. +@@ -0,0 +1,52 @@
  515. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  516. +
  517. +import com.l2jfrozen.Config;
  518. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  519. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  520. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  521. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  522. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  523. +
  524. +public class skin10 implements IItemHandler
  525. {
  526. + @Override
  527. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  528. + {
  529. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  530. + {
  531. + if(!(playable instanceof L2PcInstance))
  532. + return;
  533. + L2PcInstance activeChar = (L2PcInstance)playable;
  534. +
  535. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME10);
  536. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME10);
  537. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME10);
  538. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME10);
  539. +
  540. + if (activeChar.isDressMeEnabled())
  541. + {
  542. + activeChar.setDressMeEnabled(false);
  543. + activeChar.broadcastUserInfo();
  544. + activeChar.sendMessage("You have disabled skin.");
  545. + }
  546. + else
  547. + {
  548. + activeChar.setDressMeEnabled(true);
  549. + activeChar.broadcastUserInfo();
  550. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME10 + " skin.");
  551. + }
  552. + }
  553. + else
  554. + playable.sendMessage("Sorry, admin has disabled skins.");
  555. + }
  556. +
  557. + @Override
  558. + public int[] getItemIds()
  559. + {
  560. + return ITEM_IDS;
  561. + }
  562. +
  563. + private static final int ITEM_IDS[] = {
  564. + Config.SKIN_ITEM_10
  565. + };
  566. +}
  567. \ No newline at end of file
  568. Index: java/net/sf/l2j/gameserver/handler/ItemHandler.java
  569. ===================================================================
  570. --- java/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java (revision 683)
  571. +++ java/head-src/com/l2jfrozen/gameserver/handler/ItemHandler.java (working copy)
  572. @@ -49,6 +49,21 @@
  573. import com.l2jfrozen.gameserver.handler.itemhandlers.SoulCrystals;
  574. import com.l2jfrozen.gameserver.handler.itemhandlers.SoulShots;
  575. import com.l2jfrozen.gameserver.handler.itemhandlers.SpecialXMas;
  576. import com.l2jfrozen.gameserver.handler.itemhandlers.SpiritShot;
  577. import com.l2jfrozen.gameserver.handler.itemhandlers.SummonItems;
  578. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin1;
  579. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin2;
  580. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin3;
  581. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin4;
  582. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin5;
  583. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin6;
  584. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin7;
  585. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin8;
  586. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin9;
  587. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin10;
  588. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin11;
  589. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin12;
  590. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin13;
  591. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin14;
  592. +import com.l2jfrozen.gameserver.handler.itemhandlers.skin15;
  593.  
  594. /**
  595. * This class manages handlers of items
  596. @@ -109,7 +124,23 @@
  597. registerItemHandler(new ExtractableItems());
  598. registerItemHandler(new SummonItems());
  599. registerItemHandler(new BeastSpice());
  600. + registerItemHandler(new skin1());
  601. + registerItemHandler(new skin2());
  602. + registerItemHandler(new skin3());
  603. + registerItemHandler(new skin4());
  604. + registerItemHandler(new skin5());
  605. + registerItemHandler(new skin6());
  606. + registerItemHandler(new skin7());
  607. + registerItemHandler(new skin8());
  608. + registerItemHandler(new skin9());
  609. + registerItemHandler(new skin10());
  610. + registerItemHandler(new skin11());
  611. + registerItemHandler(new skin12());
  612. + registerItemHandler(new skin13());
  613. + registerItemHandler(new skin14());
  614. + registerItemHandler(new skin15());
  615.  
  616. +
  617. _log.config("ItemHandler: Loaded " + _dataTable.size() + " handlers.");
  618. }
  619.  
  620. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin8.java
  621. ===================================================================
  622. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin8.java (nonexistent)
  623. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin8.java (working copy)
  624. @@ -0,0 +1,52 @@
  625. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  626. +
  627. +import com.l2jfrozen.Config;
  628. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  629. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  630. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  631. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  632. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  633. +
  634. +public class skin8 implements IItemHandler
  635. +{
  636. + @Override
  637. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  638. + {
  639. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  640. + {
  641. + if(!(playable instanceof L2PcInstance))
  642. + return;
  643. + L2PcInstance activeChar = (L2PcInstance)playable;
  644. +
  645. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME8);
  646. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME8);
  647. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME8);
  648. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME8);
  649. +
  650. + if (activeChar.isDressMeEnabled())
  651. + {
  652. + activeChar.setDressMeEnabled(false);
  653. + activeChar.broadcastUserInfo();
  654. + activeChar.sendMessage("You have disabled skin.");
  655. + }
  656. + else
  657. + {
  658. + activeChar.setDressMeEnabled(true);
  659. + activeChar.broadcastUserInfo();
  660. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME8 + " skin.");
  661. + }
  662. + }
  663. + else
  664. + playable.sendMessage("Sorry, admin has disabled skins.");
  665. + }
  666. +
  667. + @Override
  668. + public int[] getItemIds()
  669. + {
  670. + return ITEM_IDS;
  671. + }
  672. +
  673. + private static final int ITEM_IDS[] = {
  674. + Config.SKIN_ITEM_8
  675. + };
  676. +}
  677. \ No newline at end of file
  678. Index: java/head-src/com/l2jfrozen/model/actor/instance/L2PcInstance.java
  679. ===================================================================
  680. --- java/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 683)
  681. +++ java/head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy)
  682. @@ -202,6 +202,7 @@
  683. import com.l2jfrozen.gameserver.geo.GeoData;
  684. import com.l2jfrozen.gameserver.handler.IItemHandler;
  685. import com.l2jfrozen.gameserver.handler.ItemHandler;
  686. import com.l2jfrozen.gameserver.handler.admincommandhandlers.AdminEditChar;
  687. +import com.l2jfrozen.gameserver.handler.custom.DressMeData;
  688.  
  689. /**
  690. * This class represents all player characters in the world.
  691. @@ -367,6 +368,31 @@
  692.  
  693. /** The _cur weight penalty. */
  694. private int _curWeightPenalty = 0;
  695.  
  696. + private DressMeData _dressmedata = null;
  697. + private boolean _dressed = false;
  698. +
  699. +
  700. + public DressMeData getDressMeData()
  701. + {
  702. + return _dressmedata;
  703. + }
  704. +
  705. + public void setDressMeData(DressMeData val)
  706. + {
  707. + _dressmedata = val;
  708. + }
  709. +
  710. + public boolean isDressMeEnabled()
  711. + {
  712. + return _dressed;
  713. + }
  714. +
  715. + public void setDressMeEnabled(boolean val)
  716. + {
  717. + _dressed = val;
  718. + }
  719. +
  720. +
  721.  
  722. /** The _last compass zone. */
  723. private int _lastCompassZone; // the last compass zone update send to the client
  724.  
  725. Index: java/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java
  726. ===================================================================
  727. --- java/nhead-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (revision 683)
  728. +++ java/head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java (working copy)
  729. @@ -18,6 +18,7 @@
  730. import java.util.StringTokenizer;
  731.  
  732. import org.apache.log4j.Logger;
  733.  
  734. +import com.l2jfrozen.Config;
  735. import com.l2jfrozen.gameserver.ai.CtrlIntention;
  736. import com.l2jfrozen.gameserver.communitybbs.CommunityBoard;
  737. import com.l2jfrozen.gameserver.datatables.sql.AdminCommandAccessRights;
  738. @@ -35,6 +36,10 @@
  739. import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
  740. import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed;
  741. import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
  742. +import com.l2jfrozen.gameserver.datatables.sql.ItemTable;
  743. +import com.l2jfrozen.gameserver.handler.custom.DressMeData;
  744. +import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.DressMe;
  745. +import com.l2jfrozen.gameserver.model.Inventory;
  746.  
  747. /**
  748. * This class ...
  749. @@ -46,7 +51,7 @@
  750. private static Logger _log = Logger.getLogger(RequestBypassToServer.class.getName());
  751.  
  752. // S
  753. - private String _command;
  754. + public static String _command;
  755.  
  756. @Override
  757. protected void readImpl()
  758. @@ -95,6 +100,51 @@
  759.  
  760. ach.useAdminCommand(_command, activeChar);
  761. }
  762. + else if (_command.equals("bp_changedressmestatus"))
  763. + {
  764. + if (activeChar.isDressMeEnabled())
  765. + {
  766. + activeChar.setDressMeEnabled(false);
  767. + activeChar.broadcastUserInfo();
  768. + }
  769. + else
  770. + {
  771. + activeChar.setDressMeEnabled(true);
  772. + activeChar.broadcastUserInfo();
  773. + }
  774. +
  775. + DressMe.sendMainWindow(activeChar);
  776. + }
  777. + else if (_command.startsWith("bp_editWindow"))
  778. + {
  779. + String bp = _command.substring(14);
  780. + StringTokenizer st = new StringTokenizer(bp);
  781. +
  782. + sendEditWindow(activeChar, st.nextToken());
  783. + }
  784. + else if (_command.startsWith("bp_setpart"))
  785. + {
  786. + String bp = _command.substring(11);
  787. + StringTokenizer st = new StringTokenizer(bp);
  788. +
  789. + String part = st.nextToken();
  790. + String type = st.nextToken();
  791. +
  792. + setPart(activeChar, part, type);
  793. + }
  794. + else if (_command.startsWith("bp_gettarget"))
  795. + {
  796. + String bp = _command.substring(13);
  797. + StringTokenizer st = new StringTokenizer(bp);
  798. +
  799. + String part = st.nextToken();
  800. +
  801. + stealTarget(activeChar, part);
  802. + }
  803. + else if (_command.equals("bp_main"))
  804. + {
  805. + DressMe.sendMainWindow(activeChar);
  806. + }
  807. else if (_command.startsWith("voice "))
  808. {
  809. String text = _command.substring(5);
  810. @@ -249,6 +299,303 @@
  811. activeChar.sendPacket(html);
  812. }
  813.  
  814. + public void stealTarget(L2PcInstance p, String part)
  815. + {
  816. + if (p.getTarget() == null || !(p.getTarget() instanceof L2PcInstance))
  817. + {
  818. + p.sendMessage("Invalid target.");
  819. + return;
  820. + }
  821. +
  822. + L2PcInstance t = (L2PcInstance)p.getTarget();
  823. +
  824. + if (p.getDressMeData() == null)
  825. + {
  826. + DressMeData dmd = new DressMeData();
  827. + p.setDressMeData(dmd);
  828. + }
  829. +
  830. + boolean returnMain = false;
  831. +
  832. + switch (part)
  833. + {
  834. + case "chest":
  835. + {
  836. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null)
  837. + {
  838. + p.getDressMeData().setChestId(0);
  839. + }
  840. + else
  841. + {
  842. + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId());
  843. + }
  844. + break;
  845. + }
  846. + case "legs":
  847. + {
  848. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null)
  849. + {
  850. + p.getDressMeData().setLegsId(0);
  851. + }
  852. + else
  853. + {
  854. + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId());
  855. + }
  856. + break;
  857. + }
  858. + case "gloves":
  859. + {
  860. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null)
  861. + {
  862. + p.getDressMeData().setGlovesId(0);
  863. + }
  864. + else
  865. + {
  866. + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId());
  867. + }
  868. + break;
  869. + }
  870. + case "boots":
  871. + {
  872. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null)
  873. + {
  874. + p.getDressMeData().setBootsId(0);
  875. + }
  876. + else
  877. + {
  878. + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId());
  879. + }
  880. + break;
  881. + }
  882. + case "weap":
  883. + {
  884. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null)
  885. + {
  886. + p.getDressMeData().setWeapId(0);
  887. + }
  888. + else
  889. + {
  890. + p.getDressMeData().setWeapId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).getItemId());
  891. + }
  892. + break;
  893. + }
  894. + case "all":
  895. + {
  896. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null)
  897. + {
  898. + p.getDressMeData().setChestId(0);
  899. + }
  900. + else
  901. + {
  902. + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId());
  903. + }
  904. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null)
  905. + {
  906. + p.getDressMeData().setLegsId(0);
  907. + }
  908. + else
  909. + {
  910. + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId());
  911. + }
  912. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null)
  913. + {
  914. + p.getDressMeData().setGlovesId(0);
  915. + }
  916. + else
  917. + {
  918. + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId());
  919. + }
  920. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null)
  921. + {
  922. + p.getDressMeData().setBootsId(0);
  923. + }
  924. + else
  925. + {
  926. + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId());
  927. + }
  928. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null)
  929. + {
  930. + p.getDressMeData().setWeapId(0);
  931. + }
  932. + else
  933. + {
  934. + p.getDressMeData().setWeapId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).getItemId());
  935. + }
  936. + returnMain = true;
  937. + break;
  938. + }
  939. + }
  940. +
  941. + p.broadcastUserInfo();
  942. + if (!returnMain)
  943. + sendEditWindow(p, part);
  944. + else
  945. + DressMe.sendMainWindow(p);
  946. + }
  947. +
  948. + public static void setPart(L2PcInstance p, String part, String type)
  949. + {
  950. + if (p.getDressMeData() == null)
  951. + {
  952. + DressMeData dmd = new DressMeData();
  953. + p.setDressMeData(dmd);
  954. + }
  955. +
  956. + switch (part)
  957. + {
  958. + case "chest":
  959. + {
  960. + if (Config.DRESS_ME_CHESTS.keySet().contains(type))
  961. + {
  962. + p.getDressMeData().setChestId(Config.DRESS_ME_CHESTS.get(type));
  963. + }
  964. +
  965. + break;
  966. + }
  967. + case "legs":
  968. + {
  969. + if (Config.DRESS_ME_LEGS.keySet().contains(type))
  970. + {
  971. + p.getDressMeData().setLegsId(Config.DRESS_ME_LEGS.get(type));
  972. + }
  973. +
  974. + break;
  975. + }
  976. + case "gloves":
  977. + {
  978. + if (Config.DRESS_ME_GLOVES.keySet().contains(type))
  979. + {
  980. + p.getDressMeData().setGlovesId(Config.DRESS_ME_GLOVES.get(type));
  981. + }
  982. +
  983. + break;
  984. + }
  985. + case "boots":
  986. + {
  987. + if (Config.DRESS_ME_BOOTS.keySet().contains(type))
  988. + {
  989. + p.getDressMeData().setBootsId(Config.DRESS_ME_BOOTS.get(type));
  990. + }
  991. +
  992. + break;
  993. + }
  994. + case "weap":
  995. + {
  996. + if (Config.DRESS_ME_WEAPONS.keySet().contains(type))
  997. + {
  998. + p.getDressMeData().setWeapId(Config.DRESS_ME_WEAPONS.get(type));
  999. + }
  1000. +
  1001. + break;
  1002. + }
  1003. + }
  1004. +
  1005. + p.broadcastUserInfo();
  1006. +// sendEditWindow(p, part);
  1007. + }
  1008. +
  1009. + public static void sendEditWindow(L2PcInstance p, String part)
  1010. + {
  1011. + NpcHtmlMessage htm = new NpcHtmlMessage(0);
  1012. + htm.setFile("./data/html/custom/dressme/edit.htm");
  1013. + htm.replace("%part%", part);
  1014. + switch (part)
  1015. + {
  1016. + case "chest":
  1017. + {
  1018. + if (p.getDressMeData() == null)
  1019. + {
  1020. + htm.replace("%partinfo%", "You have no custom chest.");
  1021. + }
  1022. + else
  1023. + {
  1024. + htm.replace("%partinfo%", p.getDressMeData().getChestId() == 0 ? "You have no custom chest." : ItemTable.getInstance().getTemplate(p.getDressMeData().getChestId()).getName());
  1025. + }
  1026. + String temp = "";
  1027. + for (String s : Config.DRESS_ME_CHESTS.keySet())
  1028. + {
  1029. + temp += s+";";
  1030. + }
  1031. + htm.replace("%dropboxdata%", temp);
  1032. + break;
  1033. + }
  1034. + case "legs":
  1035. + {
  1036. + if (p.getDressMeData() == null)
  1037. + {
  1038. + htm.replace("%partinfo%", "You have no custom legs.");
  1039. + }
  1040. + else
  1041. + {
  1042. + htm.replace("%partinfo%", p.getDressMeData().getLegsId() == 0 ? "You have no custom legs." : ItemTable.getInstance().getTemplate(p.getDressMeData().getLegsId()).getName());
  1043. + }
  1044. + String temp = "";
  1045. + for (String s : Config.DRESS_ME_LEGS.keySet())
  1046. + {
  1047. + temp += s+";";
  1048. + }
  1049. + htm.replace("%dropboxdata%", temp);
  1050. + break;
  1051. + }
  1052. + case "gloves":
  1053. + {
  1054. + if (p.getDressMeData() == null)
  1055. + {
  1056. + htm.replace("%partinfo%", "You have no custom gloves.");
  1057. + }
  1058. + else
  1059. + {
  1060. + htm.replace("%partinfo%", p.getDressMeData().getGlovesId() == 0 ? "You have no custom gloves." : ItemTable.getInstance().getTemplate(p.getDressMeData().getGlovesId()).getName());
  1061. + }
  1062. + String temp = "";
  1063. + for (String s : Config.DRESS_ME_GLOVES.keySet())
  1064. + {
  1065. + temp += s+";";
  1066. + }
  1067. + htm.replace("%dropboxdata%", temp);
  1068. + break;
  1069. + }
  1070. + case "boots":
  1071. + {
  1072. + if (p.getDressMeData() == null)
  1073. + {
  1074. + htm.replace("%partinfo%", "You have no custom boots.");
  1075. + }
  1076. + else
  1077. + {
  1078. + htm.replace("%partinfo%", p.getDressMeData().getBootsId() == 0 ? "You have no custom boots." : ItemTable.getInstance().getTemplate(p.getDressMeData().getBootsId()).getName());
  1079. + }
  1080. + String temp = "";
  1081. + for (String s : Config.DRESS_ME_BOOTS.keySet())
  1082. + {
  1083. + temp += s+";";
  1084. + }
  1085. + htm.replace("%dropboxdata%", temp);
  1086. + break;
  1087. + }
  1088. + case "weap":
  1089. + {
  1090. + if (p.getDressMeData() == null)
  1091. + {
  1092. + htm.replace("%partinfo%", "You have no custom weapon.");
  1093. + }
  1094. + else
  1095. + {
  1096. + htm.replace("%partinfo%", p.getDressMeData().getWeapId() == 0 ? "You have no custom weapon." : ItemTable.getInstance().getTemplate(p.getDressMeData().getWeapId()).getName());
  1097. + }
  1098. + String temp = "";
  1099. + for (String s : Config.DRESS_ME_WEAPONS.keySet())
  1100. + {
  1101. + temp += s+";";
  1102. + }
  1103. + htm.replace("%dropboxdata%", temp);
  1104. + break;
  1105. + }
  1106. + }
  1107. +
  1108. + p.sendPacket(htm);
  1109. + }
  1110. +
  1111. /*
  1112. * (non-Javadoc)
  1113. * @see net.sf.l2j.gameserver.clientpackets.L2GameClientPacket#getType()
  1114. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin15.java
  1115. ===================================================================
  1116. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin15.java (nonexistent)
  1117. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin15.java (working copy)
  1118. @@ -0,0 +1,52 @@
  1119. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1120. +
  1121. +import com.l2jfrozen.Config;
  1122. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1123. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1124. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1125. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1126. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1127. +
  1128. +public class skin15 implements IItemHandler
  1129. +{
  1130. + @Override
  1131. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1132. + {
  1133. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1134. + {
  1135. + if(!(playable instanceof L2PcInstance))
  1136. + return;
  1137. + L2PcInstance activeChar = (L2PcInstance)playable;
  1138. +
  1139. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME15);
  1140. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME15);
  1141. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME15);
  1142. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME15);
  1143. +
  1144. + if (activeChar.isDressMeEnabled())
  1145. + {
  1146. + activeChar.setDressMeEnabled(false);
  1147. + activeChar.broadcastUserInfo();
  1148. + activeChar.sendMessage("You have disabled skin.");
  1149. + }
  1150. + else
  1151. + {
  1152. + activeChar.setDressMeEnabled(true);
  1153. + activeChar.broadcastUserInfo();
  1154. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME15 + " skin.");
  1155. + }
  1156. + }
  1157. + else
  1158. + playable.sendMessage("Sorry, admin has disabled skins.");
  1159. + }
  1160. +
  1161. + @Override
  1162. + public int[] getItemIds()
  1163. + {
  1164. + return ITEM_IDS;
  1165. + }
  1166. +
  1167. + private static final int ITEM_IDS[] = {
  1168. + Config.SKIN_ITEM_15
  1169. + };
  1170. +}
  1171. \ No newline at end of file
  1172. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin13.java
  1173. ===================================================================
  1174. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin13.java (nonexistent)
  1175. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin13.java (working copy)
  1176. @@ -0,0 +1,52 @@
  1177. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1178. +
  1179. +import com.l2jfrozen.Config;
  1180. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1181. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1182. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1183. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1184. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1185. +
  1186. +public class skin13 implements IItemHandler
  1187. +{
  1188. + @Override
  1189. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1190. + {
  1191. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1192. + {
  1193. + if(!(playable instanceof L2PcInstance))
  1194. + return;
  1195. + L2PcInstance activeChar = (L2PcInstance)playable;
  1196. +
  1197. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME13);
  1198. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME13);
  1199. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME13);
  1200. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME13);
  1201. +
  1202. + if (activeChar.isDressMeEnabled())
  1203. + {
  1204. + activeChar.setDressMeEnabled(false);
  1205. + activeChar.broadcastUserInfo();
  1206. + activeChar.sendMessage("You have disabled skin.");
  1207. + }
  1208. + else
  1209. + {
  1210. + activeChar.setDressMeEnabled(true);
  1211. + activeChar.broadcastUserInfo();
  1212. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME13 + " skin.");
  1213. + }
  1214. + }
  1215. + else
  1216. + playable.sendMessage("Sorry, admin has disabled skins.");
  1217. + }
  1218. +
  1219. + @Override
  1220. + public int[] getItemIds()
  1221. + {
  1222. + return ITEM_IDS;
  1223. + }
  1224. +
  1225. + private static final int ITEM_IDS[] = {
  1226. + Config.SKIN_ITEM_13
  1227. + };
  1228. +}
  1229. \ No newline at end of file
  1230. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin11.java
  1231. ===================================================================
  1232. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin11.java (nonexistent)
  1233. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin11.java (working copy)
  1234. @@ -0,0 +1,52 @@
  1235. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1236. +
  1237. +import com.l2jfrozen.Config;
  1238. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1239. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1240. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1241. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1242. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1243. +
  1244. +public class skin11 implements IItemHandler
  1245. +{
  1246. + @Override
  1247. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1248. + {
  1249. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1250. + {
  1251. + if(!(playable instanceof L2PcInstance))
  1252. + return;
  1253. + L2PcInstance activeChar = (L2PcInstance)playable;
  1254. +
  1255. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME11);
  1256. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME11);
  1257. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME11);
  1258. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME11);
  1259. +
  1260. + if (activeChar.isDressMeEnabled())
  1261. + {
  1262. + activeChar.setDressMeEnabled(false);
  1263. + activeChar.broadcastUserInfo();
  1264. + activeChar.sendMessage("You have disabled skin.");
  1265. + }
  1266. + else
  1267. + {
  1268. + activeChar.setDressMeEnabled(true);
  1269. + activeChar.broadcastUserInfo();
  1270. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME11 + " skin.");
  1271. + }
  1272. + }
  1273. + else
  1274. + playable.sendMessage("Sorry, admin has disabled skins.");
  1275. + }
  1276. +
  1277. + @Override
  1278. + public int[] getItemIds()
  1279. + {
  1280. + return ITEM_IDS;
  1281. + }
  1282. +
  1283. + private static final int ITEM_IDS[] = {
  1284. + Config.SKIN_ITEM_11
  1285. + };
  1286. +}
  1287. \ No newline at end of file
  1288. Index: java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin9.java
  1289. ===================================================================
  1290. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin9.java (nonexistent)
  1291. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin9.java (working copy)
  1292. @@ -0,0 +1,52 @@
  1293. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1294. +
  1295. +import com.l2jfrozen.Config;
  1296. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1297. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1298. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1299. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1300. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1301. +
  1302. +public class skin9 implements IItemHandler
  1303. +{
  1304. + @Override
  1305. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1306. + {
  1307. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1308. + {
  1309. + if(!(playable instanceof L2PcInstance))
  1310. + return;
  1311. + L2PcInstance activeChar = (L2PcInstance)playable;
  1312. +
  1313. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME9);
  1314. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME9);
  1315. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME9);
  1316. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME9);
  1317. +
  1318. + if (activeChar.isDressMeEnabled())
  1319. + {
  1320. + activeChar.setDressMeEnabled(false);
  1321. + activeChar.broadcastUserInfo();
  1322. + activeChar.sendMessage("You have disabled skin.");
  1323. + }
  1324. + else
  1325. + {
  1326. + activeChar.setDressMeEnabled(true);
  1327. + activeChar.broadcastUserInfo();
  1328. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME9 + " skin.");
  1329. + }
  1330. + }
  1331. + else
  1332. + playable.sendMessage("Sorry, admin has disabled skins.");
  1333. + }
  1334. +
  1335. + @Override
  1336. + public int[] getItemIds()
  1337. + {
  1338. + return ITEM_IDS;
  1339. + }
  1340. +
  1341. + private static final int ITEM_IDS[] = {
  1342. + Config.SKIN_ITEM_9
  1343. + };
  1344. +}
  1345. \ No newline at end of file
  1346. Index: java/config/Custom.properties
  1347. ===================================================================
  1348. --- java/config/functions/l2jfrozen.properties (revision 683)
  1349. +++ java/config/functions/l2jfrozen.properties (working copy)
  1350. @@ -331,4 +331,53 @@
  1351. OfflineSetNameColor = False
  1352.  
  1353. # Color of the name in offline mode (if OfflineSetNameColor = True)
  1354. -OfflineNameColor = 808080
  1355. \ No newline at end of file
  1356. +OfflineNameColor = 808080
  1357. +
  1358. +# -----------------------------------------
  1359. +# DressMe system -
  1360. +# -----------------------------------------
  1361. +#
  1362. +AllowDressMeSystem = False
  1363. +
  1364. +# DressMe values.
  1365. +# Skin name (Example: "Draconic")
  1366. +SkinName1 = Draconic
  1367. +SkinName2 = Imperial
  1368. +SkinName3 = Arcana
  1369. +SkinName4 = SkinName4
  1370. +SkinName5 = SkinName5
  1371. +SkinName6 = SkinName6
  1372. +SkinName7 = SkinName7
  1373. +SkinName8 = SkinName8
  1374. +SkinName9 = SkinName9
  1375. +SkinName10 = SkinName10
  1376. +SkinName11 = SkinName11
  1377. +SkinName12 = SkinName12
  1378. +SkinName13 = SkinName13
  1379. +SkinName14 = SkinName14
  1380. +SkinName15 = SkinName15
  1381. +
  1382. +# Skin item id (Example: "6673")
  1383. +SkinItem1 = 0
  1384. +SkinItem2 = 0
  1385. +SkinItem3 = 0
  1386. +SkinItem4 = 0
  1387. +SkinItem5 = 0
  1388. +SkinItem6 = 0
  1389. +SkinItem7 = 0
  1390. +SkinItem8 = 0
  1391. +SkinItem9 = 0
  1392. +SkinItem10 = 0
  1393. +SkinItem11 = 0
  1394. +SkinItem12 = 0
  1395. +SkinItem13 = 0
  1396. +SkinItem14 = 0
  1397. +SkinItem15 = 0
  1398. +
  1399. +# Note: It works like name,id;name,id
  1400. +# WARNING: No spaces on names, use _ instead of space.
  1401. +DressMeChests = Draconic,6379;Imperial,6373;Arcana,6383
  1402. +DressMeLegs = Imperial,6374
  1403. +DressMeBoots = Draconic,6381;Imperial,6376;Arcana,6385
  1404. +DressMeGloves = Draconic,6380;Imperial,6375;Arcana,6384
  1405. +DressMeWeapons = Draconic_Bow,7577;Shining_Bow,6594;Arcana_Mace,6608
  1406. \ No newline at end of file
  1407. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin7.java
  1408. ===================================================================
  1409. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin7.java (nonexistent)
  1410. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin7.java (working copy)
  1411. @@ -0,0 +1,52 @@
  1412. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1413. +
  1414. +import com.l2jfrozen.Config;
  1415. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1416. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1417. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1418. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1419. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1420. +
  1421. +public class skin7 implements IItemHandler
  1422. +{
  1423. + @Override
  1424. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1425. + {
  1426. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1427. + {
  1428. + if(!(playable instanceof L2PcInstance))
  1429. + return;
  1430. + L2PcInstance activeChar = (L2PcInstance)playable;
  1431. +
  1432. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME7);
  1433. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME7);
  1434. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME7);
  1435. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME7);
  1436. +
  1437. + if (activeChar.isDressMeEnabled())
  1438. + {
  1439. + activeChar.setDressMeEnabled(false);
  1440. + activeChar.broadcastUserInfo();
  1441. + activeChar.sendMessage("You have disabled skin.");
  1442. + }
  1443. + else
  1444. + {
  1445. + activeChar.setDressMeEnabled(true);
  1446. + activeChar.broadcastUserInfo();
  1447. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME7 + " skin.");
  1448. + }
  1449. + }
  1450. + else
  1451. + playable.sendMessage("Sorry, admin has disabled skins.");
  1452. + }
  1453. +
  1454. + @Override
  1455. + public int[] getItemIds()
  1456. + {
  1457. + return ITEM_IDS;
  1458. + }
  1459. +
  1460. + private static final int ITEM_IDS[] = {
  1461. + Config.SKIN_ITEM_7
  1462. + };
  1463. +}
  1464. \ No newline at end of file
  1465. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin6.java
  1466. ===================================================================
  1467. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin6.java (nonexistent)
  1468. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin6.java (working copy)
  1469. @@ -0,0 +1,52 @@
  1470. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1471. +
  1472. +import com.l2jfrozen.Config;
  1473. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1474. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1475. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1476. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1477. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1478. +
  1479. +public class skin6 implements IItemHandler
  1480. +{
  1481. + @Override
  1482. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1483. + {
  1484. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1485. + {
  1486. + if(!(playable instanceof L2PcInstance))
  1487. + return;
  1488. + L2PcInstance activeChar = (L2PcInstance)playable;
  1489. +
  1490. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME6);
  1491. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME6);
  1492. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME6);
  1493. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME6);
  1494. +
  1495. + if (activeChar.isDressMeEnabled())
  1496. + {
  1497. + activeChar.setDressMeEnabled(false);
  1498. + activeChar.broadcastUserInfo();
  1499. + activeChar.sendMessage("You have disabled skin.");
  1500. + }
  1501. + else
  1502. + {
  1503. + activeChar.setDressMeEnabled(true);
  1504. + activeChar.broadcastUserInfo();
  1505. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME6 + " skin.");
  1506. + }
  1507. + }
  1508. + else
  1509. + playable.sendMessage("Sorry, admin has disabled skins.");
  1510. + }
  1511. +
  1512. + @Override
  1513. + public int[] getItemIds()
  1514. + {
  1515. + return ITEM_IDS;
  1516. + }
  1517. +
  1518. + private static final int ITEM_IDS[] = {
  1519. + Config.SKIN_ITEM_6
  1520. + };
  1521. +}
  1522. \ No newline at end of file
  1523. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin5.java
  1524. ===================================================================
  1525. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin5.java (nonexistent)
  1526. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin5.java (working copy)
  1527. @@ -0,0 +1,52 @@
  1528. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1529. +
  1530. +import com.l2jfrozen.Config;
  1531. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1532. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1533. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1534. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1535. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1536. +
  1537. +public class skin5 implements IItemHandler
  1538. +{
  1539. + @Override
  1540. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1541. + {
  1542. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1543. + {
  1544. + if(!(playable instanceof L2PcInstance))
  1545. + return;
  1546. + L2PcInstance activeChar = (L2PcInstance)playable;
  1547. +
  1548. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME5);
  1549. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME5);
  1550. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME5);
  1551. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME5);
  1552. +
  1553. + if (activeChar.isDressMeEnabled())
  1554. + {
  1555. + activeChar.setDressMeEnabled(false);
  1556. + activeChar.broadcastUserInfo();
  1557. + activeChar.sendMessage("You have disabled skin.");
  1558. + }
  1559. + else
  1560. + {
  1561. + activeChar.setDressMeEnabled(true);
  1562. + activeChar.broadcastUserInfo();
  1563. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME5 + " skin.");
  1564. + }
  1565. + }
  1566. + else
  1567. + playable.sendMessage("Sorry, admin has disabled skins.");
  1568. + }
  1569. +
  1570. + @Override
  1571. + public int[] getItemIds()
  1572. + {
  1573. + return ITEM_IDS;
  1574. + }
  1575. +
  1576. + private static final int ITEM_IDS[] = {
  1577. + Config.SKIN_ITEM_5
  1578. + };
  1579. +}
  1580. \ No newline at end of file
  1581. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin4.java
  1582. ===================================================================
  1583. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin4.java (nonexistent)
  1584. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin4.java (working copy)
  1585. @@ -0,0 +1,52 @@
  1586. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1587. +
  1588. +import com.l2jfrozen.Config;
  1589. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1590. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1591. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1592. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1593. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1594. +
  1595. +public class skin4 implements IItemHandler
  1596. +{
  1597. + @Override
  1598. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1599. + {
  1600. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1601. + {
  1602. + if(!(playable instanceof L2PcInstance))
  1603. + return;
  1604. + L2PcInstance activeChar = (L2PcInstance)playable;
  1605. +
  1606. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME4);
  1607. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME4);
  1608. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME4);
  1609. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME4);
  1610. +
  1611. + if (activeChar.isDressMeEnabled())
  1612. + {
  1613. + activeChar.setDressMeEnabled(false);
  1614. + activeChar.broadcastUserInfo();
  1615. + activeChar.sendMessage("You have disabled skin.");
  1616. + }
  1617. + else
  1618. + {
  1619. + activeChar.setDressMeEnabled(true);
  1620. + activeChar.broadcastUserInfo();
  1621. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME4 + " skin.");
  1622. + }
  1623. + }
  1624. + else
  1625. + playable.sendMessage("Sorry, admin has disabled skins.");
  1626. + }
  1627. +
  1628. + @Override
  1629. + public int[] getItemIds()
  1630. + {
  1631. + return ITEM_IDS;
  1632. + }
  1633. +
  1634. + private static final int ITEM_IDS[] = {
  1635. + Config.SKIN_ITEM_4
  1636. + };
  1637. +}
  1638. \ No newline at end of file
  1639. Index: java/net/sf/l2j/gameserver/handler/custom/DressMeData.java
  1640. ===================================================================
  1641. --- java/head-src/com/l2jfrozen/gameserver/handler/custom/DressMeData.java (nonexistent)
  1642. +++ java/head-src/com/l2jfrozen/gameserver/handler/custom/DressMeData.java (working copy)
  1643. @@ -0,0 +1,74 @@
  1644. +package com.l2jfrozen.gameserver.handler.custom;
  1645. +
  1646. +/**
  1647. + * @author Anarchy
  1648. + * @adaptacion Todos
  1649. + *
  1650. + */
  1651. +public class DressMeData
  1652. +{
  1653. + private int chestId,
  1654. + legsId,
  1655. + glovesId,
  1656. + feetId,
  1657. + weapId;
  1658. +
  1659. + public DressMeData()
  1660. + {
  1661. + chestId = 0;
  1662. + legsId = 0;
  1663. + glovesId = 0;
  1664. + feetId = 0;
  1665. + weapId = 0;
  1666. + }
  1667. +
  1668. + public int getChestId()
  1669. + {
  1670. + return chestId;
  1671. + }
  1672. +
  1673. + public int getLegsId()
  1674. + {
  1675. + return legsId;
  1676. + }
  1677. +
  1678. + public int getGlovesId()
  1679. + {
  1680. + return glovesId;
  1681. + }
  1682. +
  1683. + public int getBootsId()
  1684. + {
  1685. + return feetId;
  1686. + }
  1687. +
  1688. + public int getWeapId()
  1689. + {
  1690. + return weapId;
  1691. + }
  1692. +
  1693. + public void setChestId(int val)
  1694. + {
  1695. + chestId = val;
  1696. + }
  1697. +
  1698. + public void setLegsId(int val)
  1699. + {
  1700. + legsId = val;
  1701. + }
  1702. +
  1703. + public void setGlovesId(int val)
  1704. + {
  1705. + glovesId = val;
  1706. + }
  1707. +
  1708. + public void setBootsId(int val)
  1709. + {
  1710. + feetId = val;
  1711. + }
  1712. +
  1713. + public void setWeapId(int val)
  1714. + {
  1715. + weapId = val;
  1716. + }
  1717. +}
  1718. \ No newline at end of file
  1719. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin3.java
  1720. ===================================================================
  1721. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin3.java (nonexistent)
  1722. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin3.java (working copy)
  1723. @@ -0,0 +1,52 @@
  1724. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1725. +
  1726. +import com.l2jfrozen.Config;
  1727. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1728. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1729. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1730. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1731. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1732. +
  1733. +public class skin3 implements IItemHandler
  1734. +{
  1735. + @Override
  1736. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1737. + {
  1738. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1739. + {
  1740. + if(!(playable instanceof L2PcInstance))
  1741. + return;
  1742. + L2PcInstance activeChar = (L2PcInstance)playable;
  1743. +
  1744. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME3);
  1745. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME3);
  1746. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME3);
  1747. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME3);
  1748. +
  1749. + if (activeChar.isDressMeEnabled())
  1750. + {
  1751. + activeChar.setDressMeEnabled(false);
  1752. + activeChar.broadcastUserInfo();
  1753. + activeChar.sendMessage("You have disabled skin.");
  1754. + }
  1755. + else
  1756. + {
  1757. + activeChar.setDressMeEnabled(true);
  1758. + activeChar.broadcastUserInfo();
  1759. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME3 + " skin.");
  1760. + }
  1761. + }
  1762. + else
  1763. + playable.sendMessage("Sorry, admin has disabled skins.");
  1764. + }
  1765. +
  1766. + @Override
  1767. + public int[] getItemIds()
  1768. + {
  1769. + return ITEM_IDS;
  1770. + }
  1771. +
  1772. + private static final int ITEM_IDS[] = {
  1773. + Config.SKIN_ITEM_3
  1774. + };
  1775. +}
  1776. \ No newline at end of file
  1777. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin2.java
  1778. ===================================================================
  1779. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin2.java (nonexistent)
  1780. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin2.java (working copy)
  1781. @@ -0,0 +1,52 @@
  1782. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1783. +
  1784. +import com.l2jfrozen.Config;
  1785. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1786. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1787. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1788. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1789. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1790. +
  1791. +public class skin2 implements IItemHandler
  1792. +{
  1793. + @Override
  1794. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1795. + {
  1796. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1797. + {
  1798. + if(!(playable instanceof L2PcInstance))
  1799. + return;
  1800. + L2PcInstance activeChar = (L2PcInstance)playable;
  1801. +
  1802. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME2);
  1803. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME2);
  1804. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME2);
  1805. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME2);
  1806. +
  1807. + if (activeChar.isDressMeEnabled())
  1808. + {
  1809. + activeChar.setDressMeEnabled(false);
  1810. + activeChar.broadcastUserInfo();
  1811. + activeChar.sendMessage("You have disabled skin.");
  1812. + }
  1813. + else
  1814. + {
  1815. + activeChar.setDressMeEnabled(true);
  1816. + activeChar.broadcastUserInfo();
  1817. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME2 + " skin.");
  1818. + }
  1819. + }
  1820. + else
  1821. + playable.sendMessage("Sorry, admin has disabled skins.");
  1822. + }
  1823. +
  1824. + @Override
  1825. + public int[] getItemIds()
  1826. + {
  1827. + return ITEM_IDS;
  1828. + }
  1829. +
  1830. + private static final int ITEM_IDS[] = {
  1831. + Config.SKIN_ITEM_2
  1832. + };
  1833. +}
  1834. \ No newline at end of file
  1835. Index: java/net/sf/l2j/gameserver/handler/itemhandlers/skin1.java
  1836. ===================================================================
  1837. --- java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin1.java (nonexistent)
  1838. +++ java/head-src/com/l2jfrozen/gameserver/handler/itemhandlers/skin1.java (working copy)
  1839. @@ -0,0 +1,52 @@
  1840. +package com.l2jfrozen.gameserver.handler.itemhandlers;
  1841. +
  1842. +import com.l2jfrozen.Config;
  1843. +import com.l2jfrozen.gameserver.handler.IItemHandler;
  1844. +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  1845. +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  1846. +import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance;
  1847. +import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer;
  1848. +
  1849. +public class skin1 implements IItemHandler
  1850. +{
  1851. + @Override
  1852. + public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  1853. + {
  1854. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1855. + {
  1856. + if(!(playable instanceof L2PcInstance))
  1857. + return;
  1858. + L2PcInstance activeChar = (L2PcInstance)playable;
  1859. +
  1860. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1);
  1861. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1);
  1862. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1);
  1863. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1);
  1864. +
  1865. + if (activeChar.isDressMeEnabled())
  1866. + {
  1867. + activeChar.setDressMeEnabled(false);
  1868. + activeChar.broadcastUserInfo();
  1869. + activeChar.sendMessage("You have disabled skin.");
  1870. + }
  1871. + else
  1872. + {
  1873. + activeChar.setDressMeEnabled(true);
  1874. + activeChar.broadcastUserInfo();
  1875. + activeChar.sendMessage("You have activated " + Config.SKIN_NAME1 + " skin.");
  1876. + }
  1877. + }
  1878. + else
  1879. + playable.sendMessage("Sorry, admin has disabled skins.");
  1880. + }
  1881. +
  1882. + @Override
  1883. + public int[] getItemIds()
  1884. + {
  1885. + return ITEM_IDS;
  1886. + }
  1887. +
  1888. + private static final int ITEM_IDS[] = {
  1889. + Config.SKIN_ITEM_1
  1890. + };
  1891. +}
  1892. \ No newline at end of file
  1893. Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1894. ===================================================================
  1895. --- java/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java (revision 683)
  1896. +++ java/head-src/com/l2jfrozen/gameserver/network/serverpackets/CharInfo.java (working copy)
  1897. @@ -210,16 +210,32 @@
  1898. }
  1899.  
  1900. writeD(0); // Hair All, but there are no such items in C4
  1901. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1902. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1903. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  1904. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_GLOVES));
  1905. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_CHEST));
  1906. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LEGS));
  1907. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FEET));
  1908. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  1909. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LRHAND));
  1910. - writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  1911. + if (!_activeChar.isDressMeEnabled())
  1912. + {
  1913. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_DHAIR));
  1914. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1915. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1916. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  1917. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_GLOVES));
  1918. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_CHEST));
  1919. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LEGS));
  1920. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FEET));
  1921. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  1922. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1923. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  1924. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  1925. + }
  1926. + else
  1927. + {
  1928. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_DHAIR));
  1929. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1930. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1931. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  1932. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  1933. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  1934. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  1935. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  1936. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  1937. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1938. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  1939. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  1940. + }
  1941. // c6 new h's
  1942. writeH(0x00);
  1943. writeH(0x00);
Add Comment
Please, Sign In to add comment