Advertisement
Sarada-L2

Skin Click Acis 370 Yo: Sarada

Jun 19th, 2021
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.77 KB | None | 0 0
  1. diff --git a/config/Skin.properties b/config/Skin.properties
  2. new file mode 100644
  3. index 0000000..4c3069e
  4. --- /dev/null
  5. +++ b/config/Skin.properties
  6. @@ -0,0 +1,193 @@
  7. +#===============================================================
  8. +# Skin Item
  9. +#===============================================================
  10. +#Enable Skin
  11. +AllowDressMeSystem = True
  12. +
  13. +#Como registrar item?
  14. +#só escolher o id do item no xml e registrar cada skin com exemplo de 1 a 15
  15. +#<set name="handler" val="Skin1" />,<set name="handler" val="Skin2" /> etc.
  16. +
  17. +#Effect Time All Skins
  18. +# 4000 = 4 Segunds
  19. +SkillEffectsTime = 4000
  20. +
  21. +#Skill ID Skin 1
  22. +SkillIDSkin1 = 1036
  23. +
  24. +#Skill ID Skin 2
  25. +SkillIDSkin2 = 0
  26. +
  27. +#Skill ID Skin 3
  28. +SkillIDSkin3 = 0
  29. +
  30. +#Skill ID Skin 4
  31. +SkillIDSkin4 = 0
  32. +
  33. +#Skill ID Skin 5
  34. +SkillIDSkin5 = 0
  35. +
  36. +#Skill ID Skin 6
  37. +SkillIDSkin6 = 0
  38. +
  39. +#Skill ID Skin 7
  40. +SkillIDSkin7 = 0
  41. +
  42. +#Skill ID Skin 8
  43. +SkillIDSkin8 = 0
  44. +
  45. +#Skill ID Skin 9
  46. +SkillIDSkin9 = 0
  47. +
  48. +#Skill ID Skin 10
  49. +SkillIDSkin10 = 0
  50. +
  51. +#Skill ID Skin 11
  52. +SkillIDSkin11 = 0
  53. +
  54. +#Skill ID Skin 12
  55. +SkillIDSkin12 = 0
  56. +
  57. +#Skill ID Skin 13
  58. +SkillIDSkin13 = 0
  59. +
  60. +#Skill ID Skin 14
  61. +SkillIDSkin14 = 0
  62. +
  63. +#Skill ID Skin 15
  64. +SkillIDSkin15 = 0
  65. +
  66. +#None Quando equipar Item
  67. +NameArmor1 = Draconic Light
  68. +NameArmor2 = Titanium Armor Wizzard
  69. +NameArmor3 = Titanium Armor Heavy
  70. +NameArmor4 = Dark Knight Heavy
  71. +NameArmor5 = Dark Knight Light
  72. +NameArmor6 = Dark Knight Wizzard
  73. +NameArmor7 = Dynasty Armor Heavy
  74. +NameArmor8 = Dynasty Armor Light
  75. +NameArmor9 = Dynasty Armor Wizzard
  76. +NameArmor10 = Vesper Black Armor Heavy
  77. +NameArmor11 = Vesper Black Armor Light
  78. +NameArmor12 = Vesper Black Armor Wizzard
  79. +NameArmor13 = Moirai Armor Heavy
  80. +NameArmor14 = Moirai Armor Light
  81. +NameArmor15 = Moirai Armor Wizzard
  82. +
  83. +# DressMe values.
  84. +#Aqui não pode ultilizar Espaco!
  85. +# Skin name (Example: "Draconic")
  86. +SkinName1 = Draconic_light
  87. +SkinName2 = Titanium_Robe
  88. +SkinName3 = Titanium_Heavy
  89. +SkinName4 = Dark_Kinight_Heavy
  90. +SkinName5 = Dark_Kinight_Light
  91. +SkinName6 = Dark_Kinight_Robe
  92. +SkinName7 = Dynasty_Heavy
  93. +SkinName8 = Dynasty_Light
  94. +SkinName9 = Dynasty_Robe
  95. +SkinName10 = VesperBlack_Heavy
  96. +SkinName11 = VesperBlack_Light
  97. +SkinName12 = VesperBlack_Robe
  98. +SkinName13 = Moirai_H
  99. +SkinName14 = Moirai_L
  100. +SkinName15 = Moirai_R
  101. +
  102. +# Note: It works like name,id;name,id
  103. +# WARNING: No spaces on names, use _ instead of space.
  104. +#Hair Accesories
  105. +DressMeHair = Draconic_light,6842;\
  106. +Titanium_Robe,21002;\
  107. +Titanium_Heavy,21002;\
  108. +Dark_Kinight_Heavy,21003;\
  109. +Dark_Kinight_Light,21004;\
  110. +Dark_Kinight_Robe,21005;\
  111. +Dynasty_Heavy,21006;\
  112. +Dynasty_Light,21011;\
  113. +Dynasty_Robe,21010;\
  114. +VesperBlack_Heavy,21009;\
  115. +VesperBlack_Light,21008;\
  116. +VesperBlack_Robe,21007;\
  117. +Moirai_H,21001;\
  118. +Moirai_L,21000;\
  119. +Moirai_R,20097;\
  120. +Tauti_H,20089;\
  121. +Tauti_L,20090;\
  122. +Tauti_R,20091
  123. +
  124. +#Armor Chests
  125. +DressMeChests = Draconic_light,6379;\
  126. +Titanium_Robe,20071;\
  127. +Titanium_Heavy,20067;\
  128. +Dark_Kinight_Heavy,21023;\
  129. +Dark_Kinight_Light,21028;\
  130. +Dark_Kinight_Robe,21033;\
  131. +Dynasty_Heavy,21038;\
  132. +Dynasty_Light,21043;\
  133. +Dynasty_Robe,21048;\
  134. +VesperBlack_Heavy,21053;\
  135. +VesperBlack_Light,21058;\
  136. +VesperBlack_Robe,21063;\
  137. +Moirai_H,21068;\
  138. +Moirai_L,21073;\
  139. +Moirai_R,21078;\
  140. +Tauti_H,21083;\
  141. +Tauti_L,21088;\
  142. +Tauti_R,21093
  143. +
  144. +# Armor Legs
  145. +DressMeLegs = Dark_Kinight_Heavy,21024;\
  146. +Dark_Kinight_Light,21029;\
  147. +Dark_Kinight_Robe,21034;\
  148. +Dynasty_Heavy,21039;\
  149. +Dynasty_Light,21044;\
  150. +Dynasty_Robe,21049;\
  151. +VesperBlack_Heavy,21054;\
  152. +VesperBlack_Light,21059;\
  153. +VesperBlack_Robe,21064;\
  154. +Moirai_H,21069;\
  155. +Moirai_L,21074;\
  156. +Moirai_R,21079;\
  157. +Tauti_H,21084;\
  158. +Tauti_L,21089;\
  159. +Tauti_R,21094
  160. +
  161. +# Armor Gloves
  162. +DressMeGloves = Draconic_light,6380;\
  163. +Titanium_Robe,20072;\
  164. +Titanium_Heavy,20068;\
  165. +Dark_Kinight_Heavy,21025;\
  166. +Dark_Kinight_Light,21030;\
  167. +Dark_Kinight_Robe,21035;\
  168. +Dynasty_Heavy,21040;\
  169. +Dynasty_Light,21045;\
  170. +Dynasty_Robe,21050;\
  171. +VesperBlack_Heavy,21055;\
  172. +VesperBlack_Light,21060;\
  173. +VesperBlack_Robe,21065;\
  174. +Moirai_H,21070;\
  175. +Moirai_L,21075;\
  176. +Moirai_R,21080;\
  177. +Tauti_H,21085;\
  178. +Tauti_L,21090;\
  179. +Tauti_R,21095
  180. +
  181. +#Armor Boots
  182. +DressMeBoots = Draconic_light,6381;\
  183. +Titanium_Robe,20073;\
  184. +Titanium_Heavy,20069;\
  185. +Dark_Kinight_Heavy,21026;\
  186. +Dark_Kinight_Light,21031;\
  187. +Dark_Kinight_Robe,21036;\
  188. +Dynasty_Heavy,21041;\
  189. +Dynasty_Light,21046;\
  190. +Dynasty_Robe,21051;\
  191. +VesperBlack_Heavy,21056;\
  192. +VesperBlack_Light,21061;\
  193. +VesperBlack_Robe,21066;\
  194. +Moirai_H,21071;\
  195. +Moirai_L,21076;\
  196. +Moirai_R,21081;\
  197. +Tauti_H,21086;\
  198. +Tauti_L,21091;\
  199. +Tauti_R,21096
  200. \ No newline at end of file
  201. diff --git a/java/net/sf/l2j/Config.java b/java/net/sf/l2j/Config.java
  202. index e27eec0..cdbc650 100644
  203. --- a/java/net/sf/l2j/Config.java
  204. +++ b/java/net/sf/l2j/Config.java
  205. @@ -37,6 +37,7 @@
  206. public static final String PLAYERS_FILE = "./config/players.properties";
  207. public static final String SERVER_FILE = "./config/server.properties";
  208. public static final String SIEGE_FILE = "./config/siege.properties";
  209. + public static final String SKIN_FILE = "./config/Skin.properties";
  210.  
  211. // --------------------------------------------------
  212. // Clans settings
  213. @@ -116,6 +117,61 @@
  214. public static int CH_FRONT1_FEE;
  215. public static int CH_FRONT2_FEE;
  216.  
  217. + public static int SEGUNDS_SKILL_ANIMATION;
  218. + public static int SKILL_ID_SKIN1;
  219. + public static int SKILL_ID_SKIN2;
  220. + public static int SKILL_ID_SKIN3;
  221. + public static int SKILL_ID_SKIN4;
  222. + public static int SKILL_ID_SKIN5;
  223. + public static int SKILL_ID_SKIN6;
  224. + public static int SKILL_ID_SKIN7;
  225. + public static int SKILL_ID_SKIN8;
  226. + public static int SKILL_ID_SKIN9;
  227. + public static int SKILL_ID_SKIN10;
  228. + public static int SKILL_ID_SKIN11;
  229. + public static int SKILL_ID_SKIN12;
  230. + public static int SKILL_ID_SKIN13;
  231. + public static int SKILL_ID_SKIN14;
  232. + public static int SKILL_ID_SKIN15;
  233. + /** Skins Dressme */
  234. + public static boolean ALLOW_DRESS_ME_SYSTEM;
  235. + public static Map<String, Integer> DRESS_ME_HELMET = new HashMap<>();
  236. + public static Map<String, Integer> DRESS_ME_CHESTS = new HashMap<>();
  237. + public static Map<String, Integer> DRESS_ME_LEGS = new HashMap<>();
  238. + public static Map<String, Integer> DRESS_ME_BOOTS = new HashMap<>();
  239. + public static Map<String, Integer> DRESS_ME_GLOVES = new HashMap<>();
  240. + public static String SKIN_NAME1;
  241. + public static String SKIN_NAME2;
  242. + public static String SKIN_NAME3;
  243. + public static String SKIN_NAME4;
  244. + public static String SKIN_NAME5;
  245. + public static String SKIN_NAME6;
  246. + public static String SKIN_NAME7;
  247. + public static String SKIN_NAME8;
  248. + public static String SKIN_NAME9;
  249. + public static String SKIN_NAME10;
  250. + public static String SKIN_NAME11;
  251. + public static String SKIN_NAME12;
  252. + public static String SKIN_NAME13;
  253. + public static String SKIN_NAME14;
  254. + public static String SKIN_NAME15;
  255. +
  256. + public static String NAME1;
  257. + public static String NAME2;
  258. + public static String NAME3;
  259. + public static String NAME4;
  260. + public static String NAME5;
  261. + public static String NAME6;
  262. + public static String NAME7;
  263. + public static String NAME8;
  264. + public static String NAME9;
  265. + public static String NAME10;
  266. + public static String NAME11;
  267. + public static String NAME12;
  268. + public static String NAME13;
  269. + public static String NAME14;
  270. + public static String NAME15;
  271. +
  272. // --------------------------------------------------
  273. // Events settings
  274. // --------------------------------------------------
  275. @@ -792,7 +848,100 @@
  276. CH_FRONT1_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl1", 3031);
  277. CH_FRONT2_FEE = clans.getProperty("ClanHallFrontPlatformFunctionFeeLvl2", 9331);
  278. }
  279. -
  280. + /**
  281. + * Loads Skin Click settings.<br>
  282. + */
  283. + private static final void loadSkin()
  284. + {
  285. + final ExProperties Skins = initProperties(SKIN_FILE);
  286. + SEGUNDS_SKILL_ANIMATION = Integer.parseInt(Skins.getProperty("SkillEffectsTime", "0"));
  287. + SKILL_ID_SKIN1 = Integer.parseInt(Skins.getProperty("SkillIDSkin1", "0"));
  288. + SKILL_ID_SKIN2 = Integer.parseInt(Skins.getProperty("SkillIDSkin2", "0"));
  289. + SKILL_ID_SKIN3 = Integer.parseInt(Skins.getProperty("SkillIDSkin3", "0"));
  290. + SKILL_ID_SKIN4 = Integer.parseInt(Skins.getProperty("SkillIDSkin4", "0"));
  291. + SKILL_ID_SKIN5 = Integer.parseInt(Skins.getProperty("SkillIDSkin5", "0"));
  292. + SKILL_ID_SKIN6 = Integer.parseInt(Skins.getProperty("SkillIDSkin6", "0"));
  293. + SKILL_ID_SKIN7 = Integer.parseInt(Skins.getProperty("SkillIDSkin7", "0"));
  294. + SKILL_ID_SKIN8 = Integer.parseInt(Skins.getProperty("SkillIDSkin8", "0"));
  295. + SKILL_ID_SKIN9 = Integer.parseInt(Skins.getProperty("SkillIDSkin9", "0"));
  296. + SKILL_ID_SKIN10 = Integer.parseInt(Skins.getProperty("SkillIDSkin10", "0"));
  297. + SKILL_ID_SKIN11 = Integer.parseInt(Skins.getProperty("SkillIDSkin11", "0"));
  298. + SKILL_ID_SKIN12 = Integer.parseInt(Skins.getProperty("SkillIDSkin12", "0"));
  299. + SKILL_ID_SKIN13 = Integer.parseInt(Skins.getProperty("SkillIDSkin13", "0"));
  300. + SKILL_ID_SKIN14 = Integer.parseInt(Skins.getProperty("SkillIDSkin14", "0"));
  301. + SKILL_ID_SKIN15 = Integer.parseInt(Skins.getProperty("SkillIDSkin15", "0"));
  302. + ALLOW_DRESS_ME_SYSTEM = Boolean.parseBoolean(Skins.getProperty("AllowDressMeSystem", "false"));
  303. + SKIN_NAME1 = String.valueOf(Skins.getProperty("SkinName1", "SkinName"));
  304. + SKIN_NAME2 = String.valueOf(Skins.getProperty("SkinName2", "SkinName"));
  305. + SKIN_NAME3 = String.valueOf(Skins.getProperty("SkinName3", "SkinName"));
  306. + SKIN_NAME4 = String.valueOf(Skins.getProperty("SkinName4", "SkinName"));
  307. + SKIN_NAME5 = String.valueOf(Skins.getProperty("SkinName5", "SkinName"));
  308. + SKIN_NAME6 = String.valueOf(Skins.getProperty("SkinName6", "SkinName"));
  309. + SKIN_NAME7 = String.valueOf(Skins.getProperty("SkinName7", "SkinName"));
  310. + SKIN_NAME8 = String.valueOf(Skins.getProperty("SkinName8", "SkinName"));
  311. + SKIN_NAME9 = String.valueOf(Skins.getProperty("SkinName9", "SkinName"));
  312. + SKIN_NAME10 = String.valueOf(Skins.getProperty("SkinName10", "SkinName"));
  313. + SKIN_NAME11 = String.valueOf(Skins.getProperty("SkinName11", "SkinName"));
  314. + SKIN_NAME12 = String.valueOf(Skins.getProperty("SkinName12", "SkinName"));
  315. + SKIN_NAME13 = String.valueOf(Skins.getProperty("SkinName13", "SkinName"));
  316. + SKIN_NAME14 = String.valueOf(Skins.getProperty("SkinName14", "SkinName"));
  317. + SKIN_NAME15 = String.valueOf(Skins.getProperty("SkinName15", "SkinName"));
  318. +
  319. + String temp = Skins.getProperty("DressMeChests", "");
  320. + String[] temp2 = temp.split(";");
  321. + for (String s : temp2)
  322. + {
  323. + String[] t = s.split(",");
  324. + DRESS_ME_CHESTS.put(t[0], Integer.parseInt(t[1]));
  325. + }
  326. +
  327. + temp = Skins.getProperty("DressMeHair", "");
  328. + temp2 = temp.split(";");
  329. + for (String s : temp2)
  330. + {
  331. + String[] t = s.split(",");
  332. + DRESS_ME_HELMET.put(t[0], Integer.parseInt(t[1]));
  333. + }
  334. +
  335. +
  336. + temp = Skins.getProperty("DressMeLegs", "");
  337. + temp2 = temp.split(";");
  338. + for (String s : temp2)
  339. + {
  340. + String[] t = s.split(",");
  341. + DRESS_ME_LEGS.put(t[0], Integer.parseInt(t[1]));
  342. + }
  343. + temp = Skins.getProperty("DressMeBoots", "");
  344. + temp2 = temp.split(";");
  345. + for (String s : temp2)
  346. + {
  347. + String[] t = s.split(",");
  348. + DRESS_ME_BOOTS.put(t[0], Integer.parseInt(t[1]));
  349. + }
  350. + temp = Skins.getProperty("DressMeGloves", "");
  351. + temp2 = temp.split(";");
  352. + for (String s : temp2)
  353. + {
  354. + String[] t = s.split(",");
  355. + DRESS_ME_GLOVES.put(t[0], Integer.parseInt(t[1]));
  356. + }
  357. +
  358. + NAME1 = Skins.getProperty("NameArmor1", " Skins Dressme");
  359. + NAME2 = Skins.getProperty("NameArmor2", " Skins Dressme");
  360. + NAME3 = Skins.getProperty("NameArmor3", " Skins Dressme");
  361. + NAME4 = Skins.getProperty("NameArmor4", " Skins Dressme");
  362. + NAME5 = Skins.getProperty("NameArmor5", " Skins Dressme");
  363. + NAME6 = Skins.getProperty("NameArmor6", " Skins Dressme");
  364. + NAME7 = Skins.getProperty("NameArmor7", " Skins Dressme");
  365. + NAME8 = Skins.getProperty("NameArmor8", " Skins Dressme");
  366. + NAME9 = Skins.getProperty("NameArmor9", " Skins Dressme");
  367. + NAME10 = Skins.getProperty("NameArmor10", " Skins Dressme");
  368. + NAME11 = Skins.getProperty("NameArmor11", " Skins Dressme");
  369. + NAME12 = Skins.getProperty("NameArmor12", " Skins Dressme");
  370. + NAME13 = Skins.getProperty("NameArmor13", " Skins Dressme");
  371. + NAME14 = Skins.getProperty("NameArmor14", " Skins Dressme");
  372. + NAME15 = Skins.getProperty("NameArmor15", " Skins Dressme");
  373. + }
  374. /**
  375. * Loads event settings.<br>
  376. * Such as olympiad, seven signs festival, four sepulchures, dimensional rift, weddings, lottery, fishing championship.
  377. @@ -1369,6 +1518,8 @@
  378. // events settings
  379. loadEvents();
  380.  
  381. + loadSkin();
  382. +
  383. // geoengine settings
  384. loadGeoengine();
  385.  
  386. diff --git a/java/net/sf/l2j/gameserver/data/manager/DressMeData.java b/java/net/sf/l2j/gameserver/data/manager/DressMeData.java
  387. new file mode 100644
  388. index 0000000..419481d
  389. --- /dev/null
  390. +++ b/java/net/sf/l2j/gameserver/data/manager/DressMeData.java
  391. @@ -0,0 +1,81 @@
  392. +package net.sf.l2j.gameserver.data.manager;
  393. +
  394. +public class DressMeData
  395. +{
  396. + private int chestId,
  397. + helmetId,
  398. + legsId,
  399. + glovesId,
  400. + feetId,
  401. + weapId;
  402. +
  403. + public DressMeData()
  404. + {
  405. + helmetId = 0;
  406. + chestId = 0;
  407. + legsId = 0;
  408. + glovesId = 0;
  409. + feetId = 0;
  410. + weapId = 0;
  411. + }
  412. +
  413. + public int getHelmetId()
  414. + {
  415. + return helmetId;
  416. + }
  417. +
  418. + public int getChestId()
  419. + {
  420. + return chestId;
  421. + }
  422. +
  423. + public int getLegsId()
  424. + {
  425. + return legsId;
  426. + }
  427. +
  428. + public int getGlovesId()
  429. + {
  430. + return glovesId;
  431. + }
  432. +
  433. + public int getBootsId()
  434. + {
  435. + return feetId;
  436. + }
  437. +
  438. + public int getWeapId()
  439. + {
  440. + return weapId;
  441. + }
  442. +
  443. + public void setHelmetId(int val)
  444. + {
  445. + helmetId = val;
  446. + }
  447. +
  448. + public void setChestId(int val)
  449. + {
  450. + chestId = val;
  451. + }
  452. +
  453. + public void setLegsId(int val)
  454. + {
  455. + legsId = val;
  456. + }
  457. +
  458. + public void setGlovesId(int val)
  459. + {
  460. + glovesId = val;
  461. + }
  462. +
  463. + public void setBootsId(int val)
  464. + {
  465. + feetId = val;
  466. + }
  467. +
  468. + public void setWeapId(int val)
  469. + {
  470. + weapId = val;
  471. + }
  472. +}
  473. \ No newline at end of file
  474. diff --git a/java/net/sf/l2j/gameserver/handler/ItemHandler.java b/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  475. index 7add89f..c58fbfd 100644
  476. --- a/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  477. +++ b/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  478. @@ -24,6 +24,21 @@
  479. import net.sf.l2j.gameserver.handler.itemhandlers.ScrollOfResurrection;
  480. import net.sf.l2j.gameserver.handler.itemhandlers.SeedHandler;
  481. import net.sf.l2j.gameserver.handler.itemhandlers.SevenSignsRecord;
  482. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin1;
  483. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin10;
  484. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin11;
  485. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin12;
  486. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin13;
  487. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin14;
  488. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin15;
  489. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin2;
  490. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin3;
  491. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin4;
  492. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin5;
  493. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin6;
  494. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin7;
  495. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin8;
  496. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin9;
  497. import net.sf.l2j.gameserver.handler.itemhandlers.SoulCrystals;
  498. import net.sf.l2j.gameserver.handler.itemhandlers.SoulShots;
  499. import net.sf.l2j.gameserver.handler.itemhandlers.SpecialXMas;
  500. @@ -42,6 +57,21 @@
  501.  
  502. protected ItemHandler()
  503. {
  504. + registerItemHandler(new Skin1());
  505. + registerItemHandler(new Skin2());
  506. + registerItemHandler(new Skin3());
  507. + registerItemHandler(new Skin4());
  508. + registerItemHandler(new Skin5());
  509. + registerItemHandler(new Skin6());
  510. + registerItemHandler(new Skin7());
  511. + registerItemHandler(new Skin8());
  512. + registerItemHandler(new Skin9());
  513. + registerItemHandler(new Skin10());
  514. + registerItemHandler(new Skin11());
  515. + registerItemHandler(new Skin12());
  516. + registerItemHandler(new Skin13());
  517. + registerItemHandler(new Skin14());
  518. + registerItemHandler(new Skin15());
  519. registerItemHandler(new BeastSoulShot());
  520. registerItemHandler(new BeastSpice());
  521. registerItemHandler(new BeastSpiritShot());
  522. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java
  523. new file mode 100644
  524. index 0000000..0251107
  525. --- /dev/null
  526. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java
  527. @@ -0,0 +1,68 @@
  528. +package net.sf.l2j.gameserver.handler.itemhandlers;
  529. +
  530. +import net.sf.l2j.commons.concurrent.ThreadPool;
  531. +
  532. +import net.sf.l2j.Config;
  533. +import net.sf.l2j.gameserver.handler.IItemHandler;
  534. +import net.sf.l2j.gameserver.model.WorldObject;
  535. +import net.sf.l2j.gameserver.model.actor.Playable;
  536. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  537. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  538. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  539. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  540. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  541. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  542. +import net.sf.l2j.gameserver.util.Broadcast;
  543. +
  544. +public class Skin1 implements IItemHandler
  545. +
  546. +{
  547. + @Override
  548. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  549. + {
  550. + ThreadPool.schedule(new Runnable()
  551. + {
  552. + @Override
  553. + public void run()
  554. + {
  555. + playable.setIsParalyzed(false);
  556. + }
  557. + }, Config.SEGUNDS_SKILL_ANIMATION);
  558. + final WorldObject oldTarget = playable.getTarget();
  559. + playable.setTarget(playable);
  560. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN1, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  561. + playable.setTarget(oldTarget);
  562. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  563. + playable.setIsParalyzed(true);
  564. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  565. + {
  566. + if(!(playable instanceof Player))
  567. + return;
  568. +
  569. + Player activeChar = (Player)playable;
  570. +
  571. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME1);
  572. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1);
  573. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1);
  574. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1);
  575. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1);
  576. +
  577. + if (activeChar.isDressMeEnabled())
  578. + {
  579. + activeChar.setDressMeEnabled(false);
  580. + activeChar.broadcastUserInfo();
  581. + activeChar.sendMessage("You have disabled skin.");
  582. +
  583. + }
  584. + else
  585. + {
  586. + activeChar.setDressMeEnabled(true);
  587. + activeChar.broadcastUserInfo();
  588. + activeChar.sendMessage("You have activated " + Config.NAME1 + " skin.");
  589. +
  590. + }
  591. + }
  592. + else
  593. + playable.sendMessage("Sorry, admin has disabled skins.");
  594. + }
  595. +}
  596. \ No newline at end of file
  597. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java
  598. new file mode 100644
  599. index 0000000..a51c139
  600. --- /dev/null
  601. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java
  602. @@ -0,0 +1,64 @@
  603. +package net.sf.l2j.gameserver.handler.itemhandlers;
  604. +
  605. +import net.sf.l2j.commons.concurrent.ThreadPool;
  606. +
  607. +import net.sf.l2j.Config;
  608. +import net.sf.l2j.gameserver.handler.IItemHandler;
  609. +import net.sf.l2j.gameserver.model.WorldObject;
  610. +import net.sf.l2j.gameserver.model.actor.Playable;
  611. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  612. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  613. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  614. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  615. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  616. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  617. +import net.sf.l2j.gameserver.util.Broadcast;
  618. +
  619. +public class Skin10 implements IItemHandler
  620. +{
  621. + @Override
  622. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  623. + {
  624. + ThreadPool.schedule(new Runnable()
  625. + {
  626. + @Override
  627. + public void run()
  628. + {
  629. + playable.setIsParalyzed(false);
  630. + }
  631. + }, Config.SEGUNDS_SKILL_ANIMATION);
  632. + final WorldObject oldTarget = playable.getTarget();
  633. + playable.setTarget(playable);
  634. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN10, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  635. + playable.setTarget(oldTarget);
  636. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  637. + playable.setIsParalyzed(true);
  638. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  639. + {
  640. + if(!(playable instanceof Player))
  641. + return;
  642. + Player activeChar = (Player)playable;
  643. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME10);
  644. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME10);
  645. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME10);
  646. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME10);
  647. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME10);
  648. +
  649. + if (activeChar.isDressMeEnabled())
  650. + {
  651. + activeChar.setDressMeEnabled(false);
  652. + activeChar.broadcastUserInfo();
  653. + activeChar.sendMessage("You have disabled skin.");
  654. + }
  655. + else
  656. + {
  657. + activeChar.setDressMeEnabled(true);
  658. + activeChar.broadcastUserInfo();
  659. + activeChar.sendMessage("You have activated " + Config.NAME10 + " skin.");
  660. + }
  661. + }
  662. + else
  663. + playable.sendMessage("Sorry, admin has disabled skins.");
  664. + }
  665. +
  666. +}
  667. \ No newline at end of file
  668. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java
  669. new file mode 100644
  670. index 0000000..ce27bec
  671. --- /dev/null
  672. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java
  673. @@ -0,0 +1,64 @@
  674. +package net.sf.l2j.gameserver.handler.itemhandlers;
  675. +
  676. +import net.sf.l2j.commons.concurrent.ThreadPool;
  677. +
  678. +import net.sf.l2j.Config;
  679. +import net.sf.l2j.gameserver.handler.IItemHandler;
  680. +import net.sf.l2j.gameserver.model.WorldObject;
  681. +import net.sf.l2j.gameserver.model.actor.Playable;
  682. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  683. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  684. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  685. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  686. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  687. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  688. +import net.sf.l2j.gameserver.util.Broadcast;
  689. +
  690. +public class Skin11 implements IItemHandler
  691. +{
  692. + @Override
  693. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  694. + {
  695. + ThreadPool.schedule(new Runnable()
  696. + {
  697. + @Override
  698. + public void run()
  699. + {
  700. + playable.setIsParalyzed(false);
  701. + }
  702. + }, Config.SEGUNDS_SKILL_ANIMATION);
  703. + final WorldObject oldTarget = playable.getTarget();
  704. + playable.setTarget(playable);
  705. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN11, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  706. + playable.setTarget(oldTarget);
  707. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  708. + playable.setIsParalyzed(true);
  709. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  710. + {
  711. + if(!(playable instanceof Player))
  712. + return;
  713. + Player activeChar = (Player)playable;
  714. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME11);
  715. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME11);
  716. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME11);
  717. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME11);
  718. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME11);
  719. +
  720. + if (activeChar.isDressMeEnabled())
  721. + {
  722. + activeChar.setDressMeEnabled(false);
  723. + activeChar.broadcastUserInfo();
  724. + activeChar.sendMessage("You have disabled skin.");
  725. + }
  726. + else
  727. + {
  728. + activeChar.setDressMeEnabled(true);
  729. + activeChar.broadcastUserInfo();
  730. + activeChar.sendMessage("You have activated " + Config.NAME11 + " skin.");
  731. +
  732. + }
  733. + }
  734. + else
  735. + playable.sendMessage("Sorry, admin has disabled skins.");
  736. + }
  737. +}
  738. \ No newline at end of file
  739. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java
  740. new file mode 100644
  741. index 0000000..af6a595
  742. --- /dev/null
  743. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java
  744. @@ -0,0 +1,64 @@
  745. +package net.sf.l2j.gameserver.handler.itemhandlers;
  746. +
  747. +import net.sf.l2j.commons.concurrent.ThreadPool;
  748. +
  749. +import net.sf.l2j.Config;
  750. +import net.sf.l2j.gameserver.handler.IItemHandler;
  751. +import net.sf.l2j.gameserver.model.WorldObject;
  752. +import net.sf.l2j.gameserver.model.actor.Playable;
  753. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  754. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  755. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  756. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  757. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  758. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  759. +import net.sf.l2j.gameserver.util.Broadcast;
  760. +
  761. +public class Skin12 implements IItemHandler
  762. +{
  763. + @Override
  764. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  765. + {
  766. + ThreadPool.schedule(new Runnable()
  767. + {
  768. + @Override
  769. + public void run()
  770. + {
  771. + playable.setIsParalyzed(false);
  772. + }
  773. + }, Config.SEGUNDS_SKILL_ANIMATION);
  774. + final WorldObject oldTarget = playable.getTarget();
  775. + playable.setTarget(playable);
  776. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN12, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  777. + playable.setTarget(oldTarget);
  778. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  779. + playable.setIsParalyzed(true);
  780. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  781. + {
  782. + if(!(playable instanceof Player))
  783. + return;
  784. + Player activeChar = (Player)playable;
  785. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME12);
  786. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME12);
  787. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME12);
  788. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME12);
  789. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME12);
  790. +
  791. + if (activeChar.isDressMeEnabled())
  792. + {
  793. + activeChar.setDressMeEnabled(false);
  794. + activeChar.broadcastUserInfo();
  795. + activeChar.sendMessage("You have disabled skin.");
  796. + }
  797. + else
  798. + {
  799. + activeChar.setDressMeEnabled(true);
  800. + activeChar.broadcastUserInfo();
  801. + activeChar.sendMessage("You have activated " + Config.NAME12 + " skin.");
  802. +
  803. + }
  804. + }
  805. + else
  806. + playable.sendMessage("Sorry, admin has disabled skins.");
  807. + }
  808. +}
  809. \ No newline at end of file
  810. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java
  811. new file mode 100644
  812. index 0000000..824276a
  813. --- /dev/null
  814. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java
  815. @@ -0,0 +1,63 @@
  816. +package net.sf.l2j.gameserver.handler.itemhandlers;
  817. +
  818. +import net.sf.l2j.commons.concurrent.ThreadPool;
  819. +
  820. +import net.sf.l2j.Config;
  821. +import net.sf.l2j.gameserver.handler.IItemHandler;
  822. +import net.sf.l2j.gameserver.model.WorldObject;
  823. +import net.sf.l2j.gameserver.model.actor.Playable;
  824. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  825. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  826. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  827. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  828. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  829. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  830. +import net.sf.l2j.gameserver.util.Broadcast;
  831. +
  832. +public class Skin13 implements IItemHandler
  833. +{
  834. + @Override
  835. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  836. + {
  837. + ThreadPool.schedule(new Runnable()
  838. + {
  839. + @Override
  840. + public void run()
  841. + {
  842. + playable.setIsParalyzed(false);
  843. + }
  844. + }, Config.SEGUNDS_SKILL_ANIMATION);
  845. + final WorldObject oldTarget = playable.getTarget();
  846. + playable.setTarget(playable);
  847. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN13, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  848. + playable.setTarget(oldTarget);
  849. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  850. + playable.setIsParalyzed(true);
  851. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  852. + {
  853. + if(!(playable instanceof Player))
  854. + return;
  855. + Player activeChar = (Player)playable;
  856. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME13);
  857. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME13);
  858. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME13);
  859. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME13);
  860. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME13);
  861. +
  862. + if (activeChar.isDressMeEnabled())
  863. + {
  864. + activeChar.setDressMeEnabled(false);
  865. + activeChar.broadcastUserInfo();
  866. + activeChar.sendMessage("You have disabled skin.");
  867. + }
  868. + else
  869. + {
  870. + activeChar.setDressMeEnabled(true);
  871. + activeChar.broadcastUserInfo();
  872. + activeChar.sendMessage("You have activated " + Config.NAME13 + " skin.");
  873. + }
  874. + }
  875. + else
  876. + playable.sendMessage("Sorry, admin has disabled skins.");
  877. + }
  878. +}
  879. \ No newline at end of file
  880. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java
  881. new file mode 100644
  882. index 0000000..90d1d31
  883. --- /dev/null
  884. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java
  885. @@ -0,0 +1,63 @@
  886. +package net.sf.l2j.gameserver.handler.itemhandlers;
  887. +
  888. +import net.sf.l2j.commons.concurrent.ThreadPool;
  889. +
  890. +import net.sf.l2j.Config;
  891. +import net.sf.l2j.gameserver.handler.IItemHandler;
  892. +import net.sf.l2j.gameserver.model.WorldObject;
  893. +import net.sf.l2j.gameserver.model.actor.Playable;
  894. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  895. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  896. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  897. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  898. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  899. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  900. +import net.sf.l2j.gameserver.util.Broadcast;
  901. +
  902. +public class Skin14 implements IItemHandler
  903. +{
  904. + @Override
  905. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  906. + {
  907. + ThreadPool.schedule(new Runnable()
  908. + {
  909. + @Override
  910. + public void run()
  911. + {
  912. + playable.setIsParalyzed(false);
  913. + }
  914. + }, Config.SEGUNDS_SKILL_ANIMATION);
  915. + final WorldObject oldTarget = playable.getTarget();
  916. + playable.setTarget(playable);
  917. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN14, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  918. + playable.setTarget(oldTarget);
  919. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  920. + playable.setIsParalyzed(true);
  921. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  922. + {
  923. + if(!(playable instanceof Player))
  924. + return;
  925. + Player activeChar = (Player)playable;
  926. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME14);
  927. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME14);
  928. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME14);
  929. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME14);
  930. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME14);
  931. +
  932. + if (activeChar.isDressMeEnabled())
  933. + {
  934. + activeChar.setDressMeEnabled(false);
  935. + activeChar.broadcastUserInfo();
  936. + activeChar.sendMessage("You have disabled skin.");
  937. + }
  938. + else
  939. + {
  940. + activeChar.setDressMeEnabled(true);
  941. + activeChar.broadcastUserInfo();
  942. + activeChar.sendMessage("You have activated " + Config.NAME14 + " skin.");
  943. + }
  944. + }
  945. + else
  946. + playable.sendMessage("Sorry, admin has disabled skins.");
  947. + }
  948. +}
  949. \ No newline at end of file
  950. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java
  951. new file mode 100644
  952. index 0000000..e246659
  953. --- /dev/null
  954. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java
  955. @@ -0,0 +1,67 @@
  956. +package net.sf.l2j.gameserver.handler.itemhandlers;
  957. +
  958. +import net.sf.l2j.commons.concurrent.ThreadPool;
  959. +
  960. +import net.sf.l2j.Config;
  961. +import net.sf.l2j.gameserver.handler.IItemHandler;
  962. +import net.sf.l2j.gameserver.model.WorldObject;
  963. +import net.sf.l2j.gameserver.model.actor.Playable;
  964. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  965. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  966. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  967. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  968. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  969. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  970. +import net.sf.l2j.gameserver.util.Broadcast;
  971. +
  972. +public class Skin15 implements IItemHandler
  973. +{
  974. + @Override
  975. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  976. + {
  977. + ThreadPool.schedule(new Runnable()
  978. + {
  979. + @Override
  980. + public void run()
  981. + {
  982. + playable.setIsParalyzed(false);
  983. + }
  984. + }, Config.SEGUNDS_SKILL_ANIMATION);
  985. + final WorldObject oldTarget = playable.getTarget();
  986. + playable.setTarget(playable);
  987. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN15, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  988. + playable.setTarget(oldTarget);
  989. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  990. + playable.setIsParalyzed(true);
  991. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  992. + {
  993. + if(!(playable instanceof Player))
  994. + return;
  995. +
  996. + Player activeChar = (Player)playable;
  997. +
  998. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME15);
  999. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME15);
  1000. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME15);
  1001. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME15);
  1002. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME15);
  1003. +
  1004. + if (activeChar.isDressMeEnabled())
  1005. + {
  1006. +
  1007. + activeChar.setDressMeEnabled(false);
  1008. + activeChar.broadcastUserInfo();
  1009. + activeChar.sendMessage("You have disabled skin.");
  1010. + }
  1011. + else
  1012. + {
  1013. +
  1014. + activeChar.setDressMeEnabled(true);
  1015. + activeChar.broadcastUserInfo();
  1016. + activeChar.sendMessage("You have activated " + Config.NAME15 + " skin.");
  1017. + }
  1018. + }
  1019. + else
  1020. + playable.sendMessage("Sorry, admin has disabled skins.");
  1021. + }
  1022. +}
  1023. \ No newline at end of file
  1024. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java
  1025. new file mode 100644
  1026. index 0000000..edd8aa5
  1027. --- /dev/null
  1028. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java
  1029. @@ -0,0 +1,64 @@
  1030. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1031. +
  1032. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1033. +
  1034. +import net.sf.l2j.Config;
  1035. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1036. +import net.sf.l2j.gameserver.model.WorldObject;
  1037. +import net.sf.l2j.gameserver.model.actor.Playable;
  1038. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1039. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1040. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1041. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1042. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1043. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1044. +import net.sf.l2j.gameserver.util.Broadcast;
  1045. +
  1046. +public class Skin2 implements IItemHandler
  1047. +{
  1048. + @Override
  1049. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1050. + {
  1051. + ThreadPool.schedule(new Runnable()
  1052. + {
  1053. + @Override
  1054. + public void run()
  1055. + {
  1056. + playable.setIsParalyzed(false);
  1057. + }
  1058. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1059. + final WorldObject oldTarget = playable.getTarget();
  1060. + playable.setTarget(playable);
  1061. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN2, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1062. + playable.setTarget(oldTarget);
  1063. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1064. + playable.setIsParalyzed(true);
  1065. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1066. + {
  1067. + if(!(playable instanceof Player))
  1068. + return;
  1069. + Player activeChar = (Player)playable;
  1070. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME2);
  1071. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME2);
  1072. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME2);
  1073. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME2);
  1074. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME2);
  1075. +
  1076. + if (activeChar.isDressMeEnabled())
  1077. + {
  1078. + activeChar.setDressMeEnabled(false);
  1079. + activeChar.broadcastUserInfo();
  1080. + activeChar.sendMessage("You have disabled skin.");
  1081. +
  1082. + }
  1083. + else
  1084. + {
  1085. + activeChar.setDressMeEnabled(true);
  1086. + activeChar.broadcastUserInfo();
  1087. + activeChar.sendMessage("You have activated " + Config.NAME2 + " skin.");
  1088. + }
  1089. + }
  1090. + else
  1091. + playable.sendMessage("Sorry, admin has disabled skins.");
  1092. + }
  1093. +}
  1094. \ No newline at end of file
  1095. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java
  1096. new file mode 100644
  1097. index 0000000..404c5df
  1098. --- /dev/null
  1099. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java
  1100. @@ -0,0 +1,64 @@
  1101. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1102. +
  1103. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1104. +
  1105. +import net.sf.l2j.Config;
  1106. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1107. +import net.sf.l2j.gameserver.model.WorldObject;
  1108. +import net.sf.l2j.gameserver.model.actor.Playable;
  1109. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1110. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1111. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1112. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1113. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1114. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1115. +import net.sf.l2j.gameserver.util.Broadcast;
  1116. +
  1117. +public class Skin3 implements IItemHandler
  1118. +{
  1119. + @Override
  1120. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1121. + {
  1122. + ThreadPool.schedule(new Runnable()
  1123. + {
  1124. + @Override
  1125. + public void run()
  1126. + {
  1127. + playable.setIsParalyzed(false);
  1128. + }
  1129. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1130. + final WorldObject oldTarget = playable.getTarget();
  1131. + playable.setTarget(playable);
  1132. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN3, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1133. + playable.setTarget(oldTarget);
  1134. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1135. + playable.setIsParalyzed(true);
  1136. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1137. + {
  1138. + if(!(playable instanceof Player))
  1139. + return;
  1140. + Player activeChar = (Player)playable;
  1141. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME3);
  1142. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME3);
  1143. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME3);
  1144. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME3);
  1145. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME3);
  1146. +
  1147. + if (activeChar.isDressMeEnabled())
  1148. + {
  1149. + activeChar.setDressMeEnabled(false);
  1150. + activeChar.broadcastUserInfo();
  1151. + activeChar.sendMessage("You have disabled skin.");
  1152. +
  1153. + }
  1154. + else
  1155. + {
  1156. + activeChar.setDressMeEnabled(true);
  1157. + activeChar.broadcastUserInfo();
  1158. + activeChar.sendMessage("You have activated " + Config.NAME3 + " skin.");
  1159. + }
  1160. + }
  1161. + else
  1162. + playable.sendMessage("Sorry, admin has disabled skins.");
  1163. + }
  1164. +}
  1165. \ No newline at end of file
  1166. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java
  1167. new file mode 100644
  1168. index 0000000..ef56658
  1169. --- /dev/null
  1170. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java
  1171. @@ -0,0 +1,64 @@
  1172. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1173. +
  1174. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1175. +
  1176. +import net.sf.l2j.Config;
  1177. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1178. +import net.sf.l2j.gameserver.model.WorldObject;
  1179. +import net.sf.l2j.gameserver.model.actor.Playable;
  1180. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1181. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1182. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1183. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1184. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1185. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1186. +import net.sf.l2j.gameserver.util.Broadcast;
  1187. +
  1188. +public class Skin4 implements IItemHandler
  1189. +{
  1190. + @Override
  1191. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1192. + {
  1193. + ThreadPool.schedule(new Runnable()
  1194. + {
  1195. + @Override
  1196. + public void run()
  1197. + {
  1198. + playable.setIsParalyzed(false);
  1199. + }
  1200. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1201. + final WorldObject oldTarget = playable.getTarget();
  1202. + playable.setTarget(playable);
  1203. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN4, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1204. + playable.setTarget(oldTarget);
  1205. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1206. + playable.setIsParalyzed(true);
  1207. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1208. + {
  1209. + if(!(playable instanceof Player))
  1210. + return;
  1211. + Player activeChar = (Player)playable;
  1212. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME4);
  1213. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME4);
  1214. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME4);
  1215. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME4);
  1216. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME4);
  1217. +
  1218. + if (activeChar.isDressMeEnabled())
  1219. + {
  1220. + activeChar.setDressMeEnabled(false);
  1221. + activeChar.broadcastUserInfo();
  1222. + activeChar.sendMessage("You have disabled skin.");
  1223. +
  1224. + }
  1225. + else
  1226. + {
  1227. + activeChar.setDressMeEnabled(true);
  1228. + activeChar.broadcastUserInfo();
  1229. + activeChar.sendMessage("You have activated " + Config.NAME4 + " skin.");
  1230. + }
  1231. + }
  1232. + else
  1233. + playable.sendMessage("Sorry, admin has disabled skins.");
  1234. + }
  1235. +}
  1236. \ No newline at end of file
  1237. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java
  1238. new file mode 100644
  1239. index 0000000..9c09ea7
  1240. --- /dev/null
  1241. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java
  1242. @@ -0,0 +1,64 @@
  1243. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1244. +
  1245. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1246. +
  1247. +import net.sf.l2j.Config;
  1248. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1249. +import net.sf.l2j.gameserver.model.WorldObject;
  1250. +import net.sf.l2j.gameserver.model.actor.Playable;
  1251. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1252. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1253. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1254. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1255. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1256. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1257. +import net.sf.l2j.gameserver.util.Broadcast;
  1258. +
  1259. +public class Skin5 implements IItemHandler
  1260. +{
  1261. + @Override
  1262. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1263. + {
  1264. + ThreadPool.schedule(new Runnable()
  1265. + {
  1266. + @Override
  1267. + public void run()
  1268. + {
  1269. + playable.setIsParalyzed(false);
  1270. + }
  1271. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1272. + final WorldObject oldTarget = playable.getTarget();
  1273. + playable.setTarget(playable);
  1274. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN5, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1275. + playable.setTarget(oldTarget);
  1276. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1277. + playable.setIsParalyzed(true);
  1278. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1279. + {
  1280. + if(!(playable instanceof Player))
  1281. + return;
  1282. + Player activeChar = (Player)playable;
  1283. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME5);
  1284. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME5);
  1285. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME5);
  1286. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME5);
  1287. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME5);
  1288. +
  1289. + if (activeChar.isDressMeEnabled())
  1290. + {
  1291. + activeChar.setDressMeEnabled(false);
  1292. + activeChar.broadcastUserInfo();
  1293. + activeChar.sendMessage("You have disabled skin.");
  1294. +
  1295. + }
  1296. + else
  1297. + {
  1298. + activeChar.setDressMeEnabled(true);
  1299. + activeChar.broadcastUserInfo();
  1300. + activeChar.sendMessage("You have activated " + Config.NAME5 + " skin.");
  1301. + }
  1302. + }
  1303. + else
  1304. + playable.sendMessage("Sorry, admin has disabled skins.");
  1305. + }
  1306. +}
  1307. \ No newline at end of file
  1308. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java
  1309. new file mode 100644
  1310. index 0000000..65ee725
  1311. --- /dev/null
  1312. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java
  1313. @@ -0,0 +1,63 @@
  1314. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1315. +
  1316. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1317. +
  1318. +import net.sf.l2j.Config;
  1319. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1320. +import net.sf.l2j.gameserver.model.WorldObject;
  1321. +import net.sf.l2j.gameserver.model.actor.Playable;
  1322. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1323. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1324. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1325. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1326. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1327. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1328. +import net.sf.l2j.gameserver.util.Broadcast;
  1329. +
  1330. +public class Skin6 implements IItemHandler
  1331. +{
  1332. + @Override
  1333. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1334. + {
  1335. + ThreadPool.schedule(new Runnable()
  1336. + {
  1337. + @Override
  1338. + public void run()
  1339. + {
  1340. + playable.setIsParalyzed(false);
  1341. + }
  1342. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1343. + final WorldObject oldTarget = playable.getTarget();
  1344. + playable.setTarget(playable);
  1345. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN6, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1346. + playable.setTarget(oldTarget);
  1347. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1348. + playable.setIsParalyzed(true);
  1349. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1350. + {
  1351. + if(!(playable instanceof Player))
  1352. + return;
  1353. + Player activeChar = (Player)playable;
  1354. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME6);
  1355. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME6);
  1356. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME6);
  1357. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME6);
  1358. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME6);
  1359. +
  1360. + if (activeChar.isDressMeEnabled())
  1361. + {
  1362. + activeChar.setDressMeEnabled(false);
  1363. + activeChar.broadcastUserInfo();
  1364. + activeChar.sendMessage("You have disabled skin.");
  1365. + }
  1366. + else
  1367. + {
  1368. + activeChar.setDressMeEnabled(true);
  1369. + activeChar.broadcastUserInfo();
  1370. + activeChar.sendMessage("You have activated " + Config.NAME6 + " skin.");
  1371. + }
  1372. + }
  1373. + else
  1374. + playable.sendMessage("Sorry, admin has disabled skins.");
  1375. + }
  1376. +}
  1377. \ No newline at end of file
  1378. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java
  1379. new file mode 100644
  1380. index 0000000..b1ea7a9
  1381. --- /dev/null
  1382. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java
  1383. @@ -0,0 +1,63 @@
  1384. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1385. +
  1386. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1387. +
  1388. +import net.sf.l2j.Config;
  1389. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1390. +import net.sf.l2j.gameserver.model.WorldObject;
  1391. +import net.sf.l2j.gameserver.model.actor.Playable;
  1392. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1393. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1394. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1395. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1396. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1397. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1398. +import net.sf.l2j.gameserver.util.Broadcast;
  1399. +
  1400. +public class Skin7 implements IItemHandler
  1401. +{
  1402. + @Override
  1403. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1404. + {
  1405. + ThreadPool.schedule(new Runnable()
  1406. + {
  1407. + @Override
  1408. + public void run()
  1409. + {
  1410. + playable.setIsParalyzed(false);
  1411. + }
  1412. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1413. + final WorldObject oldTarget = playable.getTarget();
  1414. + playable.setTarget(playable);
  1415. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN7, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1416. + playable.setTarget(oldTarget);
  1417. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1418. + playable.setIsParalyzed(true);
  1419. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1420. + {
  1421. + if(!(playable instanceof Player))
  1422. + return;
  1423. + Player activeChar = (Player)playable;
  1424. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME7);
  1425. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME7);
  1426. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME7);
  1427. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME7);
  1428. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME7);
  1429. +
  1430. + if (activeChar.isDressMeEnabled())
  1431. + {
  1432. + activeChar.setDressMeEnabled(false);
  1433. + activeChar.broadcastUserInfo();
  1434. + activeChar.sendMessage("You have disabled skin.");
  1435. + }
  1436. + else
  1437. + {
  1438. + activeChar.setDressMeEnabled(true);
  1439. + activeChar.broadcastUserInfo();
  1440. + activeChar.sendMessage("You have activated " + Config.NAME7 + " skin.");
  1441. + }
  1442. + }
  1443. + else
  1444. + playable.sendMessage("Sorry, admin has disabled skins.");
  1445. + }
  1446. +}
  1447. \ No newline at end of file
  1448. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java
  1449. new file mode 100644
  1450. index 0000000..9dfe328
  1451. --- /dev/null
  1452. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java
  1453. @@ -0,0 +1,63 @@
  1454. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1455. +
  1456. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1457. +
  1458. +import net.sf.l2j.Config;
  1459. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1460. +import net.sf.l2j.gameserver.model.WorldObject;
  1461. +import net.sf.l2j.gameserver.model.actor.Playable;
  1462. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1463. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1464. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1465. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1466. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1467. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1468. +import net.sf.l2j.gameserver.util.Broadcast;
  1469. +
  1470. +public class Skin8 implements IItemHandler
  1471. +{
  1472. + @Override
  1473. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1474. + {
  1475. + ThreadPool.schedule(new Runnable()
  1476. + {
  1477. + @Override
  1478. + public void run()
  1479. + {
  1480. + playable.setIsParalyzed(false);
  1481. + }
  1482. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1483. + final WorldObject oldTarget = playable.getTarget();
  1484. + playable.setTarget(playable);
  1485. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN8, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1486. + playable.setTarget(oldTarget);
  1487. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1488. + playable.setIsParalyzed(true);
  1489. + if (Config.ALLOW_DRESS_ME_SYSTEM)
  1490. + {
  1491. + if (!(playable instanceof Player))
  1492. + return;
  1493. + Player activeChar = (Player) playable;
  1494. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME8);
  1495. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME8);
  1496. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME8);
  1497. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME8);
  1498. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME8);
  1499. +
  1500. + if (activeChar.isDressMeEnabled())
  1501. + {
  1502. + activeChar.setDressMeEnabled(false);
  1503. + activeChar.broadcastUserInfo();
  1504. + activeChar.sendMessage("You have disabled skin.");
  1505. + }
  1506. + else
  1507. + {
  1508. + activeChar.setDressMeEnabled(true);
  1509. + activeChar.broadcastUserInfo();
  1510. + activeChar.sendMessage("You have activated " + Config.NAME8 + " skin.");
  1511. + }
  1512. + }
  1513. + else
  1514. + playable.sendMessage("Sorry, admin has disabled skins.");
  1515. + }
  1516. +}
  1517. \ No newline at end of file
  1518. diff --git a/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java
  1519. new file mode 100644
  1520. index 0000000..359d5c8
  1521. --- /dev/null
  1522. +++ b/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java
  1523. @@ -0,0 +1,63 @@
  1524. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1525. +
  1526. +import net.sf.l2j.commons.concurrent.ThreadPool;
  1527. +
  1528. +import net.sf.l2j.Config;
  1529. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1530. +import net.sf.l2j.gameserver.model.WorldObject;
  1531. +import net.sf.l2j.gameserver.model.actor.Playable;
  1532. +import net.sf.l2j.gameserver.model.actor.instance.Player;
  1533. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1534. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1535. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1536. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1537. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge.GaugeColor;
  1538. +import net.sf.l2j.gameserver.util.Broadcast;
  1539. +
  1540. +public class Skin9 implements IItemHandler
  1541. +{
  1542. + @Override
  1543. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1544. + {
  1545. + ThreadPool.schedule(new Runnable()
  1546. + {
  1547. + @Override
  1548. + public void run()
  1549. + {
  1550. + playable.setIsParalyzed(false);
  1551. + }
  1552. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1553. + final WorldObject oldTarget = playable.getTarget();
  1554. + playable.setTarget(playable);
  1555. + Broadcast.toSelfAndKnownPlayers(playable, new MagicSkillUse(playable, Config.SKILL_ID_SKIN9, 1, Config.SEGUNDS_SKILL_ANIMATION, 0));
  1556. + playable.setTarget(oldTarget);
  1557. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1558. + playable.setIsParalyzed(true);
  1559. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1560. + {
  1561. + if(!(playable instanceof Player))
  1562. + return;
  1563. + Player activeChar = (Player)playable;
  1564. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME9);
  1565. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME9);
  1566. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME9);
  1567. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME9);
  1568. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME9);
  1569. +
  1570. + if (activeChar.isDressMeEnabled())
  1571. + {
  1572. + activeChar.setDressMeEnabled(false);
  1573. + activeChar.broadcastUserInfo();
  1574. + activeChar.sendMessage("You have disabled skin.");
  1575. + }
  1576. + else
  1577. + {
  1578. + activeChar.setDressMeEnabled(true);
  1579. + activeChar.broadcastUserInfo();
  1580. + activeChar.sendMessage("You have activated " + Config.NAME9 + " skin.");
  1581. + }
  1582. + }
  1583. + else
  1584. + playable.sendMessage("Sorry, admin has disabled skins.");
  1585. + }
  1586. +}
  1587. \ No newline at end of file
  1588. diff --git a/java/net/sf/l2j/gameserver/model/actor/instance/Player.java b/java/net/sf/l2j/gameserver/model/actor/instance/Player.java
  1589. index 82f58e2..5431567 100644
  1590. --- a/java/net/sf/l2j/gameserver/model/actor/instance/Player.java
  1591. +++ b/java/net/sf/l2j/gameserver/model/actor/instance/Player.java
  1592. @@ -39,6 +39,7 @@
  1593. import net.sf.l2j.gameserver.data.SkillTable;
  1594. import net.sf.l2j.gameserver.data.SkillTable.FrequentSkill;
  1595. import net.sf.l2j.gameserver.data.SkillTreeTable;
  1596. +import net.sf.l2j.gameserver.data.manager.DressMeData;
  1597. import net.sf.l2j.gameserver.data.sql.ClanTable;
  1598. import net.sf.l2j.gameserver.data.xml.AdminData;
  1599. import net.sf.l2j.gameserver.data.xml.FishData;
  1600. @@ -10473,7 +10474,27 @@
  1601. {
  1602. _requestedGate = door;
  1603. }
  1604. + private DressMeData _dressmedata = null;
  1605. + private boolean _dressed = false;
  1606. + public DressMeData getDressMeData()
  1607. + {
  1608. + return _dressmedata;
  1609. + }
  1610.  
  1611. + public void setDressMeData(DressMeData val)
  1612. + {
  1613. + _dressmedata = val;
  1614. + }
  1615. +
  1616. + public boolean isDressMeEnabled()
  1617. + {
  1618. + return _dressed;
  1619. + }
  1620. +
  1621. + public void setDressMeEnabled(boolean val)
  1622. + {
  1623. + _dressed = val;
  1624. + }
  1625. @Override
  1626. public boolean polymorph(PolyType type, int npcId)
  1627. {
  1628. diff --git a/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java b/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1629. index f43c397..499d82a 100644
  1630. --- a/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1631. +++ b/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1632. @@ -6,6 +6,7 @@
  1633.  
  1634. import net.sf.l2j.Config;
  1635. import net.sf.l2j.gameserver.communitybbs.CommunityBoard;
  1636. +import net.sf.l2j.gameserver.data.manager.DressMeData;
  1637. import net.sf.l2j.gameserver.data.xml.AdminData;
  1638. import net.sf.l2j.gameserver.handler.AdminCommandHandler;
  1639. import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
  1640. @@ -15,6 +16,7 @@
  1641. import net.sf.l2j.gameserver.model.actor.instance.OlympiadManagerNpc;
  1642. import net.sf.l2j.gameserver.model.actor.instance.Player;
  1643. import net.sf.l2j.gameserver.model.entity.Hero;
  1644. +import net.sf.l2j.gameserver.model.itemcontainer.Inventory;
  1645. import net.sf.l2j.gameserver.model.olympiad.OlympiadManager;
  1646. import net.sf.l2j.gameserver.network.FloodProtectors;
  1647. import net.sf.l2j.gameserver.network.FloodProtectors.Action;
  1648. @@ -175,7 +177,201 @@
  1649. _log.log(Level.WARNING, "Bad RequestBypassToServer: " + e, e);
  1650. }
  1651. }
  1652. -
  1653. + public static void setPart(Player p, String part, String type)
  1654. + {
  1655. + if (p.getDressMeData() == null)
  1656. + {
  1657. + DressMeData dmd = new DressMeData();
  1658. + p.setDressMeData(dmd);
  1659. + }
  1660. +
  1661. + switch (part)
  1662. + {
  1663. +
  1664. + case "helmet":
  1665. + {
  1666. + if (Config.DRESS_ME_HELMET.keySet().contains(type))
  1667. + {
  1668. + p.getDressMeData().setHelmetId(Config.DRESS_ME_HELMET.get(type));
  1669. + }
  1670. +
  1671. + break;
  1672. + }
  1673. +
  1674. +
  1675. + case "chest":
  1676. + {
  1677. + if (Config.DRESS_ME_CHESTS.keySet().contains(type))
  1678. + {
  1679. + p.getDressMeData().setChestId(Config.DRESS_ME_CHESTS.get(type));
  1680. + }
  1681. +
  1682. + break;
  1683. + }
  1684. + case "legs":
  1685. + {
  1686. + if (Config.DRESS_ME_LEGS.keySet().contains(type))
  1687. + {
  1688. + p.getDressMeData().setLegsId(Config.DRESS_ME_LEGS.get(type));
  1689. + }
  1690. +
  1691. + break;
  1692. + }
  1693. + case "gloves":
  1694. + {
  1695. + if (Config.DRESS_ME_GLOVES.keySet().contains(type))
  1696. + {
  1697. + p.getDressMeData().setGlovesId(Config.DRESS_ME_GLOVES.get(type));
  1698. + }
  1699. +
  1700. + break;
  1701. + }
  1702. + case "boots":
  1703. + {
  1704. + if (Config.DRESS_ME_BOOTS.keySet().contains(type))
  1705. + {
  1706. + p.getDressMeData().setBootsId(Config.DRESS_ME_BOOTS.get(type));
  1707. + }
  1708. +
  1709. + break;
  1710. + }
  1711. +
  1712. + }
  1713. +
  1714. + p.broadcastUserInfo();
  1715. + // sendEditWindow(p, part);
  1716. + }
  1717. + public static void stealTarget(Player p, String part)
  1718. + {
  1719. + if (p.getTarget() == null || !(p.getTarget() instanceof Player))
  1720. + {
  1721. + p.sendMessage("Invalid target.");
  1722. + return;
  1723. + }
  1724. +
  1725. + Player t = (Player)p.getTarget();
  1726. +
  1727. + if (p.getDressMeData() == null)
  1728. + {
  1729. + DressMeData dmd = new DressMeData();
  1730. + p.setDressMeData(dmd);
  1731. + }
  1732. +
  1733. +
  1734. + switch (part)
  1735. + {
  1736. + case "helmet":
  1737. + {
  1738. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE) == null)
  1739. + {
  1740. + p.getDressMeData().setHelmetId(0);
  1741. + }
  1742. + else
  1743. + {
  1744. + p.getDressMeData().setHelmetId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE).getItemId());
  1745. + }
  1746. + break;
  1747. + }
  1748. +
  1749. + case "chest":
  1750. + {
  1751. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null)
  1752. + {
  1753. + p.getDressMeData().setChestId(0);
  1754. + }
  1755. + else
  1756. + {
  1757. + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId());
  1758. + }
  1759. + break;
  1760. + }
  1761. + case "legs":
  1762. + {
  1763. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null)
  1764. + {
  1765. + p.getDressMeData().setLegsId(0);
  1766. + }
  1767. + else
  1768. + {
  1769. + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId());
  1770. + }
  1771. + break;
  1772. + }
  1773. + case "gloves":
  1774. + {
  1775. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null)
  1776. + {
  1777. + p.getDressMeData().setGlovesId(0);
  1778. + }
  1779. + else
  1780. + {
  1781. + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId());
  1782. + }
  1783. + break;
  1784. + }
  1785. + case "boots":
  1786. + {
  1787. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null)
  1788. + {
  1789. + p.getDressMeData().setBootsId(0);
  1790. + }
  1791. + else
  1792. + {
  1793. + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId());
  1794. + }
  1795. + break;
  1796. + }
  1797. + case "all":
  1798. + {
  1799. +
  1800. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE) == null)
  1801. + {
  1802. + p.getDressMeData().setHelmetId(0);
  1803. + }
  1804. + else
  1805. + {
  1806. + p.getDressMeData().setHelmetId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE).getItemId());
  1807. + }
  1808. +
  1809. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST) == null)
  1810. + {
  1811. + p.getDressMeData().setChestId(0);
  1812. + }
  1813. + else
  1814. + {
  1815. + p.getDressMeData().setChestId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST).getItemId());
  1816. + }
  1817. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS) == null)
  1818. + {
  1819. + p.getDressMeData().setLegsId(0);
  1820. + }
  1821. + else
  1822. + {
  1823. + p.getDressMeData().setLegsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS).getItemId());
  1824. + }
  1825. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES) == null)
  1826. + {
  1827. + p.getDressMeData().setGlovesId(0);
  1828. + }
  1829. + else
  1830. + {
  1831. + p.getDressMeData().setGlovesId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_GLOVES).getItemId());
  1832. + }
  1833. + if (t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET) == null)
  1834. + {
  1835. + p.getDressMeData().setBootsId(0);
  1836. + }
  1837. + else
  1838. + {
  1839. + p.getDressMeData().setBootsId(t.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FEET).getItemId());
  1840. + }
  1841. +
  1842. + break;
  1843. + }
  1844. + }
  1845. +
  1846. + p.broadcastUserInfo();
  1847. + }
  1848. private static void playerHelp(Player activeChar, String path)
  1849. {
  1850. if (path.indexOf("..") != -1)
  1851. diff --git a/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java b/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1852. index 2432514..5219622 100644
  1853. --- a/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1854. +++ b/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1855. @@ -45,7 +45,8 @@
  1856. writeD(_activeChar.getClassId().getId());
  1857. else
  1858. writeD(_activeChar.getBaseClass());
  1859.  
  1860. + if (!_activeChar.isDressMeEnabled())
  1861. + {
  1862. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL));
  1863. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1864. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1865. @@ -58,7 +59,23 @@
  1866. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1867. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  1868. writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  1869. + }
  1870. + else
  1871. + {
  1872. +
  1873. + writeD(_inv.getPaperdollObjectId(Inventory.PAPERDOLL_HAIRALL));
  1874. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1875. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1876. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  1877. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  1878. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  1879. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  1880. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  1881. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  1882. + writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1883. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId()));
  1884. + writeD(_inv.getPaperdollObjectId(Inventory.PAPERDOLL_HAIR));
  1885. + }
  1886. // c6 new h's
  1887. writeH(0x00);
  1888. writeH(0x00);
  1889. diff --git a/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java b/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1890. index b36c25a..af49dd4 100644
  1891. --- a/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1892. +++ b/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1893. @@ -64,7 +64,8 @@
  1894. writeD(_activeChar.getMaxLoad());
  1895.  
  1896. writeD(_activeChar.getActiveWeaponItem() != null ? 40 : 20); // 20 no weapon, 40 weapon equipped
  1897.  
  1898. + if (!_activeChar.isDressMeEnabled())
  1899. + {
  1900. writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIRALL));
  1901. writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));
  1902. writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR));
  1903. @@ -100,6 +101,47 @@
  1904. writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND));
  1905. writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
  1906. writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE));
  1907. + }
  1908. + else
  1909. + {
  1910. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL) : _activeChar.getDressMeData().getHelmetId()));
  1911. +
  1912. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));
  1913. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEAR));
  1914. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_NECK));
  1915. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RFINGER));
  1916. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LFINGER));
  1917. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HEAD));
  1918. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1919. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LHAND));
  1920. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  1921. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  1922. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  1923. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  1924. + writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_BACK));
  1925. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1926. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : _activeChar.getDressMeData().getHelmetId()));
  1927. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId()));
  1928. +
  1929. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL) : _activeChar.getDressMeData().getHelmetId()));
  1930. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_REAR));
  1931. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEAR));
  1932. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_NECK));
  1933. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RFINGER));
  1934. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LFINGER));
  1935. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
  1936. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1937. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LHAND));
  1938. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : (_activeChar.getDressMeData().getGlovesId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_GLOVES) : _activeChar.getDressMeData().getGlovesId()));
  1939. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : (_activeChar.getDressMeData().getChestId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_CHEST) : _activeChar.getDressMeData().getChestId()));
  1940. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : (_activeChar.getDressMeData().getLegsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_LEGS) : _activeChar.getDressMeData().getLegsId()));
  1941. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : (_activeChar.getDressMeData().getBootsId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FEET) : _activeChar.getDressMeData().getBootsId()));
  1942. + writeD(_activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_BACK));
  1943. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : (_activeChar.getDressMeData().getWeapId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_RHAND) : _activeChar.getDressMeData().getWeapId()));
  1944. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_HAIR) : _activeChar.getDressMeData().getHelmetId()));
  1945. + writeD(_activeChar.getDressMeData() == null ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : (_activeChar.getDressMeData().getHelmetId() == 0 ? _activeChar.getInventory().getPaperdollItemId(Inventory.PAPERDOLL_FACE) : _activeChar.getDressMeData().getHelmetId()));
  1946. +
  1947. + }
  1948.  
  1949. // c6 new h's
  1950. writeH(0x00);
  1951.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement