Jump to content
  • 0

Main Class [Change]


Question

Posted

Hello.

Can i change a player's main class without changing his appearance?

f.e...

a Human Mage logging in the server... and threw an NPC is able to choose Human knight as main Class... but keep his lame skinny Body.

thnx for your time.

2 answers to this question

Recommended Posts

  • 0
Posted

Hi POP-CORN,

 

I guess you could take a look at PcAppearance.java (com.l2jserver.gameserver.model.actor.appearance).

Inside L2PcInstance it's defined as: private PcAppearance _appearance;

 

When the character is created:

public static L2PcInstance create(int objectId, L2PcTemplate template, String accountName, String name, byte hairStyle, byte hairColor, byte face, boolean sex)

{

// Create a new L2PcInstance with an account name

PcAppearance app = new PcAppearance(face, hairColor, hairStyle, sex);

...

}

 

EDIT: Actually sorry, I'm not sure if it's in here, I don't see anything about race, this also applies to all the generic characters in the world

 

 

 

EDITEDIT: Check package com.l2jserver.gameserver.model.base, PlayerClass.java

PlayerClass(Race pRace, ClassType pType, ClassLevel pLevel)

{

_race = pRace;

_level = pLevel;

_type = pType;

}

You maybe be able to check this to set the race to another

 

  • 0
Posted

Hi POP-CORN,

 

I guess you could take a look at PcAppearance.java (com.l2jserver.gameserver.model.actor.appearance).

Inside L2PcInstance it's defined as: private PcAppearance _appearance;

 

When the character is created:

public static L2PcInstance create(int objectId, L2PcTemplate template, String accountName, String name, byte hairStyle, byte hairColor, byte face, boolean sex)

{

// Create a new L2PcInstance with an account name

PcAppearance app = new PcAppearance(face, hairColor, hairStyle, sex);

...

}

 

EDIT: Actually sorry, I'm not sure if it's in here, I don't see anything about race, this also applies to all the generic characters in the world

 

 

 

EDITEDIT: Check package com.l2jserver.gameserver.model.base, PlayerClass.java

PlayerClass(Race pRace, ClassType pType, ClassLevel pLevel)

{

_race = pRace;

_level = pLevel;

_type = pType;

}

You maybe be able to check this to set the race to another

 

Thnx for the infos.

I will check it out.

Thnx again mate.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock