Npc subclass

BuuX

Vagabond
Customer
Hi everyone,
I’m working on a custom feature and I need guidance or a code example.

I want to create a system where a character’s visual race automatically changes depending on the race of the subclass they add. This must follow a one-way evolutionary rule.


Example
Main class: Orc Tyrant
Subclass: Orc Destroyer
→ Character stays visually an Orc.




----------------
Different-race subclass → Change appearance to that race

Example:
Main class: Orc Tyrant
Subclass: Sword Singer (Light Elf)
→ Character visually becomes a Light Elf.

Other players must also see the changed race.



--------------

Evolution is one-way (no going back)

Example evolution path:
Orc → Light Elf → Human → Dark Elf

Evolution is one-way by subclass: once a subclass has been used, the character cannot select that subclass again, regardless of race.
 
Last edited:
This is not possible, why?, we dont have access to source, this is possible, if deazer make it in the source

I have a skin race change, but is only "visual", when you enter to lobby, you look the original race skin, and when you enter to game, you can look your "visual" skin
 
This is not possible, why?, we dont have access to source, this is possible, if deazer make it in the source

I have a skin race change, but is only "visual", when you enter to lobby, you look the original race skin, and when you enter to game, you can look your "visual" skin
Is it not possible to create a patch that avoids modifying the source code?
 
You want this for interlude or classic?
Classic, I only want a visual + stat override on subclass activation, implemented outside the core (NPC script or custom feature), not by editing the game’s source files.
 
Classic, I only want a visual + stat override on subclass activation, implemented outside the core (NPC script or custom feature), not by editing the game’s source files.
so yeah you need ext.jar for this feature since we can not modify the source code. The idea is interesting. When I have free time I will try make it.
 
This cannot be done correctly. Similarly, the game client cannot change the player's skin on the fly, it breaks.
 
This cannot be done correctly. Similarly, the game client cannot change the player's skin on the fly, it breaks.
The skin change does not need to happen instantly. It can be applied on next login after the subclass change, maybe force a logout/disconnected?
 
The skin change does not need to happen instantly. It can be applied on next login after the subclass change, maybe force a logout/disconnected?
I have a theory, since you have to intercept the “char_selection” packet, which is a Lineage 2 packet, and also create a player.java extension and create a table or add a new variable to “character” to save your information.

The problem is that it's possible within the game, but the problem is when you enter the lobby to select your character... the skin doesn't load. Only in real world
 
This system is practically implemented when an admin changes a subclass, or you change the main class through an NPC. This changes the character's appearance.
But as for the subclass... that's a different matter. Because if you don't relog, skills, movement, and other things can glitch. And the last thing you need is for it to crash the server.

If you implement a system where a player gets kicked when changing a subclass, you'll be inundated with reports from ordinary players (WHAT IS GOING ON???!!) :)
You need to think twice before even considering implementing something like this.
 
This system is practically implemented when an admin changes a subclass, or you change the main class through an NPC. This changes the character's appearance.
But as for the subclass... that's a different matter. Because if you don't relog, skills, movement, and other things can glitch. And the last thing you need is for it to crash the server.

If you implement a system where a player gets kicked when changing a subclass, you'll be inundated with reports from ordinary players (WHAT IS GOING ON???!!) :)
You need to think twice before even considering implementing something like this.
I think.. he want make a subclass acumulative server, in this type of servers, I make this system the player when you change of race skin, is on quiet (bug / T-pose) and you need restart or relogin the character for load the height, colission, hair, face, etc etc
 
I think.. he want make a subclass acumulative server, in this type of servers, I make this system the player when you change of race skin, is on quiet (bug / T-pose) and you need restart or relogin the character for load the height, colission, hair, face, etc etc
Yes, you're right. That's practically what I meant. We need to think about how this will work on the game server.
Imagine a situation where an epic is going on, a player needs to change their subclass, they change it, they get kicked out of the game... the party breaks... and so on. And what if the player accidentally clicked the wrong subclass? :))
And that's a very common example. :)
 
Yes, you're right. That's practically what I meant. We need to think about how this will work on the game server.
Imagine a situation where an epic is going on, a player needs to change their subclass, they change it, they get kicked out of the game... the party breaks... and so on. And what if the player accidentally clicked the wrong subclass? :))
And that's a very common example. :)
what he mean is the next:

base: Elf mystic muse
1st sub: dark elf PS
2th sub: TK elf
3th sub: orc tyrant

case 1: you change to the base -> you dont lose the skin of orc tyrant
case 2: base -> sub 1 = skin of the sub
case 3: save permanent the last subclass, you cant recover your original skin
 
Yes, my idea was to make sub stackskills, I just wanted to know if it's possible to implement that subclass NPC.
 
Back
Top