1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2026-01-27 13:12:47 +00:00

Character calculators

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-23 23:49:19 -03:00
parent 1909bb06cc
commit a1b1211616
206 changed files with 4749 additions and 1170 deletions

View File

@@ -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};

View File

@@ -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();