mirror of
https://github.com/Rogiel/l2jserver2
synced 2026-01-27 13:12:47 +00:00
@@ -27,6 +27,18 @@ public class ${javaClassName}Template extends ${parent}Template {
|
||||
@Inject
|
||||
public ${javaClassName}Template(CharacterTemplateIDProvider provider) {
|
||||
super(provider.createID(${ClassId}.id), ${ClassId}, Point.fromXYZ(${x}, ${y}, ${z}));
|
||||
|
||||
this.hpBase = ${defaulthpbase};
|
||||
this.hpAdd = ${defaulthpadd};
|
||||
this.hpMultiplier = ${defaulthpmod};
|
||||
this.mpBase = ${defaultmpbase};
|
||||
this.mpAdd = ${defaultmpadd};
|
||||
this.mpMultiplier = ${defaultmpmod};
|
||||
this.cpBase = ${defaultcpbase};
|
||||
this.cpAdd = ${defaultcpadd};
|
||||
this.cpMultiplier = ${defaultcpmod};
|
||||
this.minimumLevel = ${class_lvl};
|
||||
|
||||
// ATTRIBUTES
|
||||
attributes.intelligence = ${_INT};
|
||||
attributes.strength = ${STR};
|
||||
|
||||
@@ -55,7 +55,8 @@ public class CharacterTemplateConverter {
|
||||
JDBC_USERNAME, JDBC_PASSWORD);
|
||||
try {
|
||||
final PreparedStatement st = conn
|
||||
.prepareStatement("SELECT * FROM char_templates");
|
||||
.prepareStatement("SELECT * FROM char_templates "
|
||||
+ "LEFT JOIN lvlupgain ON (char_templates.Classid = lvlupgain.classid)");
|
||||
try {
|
||||
st.execute();
|
||||
final ResultSet rs = st.getResultSet();
|
||||
|
||||
Reference in New Issue
Block a user