POP-CORN Posted October 2, 2011 Posted October 2, 2011 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. Quote
0 dpbBryan Posted October 2, 2011 Posted October 2, 2011 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 Quote
0 POP-CORN Posted October 3, 2011 Author Posted October 3, 2011 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. Quote
Question
POP-CORN
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
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.