Change body appearance

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
fakoykas
Posts: 32
Joined: Wed May 06, 2009 11:11 pm

Change body appearance

Post by fakoykas »

If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:STABLE
L2JDP Revision Number:STABLE

Hi guys, i want to create an item which changes the appearance of the player to whatever race he selected, maintaining his current class.

The way i did it, was creating a new method setRace() to change his race, then updated getRace() method with my new variable and i used setRace() on restore method to set Race always on enter. So far, so good. The race changes fine, but i have a problem.. Collision is set through class Id, so if a human changes to dwarf body, the collision remains the same (human).

Anyone can share an idea of how this could be coded any other way, or how i can change the collision? I looked enough, but i couldn't find anything else.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Change body appearance

Post by Zoey76 »

This actually is a good opportunity to make a retail fix.

After talking with nBd, he told me retail manages races and class Ids independent from each other.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
fakoykas
Posts: 32
Joined: Wed May 06, 2009 11:11 pm

Re: Change body appearance

Post by fakoykas »

Mm ok :P but is there any other way i can do it till you guys properly fix it?
Post Reply