Jump to content

Recommended Posts

Posted

I was advised to open this theme in this section

Hello, I'm interested if it's possible to do the similar thing on Java server. For instance, to create such a Shirt item that will change the appearance of the character. For example actually it is wearing Vorpal Light Set and it seems that it is wearing Halloween Costume or Christmas Costume. could you explain how to do this?

Thank you for your time

l3QKBUQ.jpg

Posted

You can do some like this with the VisualArmor controller, that uses the .dressme chat command to apply a visual aspect over your gear. With only the shirt sorry, but I have no idea at this moment. It's a cool idea anyway :)

Posted
It should be done similar to .dressme system. 

 

I would do it like this: in UserInfo.java and CharInfo.java make some checkings:

 

if you will find block of code like this(in CharInfo.java):

 

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL));

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));

(...)

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE));

 

 

and 

 

in UserInfo.java (same for both, just there you can see small differences in UserInfo and CharInfo)

 


writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIRALL));

writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_REAR));

(...)

writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_HAIR));

writeD(_activeChar.getInventory().getPaperdollObjectId(Inventory.PAPERDOLL_FACE));

 

 


This part of code sends information about what items are currently equipped, so client will show them on character.

 

You will just have to make checkings, which will look like this  :

 

 



if (shirt is equipped) && (all set items are equipped) 
{
shirt can change visually only fully equipped set


writeD(_inv.getPaperdollItemId(custom hair 2 slot accessory id));
writeD(_inv.getPaperdollItemId(custom helm id));
(...)
writeD(_inv.getPaperdollItemId(custom hair 1 slot accessory id));
writeD(_inv.getPaperdollItemId(custom face 1 slot accessory id));


of course for those things you dont want to be displayed just put 0
eg. using shirt = no any hair accessory so put:
in:
writeD(_inv.getPaperdollItemId(custom hair 2 slot accessory id));
this:
writeD(_inv.getPaperdollItemId(0));
}
else 
{
here will be normal set and items shown
writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIRALL));
writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HEAD));
(...)
writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_HAIR));
writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_FACE));
}


 

You should have in mind that those 2 packets (one is what you see, 2nd what other people see), are sending info to people what they should see about you. It means all your character statistics will be real, just visual changes will be made.

 

I think you got main idea of it:P

Guest
This topic is now closed to further replies.


  • Posts

    • [SIZE=4][B]🇨🇦 NEWCANADA40 — 40% OFF VPS in Canada (Toronto)[/B][/SIZE] We are excited to announce the launch of our new location — Toronto, Canada. [B]Promo code:[/B] NEWCANADA40 [B]Discount:[/B] 40% on VPS orders [B]Valid until:[/B] June 7 ✔ New Canadian location ✔ Excellent North American connectivity ✔ Fast server deployment ✔ Suitable for any project [B]How to activate:[/B] — Visit our website — Select Canada (Toronto) as your location — Enter the promo code during checkout 👉 [url=https://bit.hosting]https://bit.hosting[/url] [I]The offer is valid for new Toronto VPS orders until June 7, 2026.</I>
    • Thanks for the collection and the free advertising! These files have been in the public domain for a long time — you just saved people the trouble of searching. A true fan. 😄 Just to clarify for everyone reading: these files have nothing to do with this topic. They are 10+ year old builds, and since various third-party modifications exist in the wild, we cannot guarantee what may have been added or changed in those versions. Use them at your own risk. We have absolutely no judgment toward those who are on a tight budget and can't afford our current builds — these old shared files might genuinely help you get started. Just use them carefully and at your own risk. And please don't judge developers for the mistakes they made early in their careers — every developer goes through stages of growth, and what you see in those old builds is simply a snapshot of where we were back then. We've come a long way since. If you're interested in our older builds, we have a dedicated thread for that with significantly reduced prices — very accessible for any budget. We have also recently resumed full technical support for legacy builds, handled by a separate team that doesn't interfere with our private development direction for larger projects. You can find our legacy builds here: Our OLd L2-scripts Packs Actual revisions Our current private sources are a completely different story — which is exactly what this thread is about. Too bad all your time goes into collecting other people's old code instead of developing your own project. Though judging by "L2MID is currently offline, we will come back soon in 2026" — you clearly have plenty of time on your hands. 😉
    • SHARED alreaxy! Are these files yours? https://fex.net/ru/s/kdop2z4
    • You asked for examples of coping projects, we provided them, you asked for feedback from our clients, some of them wrote their reviews on the same mmodev, what else can I prove to you? you just asked your friends from mmodev to write nasty things, they have never been our customers and never will be, because they are used to downloading only free products and hacking it. You just don't respect the work of others, this is the conclusion that can be drawn from your inflammatory topic on mmodev, where there are many people who once could not buy our assemblies or whom we kicked out of work or for some other reason. But you are completely wrong and you are behaving very lowly. But let it be on your conscience. Good luck, keep busy with your project, and don't interfere with others.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..