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