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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...