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

    • Fixed a lot of null crashes, damn vanganth 🤣 Added engine that you can create your custom quests Extender dungeon systen so u can create as many dungeons as you like       Possibility to create a server from scratch its possible just is the work + the license/month , many ask for the creation.. i can do everything u like, i can even implement UFOs to fly over gym so.. whatever your dream is i can be as close as possible!
    • Hello, it is someone here to help me to make multiskill on helios pack? ( Not stacksub ) i want. On Hi5 i have this config .   # When enabled, the following will be true: # All classes can learn all skills. # Skills of another class costs x2 SP to learn. # Skills of another race costs x2 SP to learn. # Skills of fighters/mages costs x3 SP to learn. # Default: False AltGameSkillLearn = True
    • Thank you Mobius, and thank you to everybody that has helped this project making it the easiest platform to work on even if new. GGZ
    • IPHONE 17 PRO – THE QUIET SABOTEUR The new flagship should be better, right? In reality, it has become the main culprit behind rejections. Smartphone signatures are now known inside out. And the iPhone 17 Pro leads in verification failures. ▪ What exactly kills it: - aggressive AI noise reduction wipes out all natural grain - too clean HDR and perfectly even colors - characteristic digital artifacts in the shadows that weren’t there on 13–14 series - Pixel 9 is trying too, but it’s still less predictable Older models still produce a more natural picture that systems accept more willingly.  The most dangerous phone is the one that tries too hard to be perfect. Want to know exactly which smartphone to shoot your case on to pass on the first try without stress? Write to DMs — we’ll select the model and settings for your situation so the phone works for you, not against you. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #smartphone #photoshop #drawing #iphone
  • 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..