Welcome, Guest. Please login or register.

Author Topic: hello I am adding a skin mods I wanted to know if you can help me  (Read 150 times)

0 Members and 2 Guests are viewing this topic.

Offline progressive

  • L2jHellas User
  • *
  • Posts: 9
  • Country: ar
  • Karma: 0
I need to add this and it works
Code: [Select]
+import net.sf.l2j.gameserver.handler.voicedcommandhandlers.DressMe;
 
 /**
  * This class ...
@@ -51,8 +52,10 @@
  registerVoicedCommandHandler(new ChangePassword());
  registerVoicedCommandHandler(new TvTCommand());
  registerVoicedCommandHandler(new VoiceExperience());
- registerVoicedCommandHandler(new Wedding());
-
+ registerVoicedCommandHandler(new Wedding());
+ if (Config.ALLOW_DRESS_ME_SYSTEM)
+ registerVoicedCommandHandler(new DressMe());
+
  _log.config("VoicedCommandHandler: Loaded " + _dataTable.size() + " handlers.");
 

Code: [Select]
--- java/net/sf/l2j/gameserver/handler/ItemHandler.java (revision 683)
+++ java/net/sf/l2j/gameserver/handler/ItemHandler.java (working copy)
@@ -49,6 +49,21 @@
 import net.sf.l2j.gameserver.handler.itemhandlers.SpiritShot;
 import net.sf.l2j.gameserver.handler.itemhandlers.SummonItems;
 import net.sf.l2j.gameserver.handler.itemhandlers.WorldMap;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin1;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin2;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin3;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin4;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin5;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin6;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin7;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin8;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin9;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin10;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin11;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin12;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin13;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin14;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin15;
 
 /**
  * This class manages handlers of items
@@ -109,7 +124,23 @@
  registerItemHandler(new ExtractableItems());
  registerItemHandler(new SummonItems());
  registerItemHandler(new BeastSpice());
+ registerItemHandler(new skin1());
+ registerItemHandler(new skin2());
+ registerItemHandler(new skin3());
+ registerItemHandler(new skin4());
+ registerItemHandler(new skin5());
+ registerItemHandler(new skin6());
+ registerItemHandler(new skin7());
+ registerItemHandler(new skin8());
+ registerItemHandler(new skin9());
+ registerItemHandler(new skin10());
+ registerItemHandler(new skin11());
+ registerItemHandler(new skin12());
+ registerItemHandler(new skin13());
+ registerItemHandler(new skin14());
+ registerItemHandler(new skin15());
 
+
  _log.config("ItemHandler: Loaded " + _dataTable.size() + " handlers.");
  }
« Last Edit: November 06, 2022, 05:38:48 pm by progressive »

Online AbsolutePower

  • Admin
  • Head Developer
  • L2jHellas User
  • ******
  • Posts: 380
  • Country: gr
  • Karma: 10
Re: hello I am adding a skin mods I wanted to know if you can help me
« Reply #1 on: November 06, 2022, 04:49:57 pm »
I need to add this and it works
+import net.sf.l2j.gameserver.handler.voicedcommandhandlers.DressMe;
 
 /**
  * This class ...
@@ -51,8 +52,10 @@
       registerVoicedCommandHandler(new ChangePassword());
       registerVoicedCommandHandler(new TvTCommand());
       registerVoicedCommandHandler(new VoiceExperience());
-      registerVoicedCommandHandler(new Wedding());
-
+      registerVoicedCommandHandler(new Wedding());   
+      if (Config.ALLOW_DRESS_ME_SYSTEM)
+         registerVoicedCommandHandler(new DressMe());
+      
       _log.config("VoicedCommandHandler: Loaded " + _dataTable.size() + " handlers.");
    }[/code]

Code: [Select]
--- java/net/sf/l2j/gameserver/handler/ItemHandler.java (revision 683)
+++ java/net/sf/l2j/gameserver/handler/ItemHandler.java (working copy)
@@ -49,6 +49,21 @@
 import net.sf.l2j.gameserver.handler.itemhandlers.SpiritShot;
 import net.sf.l2j.gameserver.handler.itemhandlers.SummonItems;
 import net.sf.l2j.gameserver.handler.itemhandlers.WorldMap;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin1;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin2;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin3;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin4;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin5;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin6;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin7;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin8;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin9;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin10;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin11;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin12;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin13;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin14;
+import net.sf.l2j.gameserver.handler.itemhandlers.skin15;
 
 /**
  * This class manages handlers of items
@@ -109,7 +124,23 @@
  registerItemHandler(new ExtractableItems());
  registerItemHandler(new SummonItems());
  registerItemHandler(new BeastSpice());
+ registerItemHandler(new skin1());
+ registerItemHandler(new skin2());
+ registerItemHandler(new skin3());
+ registerItemHandler(new skin4());
+ registerItemHandler(new skin5());
+ registerItemHandler(new skin6());
+ registerItemHandler(new skin7());
+ registerItemHandler(new skin8());
+ registerItemHandler(new skin9());
+ registerItemHandler(new skin10());
+ registerItemHandler(new skin11());
+ registerItemHandler(new skin12());
+ registerItemHandler(new skin13());
+ registerItemHandler(new skin14());
+ registerItemHandler(new skin15());
 
+
  _log.config("ItemHandler: Loaded " + _dataTable.size() + " handlers.");
  }
dont add this code , its bad coded. search for another one.



Offline progressive

  • L2jHellas User
  • *
  • Posts: 9
  • Country: ar
  • Karma: 0
Re: hello I am adding a skin mods I wanted to know if you can help me
« Reply #2 on: November 06, 2022, 05:37:35 pm »
I did not find any skin mods if someone contributes any skin mods I appreciate it

I tried to add this code but I couldn't get it to work

I don't know what to do at this part
Code: [Select]
registerUserCommandHandler(new PartyInfo());
  registerUserCommandHandler(new SiegeStatus());
  registerUserCommandHandler(new Time());
+ registerUserCommandHandler(new DressMe());
  }
« Last Edit: November 06, 2022, 05:53:49 pm by progressive »

Online AbsolutePower

  • Admin
  • Head Developer
  • L2jHellas User
  • ******
  • Posts: 380
  • Country: gr
  • Karma: 10
Re: hello I am adding a skin mods I wanted to know if you can help me
« Reply #3 on: November 06, 2022, 07:44:56 pm »
I did not find any skin mods if someone contributes any skin mods I appreciate it

I tried to add this code but I couldn't get it to work

I don't know what to do at this part
Code: [Select]
registerUserCommandHandler(new PartyInfo());
  registerUserCommandHandler(new SiegeStatus());
  registerUserCommandHandler(new Time());
+ registerUserCommandHandler(new DressMe());
  }

https://gist.github.com/Williams0ff/eb366d8b4e3e2240017925a2efc0e790