Custom starting location.

This commit is contained in:
mobius
2015-01-02 08:26:23 +00:00
parent 083c98bca6
commit bb13c3a3c5
3 changed files with 39 additions and 3 deletions

View File

@ -233,8 +233,17 @@ public final class CharacterCreate extends L2GameClientPacket
}
final L2PcTemplate template = newChar.getTemplate();
Location createLoc = template.getCreationPoint();
newChar.setXYZInvisible(createLoc.getX(), createLoc.getY(), createLoc.getZ());
if (Config.CUSTOM_STARTING_LOC)
{
Location createLoc = new Location(Config.CUSTOM_STARTING_LOC_X, Config.CUSTOM_STARTING_LOC_Y, Config.CUSTOM_STARTING_LOC_Z);
newChar.setXYZInvisible(createLoc.getX(), createLoc.getY(), createLoc.getZ());
}
else
{
Location createLoc = template.getCreationPoint();
newChar.setXYZInvisible(createLoc.getX(), createLoc.getY(), createLoc.getZ());
}
newChar.setTitle("");
if (Config.ENABLE_VITALITY)