Advertisement
Sarada-L2

Skin Click Acis 398+

Oct 29th, 2021
1,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.50 KB | None | 0 0
  1. diff --git a/aCis_gameserver/config/Skin.properties b/aCis_gameserver/config/Skin.properties
  2. new file mode 100644
  3. index 0000000..4c3069e
  4. --- /dev/null
  5. +++ b/aCis_gameserver/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/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
  202. index a2139f4..a5568dc 100644
  203. --- a/aCis_gameserver/java/net/sf/l2j/Config.java
  204. +++ b/aCis_gameserver/java/net/sf/l2j/Config.java
  205. @@ -35,6 +35,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. @@ -113,6 +114,61 @@
  214. public static int CH_FRONT1_FEE;
  215. public static int CH_FRONT2_FEE;
  216.  
  217. + /**Variaveis Skin Click*/
  218. + public static int SEGUNDS_SKILL_ANIMATION;
  219. + public static int SKILL_ID_SKIN1;
  220. + public static int SKILL_ID_SKIN2;
  221. + public static int SKILL_ID_SKIN3;
  222. + public static int SKILL_ID_SKIN4;
  223. + public static int SKILL_ID_SKIN5;
  224. + public static int SKILL_ID_SKIN6;
  225. + public static int SKILL_ID_SKIN7;
  226. + public static int SKILL_ID_SKIN8;
  227. + public static int SKILL_ID_SKIN9;
  228. + public static int SKILL_ID_SKIN10;
  229. + public static int SKILL_ID_SKIN11;
  230. + public static int SKILL_ID_SKIN12;
  231. + public static int SKILL_ID_SKIN13;
  232. + public static int SKILL_ID_SKIN14;
  233. + public static int SKILL_ID_SKIN15;
  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. + public static String NAME1;
  256. + public static String NAME2;
  257. + public static String NAME3;
  258. + public static String NAME4;
  259. + public static String NAME5;
  260. + public static String NAME6;
  261. + public static String NAME7;
  262. + public static String NAME8;
  263. + public static String NAME9;
  264. + public static String NAME10;
  265. + public static String NAME11;
  266. + public static String NAME12;
  267. + public static String NAME13;
  268. + public static String NAME14;
  269. + public static String NAME15;
  270.  
  271. // --------------------------------------------------
  272. // Events settings
  273. // --------------------------------------------------
  274. @@ -721,6 +777,102 @@
  275. }
  276.  
  277. + /**
  278. + * Loads Skin Click settings.<br>
  279. + */
  280. + private static final void loadSkin()
  281. + {
  282. + final ExProperties Skins = initProperties(SKIN_FILE);
  283. + SEGUNDS_SKILL_ANIMATION = Integer.parseInt(Skins.getProperty("SkillEffectsTime", "0"));
  284. + SKILL_ID_SKIN1 = Integer.parseInt(Skins.getProperty("SkillIDSkin1", "0"));
  285. + SKILL_ID_SKIN2 = Integer.parseInt(Skins.getProperty("SkillIDSkin2", "0"));
  286. + SKILL_ID_SKIN3 = Integer.parseInt(Skins.getProperty("SkillIDSkin3", "0"));
  287. + SKILL_ID_SKIN4 = Integer.parseInt(Skins.getProperty("SkillIDSkin4", "0"));
  288. + SKILL_ID_SKIN5 = Integer.parseInt(Skins.getProperty("SkillIDSkin5", "0"));
  289. + SKILL_ID_SKIN6 = Integer.parseInt(Skins.getProperty("SkillIDSkin6", "0"));
  290. + SKILL_ID_SKIN7 = Integer.parseInt(Skins.getProperty("SkillIDSkin7", "0"));
  291. + SKILL_ID_SKIN8 = Integer.parseInt(Skins.getProperty("SkillIDSkin8", "0"));
  292. + SKILL_ID_SKIN9 = Integer.parseInt(Skins.getProperty("SkillIDSkin9", "0"));
  293. + SKILL_ID_SKIN10 = Integer.parseInt(Skins.getProperty("SkillIDSkin10", "0"));
  294. + SKILL_ID_SKIN11 = Integer.parseInt(Skins.getProperty("SkillIDSkin11", "0"));
  295. + SKILL_ID_SKIN12 = Integer.parseInt(Skins.getProperty("SkillIDSkin12", "0"));
  296. + SKILL_ID_SKIN13 = Integer.parseInt(Skins.getProperty("SkillIDSkin13", "0"));
  297. + SKILL_ID_SKIN14 = Integer.parseInt(Skins.getProperty("SkillIDSkin14", "0"));
  298. + SKILL_ID_SKIN15 = Integer.parseInt(Skins.getProperty("SkillIDSkin15", "0"));
  299. + ALLOW_DRESS_ME_SYSTEM = Boolean.parseBoolean(Skins.getProperty("AllowDressMeSystem", "false"));
  300. + SKIN_NAME1 = String.valueOf(Skins.getProperty("SkinName1", "SkinName"));
  301. + SKIN_NAME2 = String.valueOf(Skins.getProperty("SkinName2", "SkinName"));
  302. + SKIN_NAME3 = String.valueOf(Skins.getProperty("SkinName3", "SkinName"));
  303. + SKIN_NAME4 = String.valueOf(Skins.getProperty("SkinName4", "SkinName"));
  304. + SKIN_NAME5 = String.valueOf(Skins.getProperty("SkinName5", "SkinName"));
  305. + SKIN_NAME6 = String.valueOf(Skins.getProperty("SkinName6", "SkinName"));
  306. + SKIN_NAME7 = String.valueOf(Skins.getProperty("SkinName7", "SkinName"));
  307. + SKIN_NAME8 = String.valueOf(Skins.getProperty("SkinName8", "SkinName"));
  308. + SKIN_NAME9 = String.valueOf(Skins.getProperty("SkinName9", "SkinName"));
  309. + SKIN_NAME10 = String.valueOf(Skins.getProperty("SkinName10", "SkinName"));
  310. + SKIN_NAME11 = String.valueOf(Skins.getProperty("SkinName11", "SkinName"));
  311. + SKIN_NAME12 = String.valueOf(Skins.getProperty("SkinName12", "SkinName"));
  312. + SKIN_NAME13 = String.valueOf(Skins.getProperty("SkinName13", "SkinName"));
  313. + SKIN_NAME14 = String.valueOf(Skins.getProperty("SkinName14", "SkinName"));
  314. + SKIN_NAME15 = String.valueOf(Skins.getProperty("SkinName15", "SkinName"));
  315. +
  316. + String temp = Skins.getProperty("DressMeChests", "");
  317. + String[] temp2 = temp.split(";");
  318. + for (String s : temp2)
  319. + {
  320. + String[] t = s.split(",");
  321. + DRESS_ME_CHESTS.put(t[0], Integer.parseInt(t[1]));
  322. + }
  323. +
  324. + temp = Skins.getProperty("DressMeHair", "");
  325. + temp2 = temp.split(";");
  326. + for (String s : temp2)
  327. + {
  328. + String[] t = s.split(",");
  329. + DRESS_ME_HELMET.put(t[0], Integer.parseInt(t[1]));
  330. + }
  331. +
  332. +
  333. + temp = Skins.getProperty("DressMeLegs", "");
  334. + temp2 = temp.split(";");
  335. + for (String s : temp2)
  336. + {
  337. + String[] t = s.split(",");
  338. + DRESS_ME_LEGS.put(t[0], Integer.parseInt(t[1]));
  339. + }
  340. + temp = Skins.getProperty("DressMeBoots", "");
  341. + temp2 = temp.split(";");
  342. + for (String s : temp2)
  343. + {
  344. + String[] t = s.split(",");
  345. + DRESS_ME_BOOTS.put(t[0], Integer.parseInt(t[1]));
  346. + }
  347. + temp = Skins.getProperty("DressMeGloves", "");
  348. + temp2 = temp.split(";");
  349. + for (String s : temp2)
  350. + {
  351. + String[] t = s.split(",");
  352. + DRESS_ME_GLOVES.put(t[0], Integer.parseInt(t[1]));
  353. + }
  354. +
  355. + NAME1 = Skins.getProperty("NameArmor1", " Skins Dressme");
  356. + NAME2 = Skins.getProperty("NameArmor2", " Skins Dressme");
  357. + NAME3 = Skins.getProperty("NameArmor3", " Skins Dressme");
  358. + NAME4 = Skins.getProperty("NameArmor4", " Skins Dressme");
  359. + NAME5 = Skins.getProperty("NameArmor5", " Skins Dressme");
  360. + NAME6 = Skins.getProperty("NameArmor6", " Skins Dressme");
  361. + NAME7 = Skins.getProperty("NameArmor7", " Skins Dressme");
  362. + NAME8 = Skins.getProperty("NameArmor8", " Skins Dressme");
  363. + NAME9 = Skins.getProperty("NameArmor9", " Skins Dressme");
  364. + NAME10 = Skins.getProperty("NameArmor10", " Skins Dressme");
  365. + NAME11 = Skins.getProperty("NameArmor11", " Skins Dressme");
  366. + NAME12 = Skins.getProperty("NameArmor12", " Skins Dressme");
  367. + NAME13 = Skins.getProperty("NameArmor13", " Skins Dressme");
  368. + NAME14 = Skins.getProperty("NameArmor14", " Skins Dressme");
  369. + NAME15 = Skins.getProperty("NameArmor15", " Skins Dressme");
  370. + }
  371. /**
  372. * Loads event settings.<br>
  373. * Such as olympiad, seven signs festival, four sepulchures, dimensional rift, weddings, lottery, fishing championship.
  374. */
  375. @@ -1278,6 +1430,9 @@
  376. // events settings
  377. loadEvents();
  378.  
  379. + // Loads Skin Click
  380. + loadSkin();
  381.  
  382. // geoengine settings
  383. loadGeoengine();
  384.  
  385. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/DressMeData.java b/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/DressMeData.java
  386. new file mode 100644
  387. index 0000000..2b78d86
  388. --- /dev/null
  389. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/data/xml/DressMeData.java
  390. @@ -0,0 +1,81 @@
  391. +package net.sf.l2j.gameserver.data.xml;
  392. +
  393. +public class DressMeData
  394. +{
  395. + private int chestId,
  396. + helmetId,
  397. + legsId,
  398. + glovesId,
  399. + feetId,
  400. + weapId;
  401. +
  402. + public DressMeData()
  403. + {
  404. + helmetId = 0;
  405. + chestId = 0;
  406. + legsId = 0;
  407. + glovesId = 0;
  408. + feetId = 0;
  409. + weapId = 0;
  410. + }
  411. +
  412. + public int getHelmetId()
  413. + {
  414. + return helmetId;
  415. + }
  416. +
  417. + public int getChestId()
  418. + {
  419. + return chestId;
  420. + }
  421. +
  422. + public int getLegsId()
  423. + {
  424. + return legsId;
  425. + }
  426. +
  427. + public int getGlovesId()
  428. + {
  429. + return glovesId;
  430. + }
  431. +
  432. + public int getBootsId()
  433. + {
  434. + return feetId;
  435. + }
  436. +
  437. + public int getWeapId()
  438. + {
  439. + return weapId;
  440. + }
  441. +
  442. + public void setHelmetId(int val)
  443. + {
  444. + helmetId = val;
  445. + }
  446. +
  447. + public void setChestId(int val)
  448. + {
  449. + chestId = val;
  450. + }
  451. +
  452. + public void setLegsId(int val)
  453. + {
  454. + legsId = val;
  455. + }
  456. +
  457. + public void setGlovesId(int val)
  458. + {
  459. + glovesId = val;
  460. + }
  461. +
  462. + public void setBootsId(int val)
  463. + {
  464. + feetId = val;
  465. + }
  466. +
  467. + public void setWeapId(int val)
  468. + {
  469. + weapId = val;
  470. + }
  471. +}
  472. \ No newline at end of file
  473. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/ItemHandler.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  474. index cf6ae07..4b00458 100644
  475. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  476. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/ItemHandler.java
  477. @@ -24,6 +24,21 @@
  478. import net.sf.l2j.gameserver.handler.itemhandlers.ScrollsOfResurrection;
  479. import net.sf.l2j.gameserver.handler.itemhandlers.Seeds;
  480. import net.sf.l2j.gameserver.handler.itemhandlers.SevenSignsRecords;
  481. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin1;
  482. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin10;
  483. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin11;
  484. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin12;
  485. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin13;
  486. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin14;
  487. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin15;
  488. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin2;
  489. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin3;
  490. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin4;
  491. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin5;
  492. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin6;
  493. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin7;
  494. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin8;
  495. +import net.sf.l2j.gameserver.handler.itemhandlers.Skin9;
  496. import net.sf.l2j.gameserver.handler.itemhandlers.SoulCrystals;
  497. import net.sf.l2j.gameserver.handler.itemhandlers.SoulShots;
  498. import net.sf.l2j.gameserver.handler.itemhandlers.SpecialXMas;
  499. @@ -37,6 +52,21 @@
  500.  
  501. protected ItemHandler()
  502. {
  503. + registerHandler(new Skin1());
  504. + registerHandler(new Skin2());
  505. + registerHandler(new Skin3());
  506. + registerHandler(new Skin4());
  507. + registerHandler(new Skin5());
  508. + registerHandler(new Skin6());
  509. + registerHandler(new Skin7());
  510. + registerHandler(new Skin8());
  511. + registerHandler(new Skin9());
  512. + registerHandler(new Skin10());
  513. + registerHandler(new Skin11());
  514. + registerHandler(new Skin12());
  515. + registerHandler(new Skin13());
  516. + registerHandler(new Skin14());
  517. + registerHandler(new Skin15());
  518. registerHandler(new BeastSoulShots());
  519. registerHandler(new BeastSpices());
  520. registerHandler(new BeastSpiritShots());
  521. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java
  522. new file mode 100644
  523. index 0000000..0191bcb
  524. --- /dev/null
  525. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin1.java
  526. @@ -0,0 +1,66 @@
  527. +package net.sf.l2j.gameserver.handler.itemhandlers;
  528. +
  529. +import net.sf.l2j.Config;
  530. +import net.sf.l2j.commons.pool.ThreadPool;
  531. +import net.sf.l2j.gameserver.enums.GaugeColor;
  532. +import net.sf.l2j.gameserver.handler.IItemHandler;
  533. +import net.sf.l2j.gameserver.model.WorldObject;
  534. +import net.sf.l2j.gameserver.model.actor.Playable;
  535. +import net.sf.l2j.gameserver.model.actor.Player;
  536. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  537. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  538. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  539. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  540. +
  541. +public class Skin1 implements IItemHandler
  542. +
  543. +{
  544. + @Override
  545. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  546. + {
  547. + ThreadPool.schedule(new Runnable()
  548. + {
  549. + @Override
  550. + public void run()
  551. + {
  552. + playable.setIsParalyzed(false);
  553. + }
  554. + }, Config.SEGUNDS_SKILL_ANIMATION);
  555. + final Player player = playable.getActingPlayer();
  556. + final WorldObject oldTarget = playable.getTarget();
  557. + playable.setTarget(playable);
  558. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN1, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  559. + playable.setTarget(oldTarget);
  560. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  561. + playable.setIsParalyzed(true);
  562. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  563. + {
  564. + if(!(playable instanceof Player))
  565. + return;
  566. +
  567. + Player activeChar = (Player)playable;
  568. +
  569. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME1);
  570. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1);
  571. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1);
  572. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1);
  573. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1);
  574. +
  575. + if (activeChar.isDressMeEnabled())
  576. + {
  577. + activeChar.setDressMeEnabled(false);
  578. + activeChar.broadcastUserInfo();
  579. + activeChar.sendMessage("You have disabled skin.");
  580. + }
  581. + else
  582. + {
  583. + activeChar.setDressMeEnabled(true);
  584. + activeChar.broadcastUserInfo();
  585. + activeChar.sendMessage("You have activated " + Config.NAME1 + " skin.");
  586. + }
  587. + }
  588. + else
  589. + playable.sendMessage("Sorry, admin has disabled skins.");
  590. + }
  591. +}
  592. \ No newline at end of file
  593. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java
  594. new file mode 100644
  595. index 0000000..cebeef9
  596. --- /dev/null
  597. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin10.java
  598. @@ -0,0 +1,63 @@
  599. +package net.sf.l2j.gameserver.handler.itemhandlers;
  600. +
  601. +import net.sf.l2j.Config;
  602. +import net.sf.l2j.commons.pool.ThreadPool;
  603. +import net.sf.l2j.gameserver.enums.GaugeColor;
  604. +import net.sf.l2j.gameserver.handler.IItemHandler;
  605. +import net.sf.l2j.gameserver.model.WorldObject;
  606. +import net.sf.l2j.gameserver.model.actor.Playable;
  607. +import net.sf.l2j.gameserver.model.actor.Player;
  608. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  609. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  610. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  611. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  612. +
  613. +public class Skin10 implements IItemHandler
  614. +{
  615. + @Override
  616. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  617. + {
  618. + ThreadPool.schedule(new Runnable()
  619. + {
  620. + @Override
  621. + public void run()
  622. + {
  623. + playable.setIsParalyzed(false);
  624. + }
  625. + }, Config.SEGUNDS_SKILL_ANIMATION);
  626. + final Player player = playable.getActingPlayer();
  627. + final WorldObject oldTarget = playable.getTarget();
  628. + playable.setTarget(playable);
  629. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN10, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  630. + playable.setTarget(oldTarget);
  631. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  632. + playable.setIsParalyzed(true);
  633. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  634. + {
  635. + if(!(playable instanceof Player))
  636. + return;
  637. + Player activeChar = (Player)playable;
  638. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME10);
  639. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME10);
  640. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME10);
  641. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME10);
  642. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME10);
  643. +
  644. + if (activeChar.isDressMeEnabled())
  645. + {
  646. + activeChar.setDressMeEnabled(false);
  647. + activeChar.broadcastUserInfo();
  648. + activeChar.sendMessage("You have disabled skin.");
  649. + }
  650. + else
  651. + {
  652. + activeChar.setDressMeEnabled(true);
  653. + activeChar.broadcastUserInfo();
  654. + activeChar.sendMessage("You have activated " + Config.NAME10 + " skin.");
  655. + }
  656. + }
  657. + else
  658. + playable.sendMessage("Sorry, admin has disabled skins.");
  659. + }
  660. +
  661. +}
  662. \ No newline at end of file
  663. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java
  664. new file mode 100644
  665. index 0000000..df0ecce
  666. --- /dev/null
  667. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin11.java
  668. @@ -0,0 +1,63 @@
  669. +package net.sf.l2j.gameserver.handler.itemhandlers;
  670. +
  671. +import net.sf.l2j.Config;
  672. +import net.sf.l2j.commons.pool.ThreadPool;
  673. +import net.sf.l2j.gameserver.enums.GaugeColor;
  674. +import net.sf.l2j.gameserver.handler.IItemHandler;
  675. +import net.sf.l2j.gameserver.model.WorldObject;
  676. +import net.sf.l2j.gameserver.model.actor.Playable;
  677. +import net.sf.l2j.gameserver.model.actor.Player;
  678. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  679. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  680. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  681. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  682. +
  683. +public class Skin11 implements IItemHandler
  684. +{
  685. + @Override
  686. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  687. + {
  688. + ThreadPool.schedule(new Runnable()
  689. + {
  690. + @Override
  691. + public void run()
  692. + {
  693. + playable.setIsParalyzed(false);
  694. + }
  695. + }, Config.SEGUNDS_SKILL_ANIMATION);
  696. + final Player player = playable.getActingPlayer();
  697. + final WorldObject oldTarget = playable.getTarget();
  698. + playable.setTarget(playable);
  699. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN11, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  700. + playable.setTarget(oldTarget);
  701. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  702. + playable.setIsParalyzed(true);
  703. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  704. + {
  705. + if(!(playable instanceof Player))
  706. + return;
  707. + Player activeChar = (Player)playable;
  708. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME11);
  709. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME11);
  710. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME11);
  711. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME11);
  712. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME11);
  713. +
  714. + if (activeChar.isDressMeEnabled())
  715. + {
  716. + activeChar.setDressMeEnabled(false);
  717. + activeChar.broadcastUserInfo();
  718. + activeChar.sendMessage("You have disabled skin.");
  719. + }
  720. + else
  721. + {
  722. + activeChar.setDressMeEnabled(true);
  723. + activeChar.broadcastUserInfo();
  724. + activeChar.sendMessage("You have activated " + Config.NAME11 + " skin.");
  725. +
  726. + }
  727. + }
  728. + else
  729. + playable.sendMessage("Sorry, admin has disabled skins.");
  730. + }
  731. +}
  732. \ No newline at end of file
  733. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java
  734. new file mode 100644
  735. index 0000000..3c2088a
  736. --- /dev/null
  737. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin12.java
  738. @@ -0,0 +1,63 @@
  739. +package net.sf.l2j.gameserver.handler.itemhandlers;
  740. +
  741. +import net.sf.l2j.Config;
  742. +import net.sf.l2j.commons.pool.ThreadPool;
  743. +import net.sf.l2j.gameserver.enums.GaugeColor;
  744. +import net.sf.l2j.gameserver.handler.IItemHandler;
  745. +import net.sf.l2j.gameserver.model.WorldObject;
  746. +import net.sf.l2j.gameserver.model.actor.Playable;
  747. +import net.sf.l2j.gameserver.model.actor.Player;
  748. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  749. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  750. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  751. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  752. +
  753. +public class Skin12 implements IItemHandler
  754. +{
  755. + @Override
  756. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  757. + {
  758. + ThreadPool.schedule(new Runnable()
  759. + {
  760. + @Override
  761. + public void run()
  762. + {
  763. + playable.setIsParalyzed(false);
  764. + }
  765. + }, Config.SEGUNDS_SKILL_ANIMATION);
  766. + final Player player = playable.getActingPlayer();
  767. + final WorldObject oldTarget = playable.getTarget();
  768. + playable.setTarget(playable);
  769. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN12, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  770. + playable.setTarget(oldTarget);
  771. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  772. + playable.setIsParalyzed(true);
  773. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  774. + {
  775. + if(!(playable instanceof Player))
  776. + return;
  777. + Player activeChar = (Player)playable;
  778. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME12);
  779. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME12);
  780. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME12);
  781. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME12);
  782. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME12);
  783. +
  784. + if (activeChar.isDressMeEnabled())
  785. + {
  786. + activeChar.setDressMeEnabled(false);
  787. + activeChar.broadcastUserInfo();
  788. + activeChar.sendMessage("You have disabled skin.");
  789. + }
  790. + else
  791. + {
  792. + activeChar.setDressMeEnabled(true);
  793. + activeChar.broadcastUserInfo();
  794. + activeChar.sendMessage("You have activated " + Config.NAME12 + " skin.");
  795. +
  796. + }
  797. + }
  798. + else
  799. + playable.sendMessage("Sorry, admin has disabled skins.");
  800. + }
  801. +}
  802. \ No newline at end of file
  803. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java
  804. new file mode 100644
  805. index 0000000..4b2c965
  806. --- /dev/null
  807. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin13.java
  808. @@ -0,0 +1,62 @@
  809. +package net.sf.l2j.gameserver.handler.itemhandlers;
  810. +
  811. +import net.sf.l2j.Config;
  812. +import net.sf.l2j.commons.pool.ThreadPool;
  813. +import net.sf.l2j.gameserver.enums.GaugeColor;
  814. +import net.sf.l2j.gameserver.handler.IItemHandler;
  815. +import net.sf.l2j.gameserver.model.WorldObject;
  816. +import net.sf.l2j.gameserver.model.actor.Playable;
  817. +import net.sf.l2j.gameserver.model.actor.Player;
  818. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  819. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  820. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  821. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  822. +
  823. +public class Skin13 implements IItemHandler
  824. +{
  825. + @Override
  826. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  827. + {
  828. + ThreadPool.schedule(new Runnable()
  829. + {
  830. + @Override
  831. + public void run()
  832. + {
  833. + playable.setIsParalyzed(false);
  834. + }
  835. + }, Config.SEGUNDS_SKILL_ANIMATION);
  836. + final Player player = playable.getActingPlayer();
  837. + final WorldObject oldTarget = playable.getTarget();
  838. + playable.setTarget(playable);
  839. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN13, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  840. + playable.setTarget(oldTarget);
  841. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  842. + playable.setIsParalyzed(true);
  843. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  844. + {
  845. + if(!(playable instanceof Player))
  846. + return;
  847. + Player activeChar = (Player)playable;
  848. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME13);
  849. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME13);
  850. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME13);
  851. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME13);
  852. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME13);
  853. +
  854. + if (activeChar.isDressMeEnabled())
  855. + {
  856. + activeChar.setDressMeEnabled(false);
  857. + activeChar.broadcastUserInfo();
  858. + activeChar.sendMessage("You have disabled skin.");
  859. + }
  860. + else
  861. + {
  862. + activeChar.setDressMeEnabled(true);
  863. + activeChar.broadcastUserInfo();
  864. + activeChar.sendMessage("You have activated " + Config.NAME13 + " skin.");
  865. + }
  866. + }
  867. + else
  868. + playable.sendMessage("Sorry, admin has disabled skins.");
  869. + }
  870. +}
  871. \ No newline at end of file
  872. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java
  873. new file mode 100644
  874. index 0000000..698e76a
  875. --- /dev/null
  876. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin14.java
  877. @@ -0,0 +1,62 @@
  878. +package net.sf.l2j.gameserver.handler.itemhandlers;
  879. +
  880. +import net.sf.l2j.Config;
  881. +import net.sf.l2j.commons.pool.ThreadPool;
  882. +import net.sf.l2j.gameserver.enums.GaugeColor;
  883. +import net.sf.l2j.gameserver.handler.IItemHandler;
  884. +import net.sf.l2j.gameserver.model.WorldObject;
  885. +import net.sf.l2j.gameserver.model.actor.Playable;
  886. +import net.sf.l2j.gameserver.model.actor.Player;
  887. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  888. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  889. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  890. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  891. +
  892. +public class Skin14 implements IItemHandler
  893. +{
  894. + @Override
  895. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  896. + {
  897. + ThreadPool.schedule(new Runnable()
  898. + {
  899. + @Override
  900. + public void run()
  901. + {
  902. + playable.setIsParalyzed(false);
  903. + }
  904. + }, Config.SEGUNDS_SKILL_ANIMATION);
  905. + final Player player = playable.getActingPlayer();
  906. + final WorldObject oldTarget = playable.getTarget();
  907. + playable.setTarget(playable);
  908. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN14, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  909. + playable.setTarget(oldTarget);
  910. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  911. + playable.setIsParalyzed(true);
  912. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  913. + {
  914. + if(!(playable instanceof Player))
  915. + return;
  916. + Player activeChar = (Player)playable;
  917. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME14);
  918. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME14);
  919. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME14);
  920. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME14);
  921. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME14);
  922. +
  923. + if (activeChar.isDressMeEnabled())
  924. + {
  925. + activeChar.setDressMeEnabled(false);
  926. + activeChar.broadcastUserInfo();
  927. + activeChar.sendMessage("You have disabled skin.");
  928. + }
  929. + else
  930. + {
  931. + activeChar.setDressMeEnabled(true);
  932. + activeChar.broadcastUserInfo();
  933. + activeChar.sendMessage("You have activated " + Config.NAME14 + " skin.");
  934. + }
  935. + }
  936. + else
  937. + playable.sendMessage("Sorry, admin has disabled skins.");
  938. + }
  939. +}
  940. \ No newline at end of file
  941. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java
  942. new file mode 100644
  943. index 0000000..81bf81d
  944. --- /dev/null
  945. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin15.java
  946. @@ -0,0 +1,66 @@
  947. +package net.sf.l2j.gameserver.handler.itemhandlers;
  948. +
  949. +import net.sf.l2j.Config;
  950. +import net.sf.l2j.commons.pool.ThreadPool;
  951. +import net.sf.l2j.gameserver.enums.GaugeColor;
  952. +import net.sf.l2j.gameserver.handler.IItemHandler;
  953. +import net.sf.l2j.gameserver.model.WorldObject;
  954. +import net.sf.l2j.gameserver.model.actor.Playable;
  955. +import net.sf.l2j.gameserver.model.actor.Player;
  956. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  957. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  958. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  959. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  960. +
  961. +public class Skin15 implements IItemHandler
  962. +{
  963. + @Override
  964. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  965. + {
  966. + ThreadPool.schedule(new Runnable()
  967. + {
  968. + @Override
  969. + public void run()
  970. + {
  971. + playable.setIsParalyzed(false);
  972. + }
  973. + }, Config.SEGUNDS_SKILL_ANIMATION);
  974. + final Player player = playable.getActingPlayer();
  975. + final WorldObject oldTarget = playable.getTarget();
  976. + playable.setTarget(playable);
  977. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN15, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  978. + playable.setTarget(oldTarget);
  979. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  980. + playable.setIsParalyzed(true);
  981. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  982. + {
  983. + if(!(playable instanceof Player))
  984. + return;
  985. +
  986. + Player activeChar = (Player)playable;
  987. +
  988. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME15);
  989. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME15);
  990. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME15);
  991. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME15);
  992. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME15);
  993. +
  994. + if (activeChar.isDressMeEnabled())
  995. + {
  996. +
  997. + activeChar.setDressMeEnabled(false);
  998. + activeChar.broadcastUserInfo();
  999. + activeChar.sendMessage("You have disabled skin.");
  1000. + }
  1001. + else
  1002. + {
  1003. +
  1004. + activeChar.setDressMeEnabled(true);
  1005. + activeChar.broadcastUserInfo();
  1006. + activeChar.sendMessage("You have activated " + Config.NAME15 + " skin.");
  1007. + }
  1008. + }
  1009. + else
  1010. + playable.sendMessage("Sorry, admin has disabled skins.");
  1011. + }
  1012. +}
  1013. \ No newline at end of file
  1014. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java
  1015. new file mode 100644
  1016. index 0000000..b0f7fa9
  1017. --- /dev/null
  1018. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin2.java
  1019. @@ -0,0 +1,63 @@
  1020. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1021. +
  1022. +import net.sf.l2j.Config;
  1023. +import net.sf.l2j.commons.pool.ThreadPool;
  1024. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1025. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1026. +import net.sf.l2j.gameserver.model.WorldObject;
  1027. +import net.sf.l2j.gameserver.model.actor.Playable;
  1028. +import net.sf.l2j.gameserver.model.actor.Player;
  1029. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1030. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1031. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1032. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1033. +
  1034. +public class Skin2 implements IItemHandler
  1035. +{
  1036. + @Override
  1037. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1038. + {
  1039. + ThreadPool.schedule(new Runnable()
  1040. + {
  1041. + @Override
  1042. + public void run()
  1043. + {
  1044. + playable.setIsParalyzed(false);
  1045. + }
  1046. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1047. + final Player player = playable.getActingPlayer();
  1048. + final WorldObject oldTarget = playable.getTarget();
  1049. + playable.setTarget(playable);
  1050. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN2, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1051. + playable.setTarget(oldTarget);
  1052. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1053. + playable.setIsParalyzed(true);
  1054. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1055. + {
  1056. + if(!(playable instanceof Player))
  1057. + return;
  1058. + Player activeChar = (Player)playable;
  1059. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME2);
  1060. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME2);
  1061. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME2);
  1062. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME2);
  1063. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME2);
  1064. +
  1065. + if (activeChar.isDressMeEnabled())
  1066. + {
  1067. + activeChar.setDressMeEnabled(false);
  1068. + activeChar.broadcastUserInfo();
  1069. + activeChar.sendMessage("You have disabled skin.");
  1070. +
  1071. + }
  1072. + else
  1073. + {
  1074. + activeChar.setDressMeEnabled(true);
  1075. + activeChar.broadcastUserInfo();
  1076. + activeChar.sendMessage("You have activated " + Config.NAME2 + " skin.");
  1077. + }
  1078. + }
  1079. + else
  1080. + playable.sendMessage("Sorry, admin has disabled skins.");
  1081. + }
  1082. +}
  1083. \ No newline at end of file
  1084. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java
  1085. new file mode 100644
  1086. index 0000000..ff72668
  1087. --- /dev/null
  1088. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin3.java
  1089. @@ -0,0 +1,63 @@
  1090. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1091. +
  1092. +import net.sf.l2j.Config;
  1093. +import net.sf.l2j.commons.pool.ThreadPool;
  1094. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1095. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1096. +import net.sf.l2j.gameserver.model.WorldObject;
  1097. +import net.sf.l2j.gameserver.model.actor.Playable;
  1098. +import net.sf.l2j.gameserver.model.actor.Player;
  1099. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1100. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1101. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1102. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1103. +
  1104. +public class Skin3 implements IItemHandler
  1105. +{
  1106. + @Override
  1107. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1108. + {
  1109. + ThreadPool.schedule(new Runnable()
  1110. + {
  1111. + @Override
  1112. + public void run()
  1113. + {
  1114. + playable.setIsParalyzed(false);
  1115. + }
  1116. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1117. + final Player player = playable.getActingPlayer();
  1118. + final WorldObject oldTarget = playable.getTarget();
  1119. + playable.setTarget(playable);
  1120. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN3, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1121. + playable.setTarget(oldTarget);
  1122. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1123. + playable.setIsParalyzed(true);
  1124. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1125. + {
  1126. + if(!(playable instanceof Player))
  1127. + return;
  1128. + Player activeChar = (Player)playable;
  1129. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME3);
  1130. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME3);
  1131. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME3);
  1132. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME3);
  1133. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME3);
  1134. +
  1135. + if (activeChar.isDressMeEnabled())
  1136. + {
  1137. + activeChar.setDressMeEnabled(false);
  1138. + activeChar.broadcastUserInfo();
  1139. + activeChar.sendMessage("You have disabled skin.");
  1140. +
  1141. + }
  1142. + else
  1143. + {
  1144. + activeChar.setDressMeEnabled(true);
  1145. + activeChar.broadcastUserInfo();
  1146. + activeChar.sendMessage("You have activated " + Config.NAME3 + " skin.");
  1147. + }
  1148. + }
  1149. + else
  1150. + playable.sendMessage("Sorry, admin has disabled skins.");
  1151. + }
  1152. +}
  1153. \ No newline at end of file
  1154. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java
  1155. new file mode 100644
  1156. index 0000000..b458a13
  1157. --- /dev/null
  1158. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin4.java
  1159. @@ -0,0 +1,63 @@
  1160. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1161. +
  1162. +import net.sf.l2j.Config;
  1163. +import net.sf.l2j.commons.pool.ThreadPool;
  1164. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1165. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1166. +import net.sf.l2j.gameserver.model.WorldObject;
  1167. +import net.sf.l2j.gameserver.model.actor.Playable;
  1168. +import net.sf.l2j.gameserver.model.actor.Player;
  1169. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1170. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1171. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1172. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1173. +
  1174. +public class Skin4 implements IItemHandler
  1175. +{
  1176. + @Override
  1177. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1178. + {
  1179. + ThreadPool.schedule(new Runnable()
  1180. + {
  1181. + @Override
  1182. + public void run()
  1183. + {
  1184. + playable.setIsParalyzed(false);
  1185. + }
  1186. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1187. + final Player player = playable.getActingPlayer();
  1188. + final WorldObject oldTarget = playable.getTarget();
  1189. + playable.setTarget(playable);
  1190. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN4, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1191. + playable.setTarget(oldTarget);
  1192. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1193. + playable.setIsParalyzed(true);
  1194. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1195. + {
  1196. + if(!(playable instanceof Player))
  1197. + return;
  1198. + Player activeChar = (Player)playable;
  1199. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME4);
  1200. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME4);
  1201. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME4);
  1202. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME4);
  1203. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME4);
  1204. +
  1205. + if (activeChar.isDressMeEnabled())
  1206. + {
  1207. + activeChar.setDressMeEnabled(false);
  1208. + activeChar.broadcastUserInfo();
  1209. + activeChar.sendMessage("You have disabled skin.");
  1210. +
  1211. + }
  1212. + else
  1213. + {
  1214. + activeChar.setDressMeEnabled(true);
  1215. + activeChar.broadcastUserInfo();
  1216. + activeChar.sendMessage("You have activated " + Config.NAME4 + " skin.");
  1217. + }
  1218. + }
  1219. + else
  1220. + playable.sendMessage("Sorry, admin has disabled skins.");
  1221. + }
  1222. +}
  1223. \ No newline at end of file
  1224. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java
  1225. new file mode 100644
  1226. index 0000000..960f1dd
  1227. --- /dev/null
  1228. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin5.java
  1229. @@ -0,0 +1,63 @@
  1230. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1231. +
  1232. +import net.sf.l2j.Config;
  1233. +import net.sf.l2j.commons.pool.ThreadPool;
  1234. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1235. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1236. +import net.sf.l2j.gameserver.model.WorldObject;
  1237. +import net.sf.l2j.gameserver.model.actor.Playable;
  1238. +import net.sf.l2j.gameserver.model.actor.Player;
  1239. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1240. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1241. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1242. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1243. +
  1244. +public class Skin5 implements IItemHandler
  1245. +{
  1246. + @Override
  1247. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1248. + {
  1249. + ThreadPool.schedule(new Runnable()
  1250. + {
  1251. + @Override
  1252. + public void run()
  1253. + {
  1254. + playable.setIsParalyzed(false);
  1255. + }
  1256. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1257. + final Player player = playable.getActingPlayer();
  1258. + final WorldObject oldTarget = playable.getTarget();
  1259. + playable.setTarget(playable);
  1260. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN5, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1261. + playable.setTarget(oldTarget);
  1262. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1263. + playable.setIsParalyzed(true);
  1264. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1265. + {
  1266. + if(!(playable instanceof Player))
  1267. + return;
  1268. + Player activeChar = (Player)playable;
  1269. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME5);
  1270. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME5);
  1271. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME5);
  1272. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME5);
  1273. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME5);
  1274. +
  1275. + if (activeChar.isDressMeEnabled())
  1276. + {
  1277. + activeChar.setDressMeEnabled(false);
  1278. + activeChar.broadcastUserInfo();
  1279. + activeChar.sendMessage("You have disabled skin.");
  1280. +
  1281. + }
  1282. + else
  1283. + {
  1284. + activeChar.setDressMeEnabled(true);
  1285. + activeChar.broadcastUserInfo();
  1286. + activeChar.sendMessage("You have activated " + Config.NAME5 + " skin.");
  1287. + }
  1288. + }
  1289. + else
  1290. + playable.sendMessage("Sorry, admin has disabled skins.");
  1291. + }
  1292. +}
  1293. \ No newline at end of file
  1294. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java
  1295. new file mode 100644
  1296. index 0000000..f65056a
  1297. --- /dev/null
  1298. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin6.java
  1299. @@ -0,0 +1,62 @@
  1300. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1301. +
  1302. +import net.sf.l2j.Config;
  1303. +import net.sf.l2j.commons.pool.ThreadPool;
  1304. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1305. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1306. +import net.sf.l2j.gameserver.model.WorldObject;
  1307. +import net.sf.l2j.gameserver.model.actor.Playable;
  1308. +import net.sf.l2j.gameserver.model.actor.Player;
  1309. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1310. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1311. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1312. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1313. +
  1314. +public class Skin6 implements IItemHandler
  1315. +{
  1316. + @Override
  1317. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1318. + {
  1319. + ThreadPool.schedule(new Runnable()
  1320. + {
  1321. + @Override
  1322. + public void run()
  1323. + {
  1324. + playable.setIsParalyzed(false);
  1325. + }
  1326. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1327. + final Player player = playable.getActingPlayer();
  1328. + final WorldObject oldTarget = playable.getTarget();
  1329. + playable.setTarget(playable);
  1330. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN6, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1331. + playable.setTarget(oldTarget);
  1332. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1333. + playable.setIsParalyzed(true);
  1334. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1335. + {
  1336. + if(!(playable instanceof Player))
  1337. + return;
  1338. + Player activeChar = (Player)playable;
  1339. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME6);
  1340. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME6);
  1341. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME6);
  1342. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME6);
  1343. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME6);
  1344. +
  1345. + if (activeChar.isDressMeEnabled())
  1346. + {
  1347. + activeChar.setDressMeEnabled(false);
  1348. + activeChar.broadcastUserInfo();
  1349. + activeChar.sendMessage("You have disabled skin.");
  1350. + }
  1351. + else
  1352. + {
  1353. + activeChar.setDressMeEnabled(true);
  1354. + activeChar.broadcastUserInfo();
  1355. + activeChar.sendMessage("You have activated " + Config.NAME6 + " skin.");
  1356. + }
  1357. + }
  1358. + else
  1359. + playable.sendMessage("Sorry, admin has disabled skins.");
  1360. + }
  1361. +}
  1362. \ No newline at end of file
  1363. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java
  1364. new file mode 100644
  1365. index 0000000..1858048
  1366. --- /dev/null
  1367. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin7.java
  1368. @@ -0,0 +1,62 @@
  1369. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1370. +
  1371. +import net.sf.l2j.Config;
  1372. +import net.sf.l2j.commons.pool.ThreadPool;
  1373. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1374. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1375. +import net.sf.l2j.gameserver.model.WorldObject;
  1376. +import net.sf.l2j.gameserver.model.actor.Playable;
  1377. +import net.sf.l2j.gameserver.model.actor.Player;
  1378. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1379. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1380. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1381. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1382. +
  1383. +public class Skin7 implements IItemHandler
  1384. +{
  1385. + @Override
  1386. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1387. + {
  1388. + ThreadPool.schedule(new Runnable()
  1389. + {
  1390. + @Override
  1391. + public void run()
  1392. + {
  1393. + playable.setIsParalyzed(false);
  1394. + }
  1395. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1396. + final Player player = playable.getActingPlayer();
  1397. + final WorldObject oldTarget = playable.getTarget();
  1398. + playable.setTarget(playable);
  1399. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN7, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1400. + playable.setTarget(oldTarget);
  1401. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1402. + playable.setIsParalyzed(true);
  1403. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1404. + {
  1405. + if(!(playable instanceof Player))
  1406. + return;
  1407. + Player activeChar = (Player)playable;
  1408. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME7);
  1409. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME7);
  1410. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME7);
  1411. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME7);
  1412. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME7);
  1413. +
  1414. + if (activeChar.isDressMeEnabled())
  1415. + {
  1416. + activeChar.setDressMeEnabled(false);
  1417. + activeChar.broadcastUserInfo();
  1418. + activeChar.sendMessage("You have disabled skin.");
  1419. + }
  1420. + else
  1421. + {
  1422. + activeChar.setDressMeEnabled(true);
  1423. + activeChar.broadcastUserInfo();
  1424. + activeChar.sendMessage("You have activated " + Config.NAME7 + " skin.");
  1425. + }
  1426. + }
  1427. + else
  1428. + playable.sendMessage("Sorry, admin has disabled skins.");
  1429. + }
  1430. +}
  1431. \ No newline at end of file
  1432. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java
  1433. new file mode 100644
  1434. index 0000000..1f8a4a2
  1435. --- /dev/null
  1436. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin8.java
  1437. @@ -0,0 +1,62 @@
  1438. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1439. +
  1440. +import net.sf.l2j.Config;
  1441. +import net.sf.l2j.commons.pool.ThreadPool;
  1442. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1443. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1444. +import net.sf.l2j.gameserver.model.WorldObject;
  1445. +import net.sf.l2j.gameserver.model.actor.Playable;
  1446. +import net.sf.l2j.gameserver.model.actor.Player;
  1447. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1448. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1449. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1450. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1451. +
  1452. +public class Skin8 implements IItemHandler
  1453. +{
  1454. + @Override
  1455. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1456. + {
  1457. + ThreadPool.schedule(new Runnable()
  1458. + {
  1459. + @Override
  1460. + public void run()
  1461. + {
  1462. + playable.setIsParalyzed(false);
  1463. + }
  1464. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1465. + final Player player = playable.getActingPlayer();
  1466. + final WorldObject oldTarget = playable.getTarget();
  1467. + playable.setTarget(playable);
  1468. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN8, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1469. + playable.setTarget(oldTarget);
  1470. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1471. + playable.setIsParalyzed(true);
  1472. + if (Config.ALLOW_DRESS_ME_SYSTEM)
  1473. + {
  1474. + if (!(playable instanceof Player))
  1475. + return;
  1476. + Player activeChar = (Player) playable;
  1477. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME8);
  1478. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME8);
  1479. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME8);
  1480. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME8);
  1481. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME8);
  1482. +
  1483. + if (activeChar.isDressMeEnabled())
  1484. + {
  1485. + activeChar.setDressMeEnabled(false);
  1486. + activeChar.broadcastUserInfo();
  1487. + activeChar.sendMessage("You have disabled skin.");
  1488. + }
  1489. + else
  1490. + {
  1491. + activeChar.setDressMeEnabled(true);
  1492. + activeChar.broadcastUserInfo();
  1493. + activeChar.sendMessage("You have activated " + Config.NAME8 + " skin.");
  1494. + }
  1495. + }
  1496. + else
  1497. + playable.sendMessage("Sorry, admin has disabled skins.");
  1498. + }
  1499. +}
  1500. \ No newline at end of file
  1501. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java
  1502. new file mode 100644
  1503. index 0000000..b433767
  1504. --- /dev/null
  1505. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/handler/itemhandlers/Skin9.java
  1506. @@ -0,0 +1,62 @@
  1507. +package net.sf.l2j.gameserver.handler.itemhandlers;
  1508. +
  1509. +import net.sf.l2j.Config;
  1510. +import net.sf.l2j.commons.pool.ThreadPool;
  1511. +import net.sf.l2j.gameserver.enums.GaugeColor;
  1512. +import net.sf.l2j.gameserver.handler.IItemHandler;
  1513. +import net.sf.l2j.gameserver.model.WorldObject;
  1514. +import net.sf.l2j.gameserver.model.actor.Playable;
  1515. +import net.sf.l2j.gameserver.model.actor.Player;
  1516. +import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  1517. +import net.sf.l2j.gameserver.network.clientpackets.RequestBypassToServer;
  1518. +import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse;
  1519. +import net.sf.l2j.gameserver.network.serverpackets.SetupGauge;
  1520. +
  1521. +public class Skin9 implements IItemHandler
  1522. +{
  1523. + @Override
  1524. + public void useItem(Playable playable, ItemInstance item, boolean forceUse)
  1525. + {
  1526. + ThreadPool.schedule(new Runnable()
  1527. + {
  1528. + @Override
  1529. + public void run()
  1530. + {
  1531. + playable.setIsParalyzed(false);
  1532. + }
  1533. + }, Config.SEGUNDS_SKILL_ANIMATION);
  1534. + final Player player = playable.getActingPlayer();
  1535. + final WorldObject oldTarget = playable.getTarget();
  1536. + playable.setTarget(playable);
  1537. + player.broadcastPacketInRadius(new MagicSkillUse(playable, playable, Config.SKILL_ID_SKIN9, 1, Config.SEGUNDS_SKILL_ANIMATION, 0), 600);
  1538. + playable.setTarget(oldTarget);
  1539. + playable.sendPacket(new SetupGauge(GaugeColor.BLUE, Config.SEGUNDS_SKILL_ANIMATION));
  1540. + playable.setIsParalyzed(true);
  1541. + if(Config.ALLOW_DRESS_ME_SYSTEM)
  1542. + {
  1543. + if(!(playable instanceof Player))
  1544. + return;
  1545. + Player activeChar = (Player)playable;
  1546. + RequestBypassToServer.setPart(activeChar, "helmet", Config.SKIN_NAME9);
  1547. + RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME9);
  1548. + RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME9);
  1549. + RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME9);
  1550. + RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME9);
  1551. +
  1552. + if (activeChar.isDressMeEnabled())
  1553. + {
  1554. + activeChar.setDressMeEnabled(false);
  1555. + activeChar.broadcastUserInfo();
  1556. + activeChar.sendMessage("You have disabled skin.");
  1557. + }
  1558. + else
  1559. + {
  1560. + activeChar.setDressMeEnabled(true);
  1561. + activeChar.broadcastUserInfo();
  1562. + activeChar.sendMessage("You have activated " + Config.NAME9 + " skin.");
  1563. + }
  1564. + }
  1565. + else
  1566. + playable.sendMessage("Sorry, admin has disabled skins.");
  1567. + }
  1568. +}
  1569. \ No newline at end of file
  1570. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java
  1571. index d38bc8b..11c2ec7 100644
  1572. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java
  1573. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java
  1574. @@ -20,13 +20,12 @@
  1575. import java.util.concurrent.locks.ReentrantLock;
  1576. import java.util.stream.Collectors;
  1577.  
  1578. +import net.sf.l2j.Config;
  1579. import net.sf.l2j.commons.math.MathUtil;
  1580. import net.sf.l2j.commons.pool.ConnectionPool;
  1581. import net.sf.l2j.commons.pool.ThreadPool;
  1582. import net.sf.l2j.commons.random.Rnd;
  1583. import net.sf.l2j.commons.util.ArraysUtil;
  1584. -
  1585. -import net.sf.l2j.Config;
  1586. import net.sf.l2j.gameserver.LoginServerThread;
  1587. import net.sf.l2j.gameserver.communitybbs.CommunityBoard;
  1588. import net.sf.l2j.gameserver.communitybbs.model.Forum;
  1589. @@ -44,6 +43,7 @@
  1590. import net.sf.l2j.gameserver.data.sql.ClanTable;
  1591. import net.sf.l2j.gameserver.data.sql.PlayerInfoTable;
  1592. import net.sf.l2j.gameserver.data.xml.AdminData;
  1593. +import net.sf.l2j.gameserver.data.xml.DressMeData;
  1594. import net.sf.l2j.gameserver.data.xml.ItemData;
  1595. import net.sf.l2j.gameserver.data.xml.MapRegionData;
  1596. import net.sf.l2j.gameserver.data.xml.MapRegionData.TeleportType;
  1597. @@ -7214,7 +7214,27 @@
  1598. {
  1599. _requestedGate = door;
  1600. }
  1601. + private DressMeData _dressmedata = null;
  1602. + private boolean _dressed = false;
  1603. + public DressMeData getDressMeData()
  1604. + {
  1605. + return _dressmedata;
  1606. + }
  1607. +
  1608. + public void setDressMeData(DressMeData val)
  1609. + {
  1610. + _dressmedata = val;
  1611. + }
  1612. +
  1613. + public boolean isDressMeEnabled()
  1614. + {
  1615. + return _dressed;
  1616. + }
  1617. +
  1618. + public void setDressMeEnabled(boolean val)
  1619. + {
  1620. + _dressed = val;
  1621. + }
  1622. @Override
  1623. public boolean polymorph(int npcId)
  1624. {
  1625. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1626. index 800291b..f8cddab 100644
  1627. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1628. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java
  1629. @@ -7,7 +7,9 @@
  1630. import net.sf.l2j.gameserver.communitybbs.CommunityBoard;
  1631. import net.sf.l2j.gameserver.data.manager.HeroManager;
  1632. import net.sf.l2j.gameserver.data.xml.AdminData;
  1633. +import net.sf.l2j.gameserver.data.xml.DressMeData;
  1634. import net.sf.l2j.gameserver.enums.FloodProtector;
  1635. +import net.sf.l2j.gameserver.enums.Paperdoll;
  1636. import net.sf.l2j.gameserver.handler.AdminCommandHandler;
  1637. import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
  1638. import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
  1639. @@ -202,4 +204,199 @@
  1640. player.enterOlympiadObserverMode(arenaId);
  1641. }
  1642. }
  1643. + public static void setPart(Player p, String part, String type)
  1644. + {
  1645. + if (p.getDressMeData() == null)
  1646. + {
  1647. + DressMeData dmd = new DressMeData();
  1648. + p.setDressMeData(dmd);
  1649. + }
  1650. +
  1651. + switch (part)
  1652. + {
  1653. +
  1654. + case "helmet":
  1655. + {
  1656. + if (Config.DRESS_ME_HELMET.keySet().contains(type))
  1657. + {
  1658. + p.getDressMeData().setHelmetId(Config.DRESS_ME_HELMET.get(type));
  1659. + }
  1660. +
  1661. + break;
  1662. + }
  1663. +
  1664. +
  1665. + case "chest":
  1666. + {
  1667. + if (Config.DRESS_ME_CHESTS.keySet().contains(type))
  1668. + {
  1669. + p.getDressMeData().setChestId(Config.DRESS_ME_CHESTS.get(type));
  1670. + }
  1671. +
  1672. + break;
  1673. + }
  1674. + case "legs":
  1675. + {
  1676. + if (Config.DRESS_ME_LEGS.keySet().contains(type))
  1677. + {
  1678. + p.getDressMeData().setLegsId(Config.DRESS_ME_LEGS.get(type));
  1679. + }
  1680. +
  1681. + break;
  1682. + }
  1683. + case "gloves":
  1684. + {
  1685. + if (Config.DRESS_ME_GLOVES.keySet().contains(type))
  1686. + {
  1687. + p.getDressMeData().setGlovesId(Config.DRESS_ME_GLOVES.get(type));
  1688. + }
  1689. +
  1690. + break;
  1691. + }
  1692. + case "boots":
  1693. + {
  1694. + if (Config.DRESS_ME_BOOTS.keySet().contains(type))
  1695. + {
  1696. + p.getDressMeData().setBootsId(Config.DRESS_ME_BOOTS.get(type));
  1697. + }
  1698. +
  1699. + break;
  1700. + }
  1701. +
  1702. + }
  1703. +
  1704. + p.broadcastUserInfo();
  1705. + // sendEditWindow(p, part);
  1706. + }
  1707. + public static void stealTarget(Player p, String part)
  1708. + {
  1709. + if (p.getTarget() == null || !(p.getTarget() instanceof Player))
  1710. + {
  1711. + p.sendMessage("Invalid target.");
  1712. + return;
  1713. + }
  1714. +
  1715. + Player t = (Player)p.getTarget();
  1716. +
  1717. + if (p.getDressMeData() == null)
  1718. + {
  1719. + DressMeData dmd = new DressMeData();
  1720. + p.setDressMeData(dmd);
  1721. + }
  1722. +
  1723. +
  1724. + switch (part)
  1725. + {
  1726. + case "helmet":
  1727. + {
  1728. + if (t.getInventory().getItemFrom(Paperdoll.FACE) == null)
  1729. + {
  1730. + p.getDressMeData().setHelmetId(0);
  1731. + }
  1732. + else
  1733. + {
  1734. + p.getDressMeData().setHelmetId(t.getInventory().getItemFrom(Paperdoll.FACE).getItemId());
  1735. + }
  1736. + break;
  1737. + }
  1738. +
  1739. + case "chest":
  1740. + {
  1741. + if (t.getInventory().getItemFrom(Paperdoll.CHEST) == null)
  1742. + {
  1743. + p.getDressMeData().setChestId(0);
  1744. + }
  1745. + else
  1746. + {
  1747. + p.getDressMeData().setChestId(t.getInventory().getItemFrom(Paperdoll.CHEST).getItemId());
  1748. + }
  1749. + break;
  1750. + }
  1751. + case "legs":
  1752. + {
  1753. + if (t.getInventory().getItemFrom(Paperdoll.LEGS) == null)
  1754. + {
  1755. + p.getDressMeData().setLegsId(0);
  1756. + }
  1757. + else
  1758. + {
  1759. + p.getDressMeData().setLegsId(t.getInventory().getItemFrom(Paperdoll.LEGS).getItemId());
  1760. + }
  1761. + break;
  1762. + }
  1763. + case "gloves":
  1764. + {
  1765. + if (t.getInventory().getItemFrom(Paperdoll.GLOVES) == null)
  1766. + {
  1767. + p.getDressMeData().setGlovesId(0);
  1768. + }
  1769. + else
  1770. + {
  1771. + p.getDressMeData().setGlovesId(t.getInventory().getItemFrom(Paperdoll.GLOVES).getItemId());
  1772. + }
  1773. + break;
  1774. + }
  1775. + case "boots":
  1776. + {
  1777. + if (t.getInventory().getItemFrom(Paperdoll.FEET) == null)
  1778. + {
  1779. + p.getDressMeData().setBootsId(0);
  1780. + }
  1781. + else
  1782. + {
  1783. + p.getDressMeData().setBootsId(t.getInventory().getItemFrom(Paperdoll.FEET).getItemId());
  1784. + }
  1785. + break;
  1786. + }
  1787. + case "all":
  1788. + {
  1789. +
  1790. + if (t.getInventory().getItemFrom(Paperdoll.FACE) == null)
  1791. + {
  1792. + p.getDressMeData().setHelmetId(0);
  1793. + }
  1794. + else
  1795. + {
  1796. + p.getDressMeData().setHelmetId(t.getInventory().getItemFrom(Paperdoll.FACE).getItemId());
  1797. + }
  1798. +
  1799. + if (t.getInventory().getItemFrom(Paperdoll.CHEST) == null)
  1800. + {
  1801. + p.getDressMeData().setChestId(0);
  1802. + }
  1803. + else
  1804. + {
  1805. + p.getDressMeData().setChestId(t.getInventory().getItemFrom(Paperdoll.CHEST).getItemId());
  1806. + }
  1807. + if (t.getInventory().getItemFrom(Paperdoll.LEGS) == null)
  1808. + {
  1809. + p.getDressMeData().setLegsId(0);
  1810. + }
  1811. + else
  1812. + {
  1813. + p.getDressMeData().setLegsId(t.getInventory().getItemFrom(Paperdoll.LEGS).getItemId());
  1814. + }
  1815. + if (t.getInventory().getItemFrom(Paperdoll.GLOVES) == null)
  1816. + {
  1817. + p.getDressMeData().setGlovesId(0);
  1818. + }
  1819. + else
  1820. + {
  1821. + p.getDressMeData().setGlovesId(t.getInventory().getItemFrom(Paperdoll.GLOVES).getItemId());
  1822. + }
  1823. + if (t.getInventory().getItemFrom(Paperdoll.FEET) == null)
  1824. + {
  1825. + p.getDressMeData().setBootsId(0);
  1826. + }
  1827. + else
  1828. + {
  1829. + p.getDressMeData().setBootsId(t.getInventory().getItemFrom(Paperdoll.FEET).getItemId());
  1830. + }
  1831. +
  1832. + break;
  1833. + }
  1834. + }
  1835. +
  1836. + p.broadcastUserInfo();
  1837. + }
  1838. }
  1839. \ No newline at end of file
  1840. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1841. index f83da89..077e584 100644
  1842. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1843. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java
  1844. @@ -40,7 +40,8 @@
  1845. writeD(_player.getRace().ordinal());
  1846. writeD(_player.getAppearance().getSex().ordinal());
  1847. writeD((_player.getClassIndex() == 0) ? _player.getClassId().getId() : _player.getBaseClass());
  1848.  
  1849. + if (!_player.isDressMeEnabled())
  1850. + {
  1851. writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIRALL));
  1852. writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
  1853. writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
  1854. @@ -53,6 +54,22 @@
  1855. writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
  1856. writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIR));
  1857. writeD(_player.getInventory().getItemIdFrom(Paperdoll.FACE));
  1858. + }
  1859. + else
  1860. + {
  1861. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIRALL));
  1862. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
  1863. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
  1864. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LHAND));
  1865. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : (_player.getDressMeData().getGlovesId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : _player.getDressMeData().getGlovesId()));
  1866. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : (_player.getDressMeData().getChestId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : _player.getDressMeData().getChestId()));
  1867. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : (_player.getDressMeData().getLegsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : _player.getDressMeData().getLegsId()));
  1868. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : (_player.getDressMeData().getBootsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : _player.getDressMeData().getBootsId()));
  1869. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.CLOAK));
  1870. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
  1871. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : _player.getDressMeData().getHelmetId()));
  1872. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : _player.getDressMeData().getHelmetId()));
  1873. + }
  1874.  
  1875. writeH(0x00);
  1876. writeH(0x00);
  1877. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1878. index bb1ce74..adeec87 100644
  1879. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1880. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java
  1881. @@ -55,7 +55,8 @@
  1882. writeD(_player.getCurrentWeight());
  1883. writeD(_player.getWeightLimit());
  1884. writeD(_player.getActiveWeaponItem() != null ? 40 : 20);
  1885.  
  1886. + if (!_player.isDressMeEnabled())
  1887. + {
  1888. writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.HAIRALL));
  1889. writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.REAR));
  1890. writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.LEAR));
  1891. @@ -91,6 +92,45 @@
  1892. writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
  1893. writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIR));
  1894. writeD(_player.getInventory().getItemIdFrom(Paperdoll.FACE));
  1895. + }
  1896. + else
  1897. + {
  1898. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.HAIRALL) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.HAIRALL) : _player.getDressMeData().getHelmetId()));
  1899. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.REAR));
  1900. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LEAR));
  1901. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.NECK));
  1902. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.RFINGER));
  1903. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LFINGER));
  1904. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
  1905. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : (_player.getDressMeData().getWeapId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : _player.getDressMeData().getWeapId()));
  1906. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LHAND));
  1907. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : (_player.getDressMeData().getGlovesId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : _player.getDressMeData().getGlovesId()));
  1908. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : (_player.getDressMeData().getChestId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : _player.getDressMeData().getChestId()));
  1909. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : (_player.getDressMeData().getLegsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : _player.getDressMeData().getLegsId()));
  1910. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : (_player.getDressMeData().getBootsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : _player.getDressMeData().getBootsId()));
  1911. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.CLOAK));
  1912. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : (_player.getDressMeData().getWeapId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : _player.getDressMeData().getWeapId()));
  1913. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : _player.getDressMeData().getHelmetId()));
  1914. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : _player.getDressMeData().getHelmetId()));
  1915. +
  1916. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.HAIRALL) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.HAIRALL) : _player.getDressMeData().getHelmetId()));
  1917. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.REAR));
  1918. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LEAR));
  1919. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.NECK));
  1920. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.RFINGER));
  1921. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LFINGER));
  1922. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
  1923. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : (_player.getDressMeData().getWeapId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : _player.getDressMeData().getWeapId()));
  1924. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.LHAND));
  1925. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : (_player.getDressMeData().getGlovesId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.GLOVES) : _player.getDressMeData().getGlovesId()));
  1926. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : (_player.getDressMeData().getChestId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.CHEST) : _player.getDressMeData().getChestId()));
  1927. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : (_player.getDressMeData().getLegsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.LEGS) : _player.getDressMeData().getLegsId()));
  1928. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : (_player.getDressMeData().getBootsId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FEET) : _player.getDressMeData().getBootsId()));
  1929. + writeD(_player.getInventory().getItemIdFrom(Paperdoll.CLOAK));
  1930. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : (_player.getDressMeData().getWeapId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.RHAND) : _player.getDressMeData().getWeapId()));
  1931. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.HAIR) : _player.getDressMeData().getHelmetId()));
  1932. + writeD(_player.getDressMeData() == null ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : (_player.getDressMeData().getHelmetId() == 0 ? _player.getInventory().getItemIdFrom(Paperdoll.FACE) : _player.getDressMeData().getHelmetId()));
  1933. + }
  1934.  
  1935. writeH(0x00);
  1936. writeH(0x00);
  1937.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement