L2JMobius

C6 .dressme Adapted for L2JMobius C6

junin00 · 7 · 7657

Offline junin00

  • Black Sheep
  • Heir
  • **
    • Posts: 31
Good afternoon, surprisingly I managed to adapt this mod from a code to L2jFrozen, in case anyone wants to.
Feel free if anyone wants to improve the code, I have very little knowledge of java, I hope you like it, it's for everyone.

Link: https://pastebin.com/CTa0XM5f

Adapted from: https://pastebin.com/fC763kww


ScreenShot: http://www.mediafire.com/view/z2oncmtmyjzal53/ScreenShot01.jpeg



Offline tevsko

  • Knight
  • ***
    • Posts: 96
    • L2Babylon

Offline junin00

  • Black Sheep
  • Heir
  • **
    • Posts: 31
Very good, can you add any items to change?

Yes, I remember when I added it, I tested my skins and it worked.

The downside is that there is no restriction, everyone can use it for free. You must modify it to charge an item to use appearances.

I have another, which uses an item and changes its appearance, but it still needs to be improved. The guy I bought was not able to properly adapt the acis project to the mobius, but I managed to make it work almost perfectly, now I'm working on the animation bit by bit, making modifications and testing. If you are interested, I share with you in private.



Offline evolve

  • Heir
  • **
    • Posts: 16
Hello, the links are down, could you reactivate them, thank you.


Online Reanimation

  • Knight
  • ***
    • Posts: 62
Hello, good morning, how are you? I hope you're well.
Here you have the complete code that Mr.  junin00 shared with us a while ago.
Remember that you are going to have to make several adjustments and adapt them, since it is for an old version of the interlude files.
Just so you know, this code enables the .dressme command and the same to change the appearance of the characters' armor in the game.
The html are basic and somewhat confusing to use for the average player.
Changing these appearances is free, if you want them to have any additional value, you will have to redo the code implementing said prices and values function.
I, on the other hand, adapted another mod, which uses the dressme system, but in item click, that is, the character equips an appearance using a specific item. This in order to be able to market and make gameplay around them.

https://pastebin.com/CTa0XM5f

https://pastebin.com/Txk0sJNb



Offline mf.quiroga92

  • Vassal
  • *
    • Posts: 3
Hi guys! I'm a new l2jmobius user. I added the code on Eclipse and it works, but all the Npcs htmls stop working. I changed the Requestbypass then it worked again.
Am I missing something. How can I make all html work?

Everything works fine except the Requestbypasstoserver. This is how it looks:

https://pastebin.com/mA0gkm4M

This is the error log:
[12/11 01:21:12] Exception processing bypass from Player:asd[268477606]: npc_268464709_Buy 69 Cannot invoke "String.length()" because "replacement" is null
[12/11 01:21:12] java.lang.NullPointerException: Cannot invoke "String.length()" because "replacement" is null
   at java.base/java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1014)
   at java.base/java.util.regex.Matcher.appendReplacement(Matcher.java:997)
   at java.base/java.util.regex.Matcher.replaceAll(Matcher.java:1181)
   at java.base/java.lang.String.replaceAll(String.java:2939)
   at org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage.replace(NpcHtmlMessage.java:227)
   at org.l2jmobius.gameserver.network.clientpackets.RequestBypassToServer.sendEditWindow(RequestBypassToServer.java:403)
   at org.l2jmobius.gameserver.network.clientpackets.RequestBypassToServer.run(RequestBypassToServer.java:224)
   at org.l2jmobius.gameserver.network.PacketHandler.handle(PacketHandler.java:80)
   at org.l2jmobius.gameserver.network.PacketHandler.handle(PacketHandler.java:29)
   at org.l2jmobius.commons.network.ExecuteThread$ExecuteTask.run(ExecuteThread.java:130)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
   at java.base/java.lang.Thread.run(Thread.java:833)