set.set("baseShldRate", 0);
set.set("baseAtkRange", 40);
set.set("spawnX", rset.getInt("char_templates.x"));
set.set("spawnY", rset.getInt("char_templates.y"));
set.set("spawnZ", rset.getInt("char_templates.z"));
L2PlayerTemplate ct;
//
// Male class
//
set.set("isMale", true);
// set.setMUnk1(rset.getDouble(27));
// set.setMUnk2(rset.getDouble(28));
set.set("collision_radius", rset.getDouble("char_templates.m_col_r"));
set.set("collision_height", rset.getDouble("char_templates.m_col_h"));
ct = new L2PlayerTemplate(set);
// 5items must go here
for(int x = 1; x < 6; x++)
{
if(rset.getInt("char_templates.items" + x) != 0)
{
ct.addItem(rset.getInt("char_templates.items" + x));
}
}
_templates.put(ct.classId.getId(), ct);
//
// Female class
//
set.set("isMale", false);
// set.setFUnk1(rset.getDouble(31));
// set.setFUnk2(rset.getDouble(32));
set.set("collision_radius", rset.getDouble("char_templates.f_col_r"));
set.set("collision_height", rset.getDouble("char_templates.f_col_h"));
ct = new L2PlayerTemplate(set);
// 5items must go here
for(int x = 1; x < 6; x++)
{
int itemId = rset.getInt("char_templates.items" + x);
if(itemId != 0)
{
ct.addItem(itemId);
}
}
_templates.put(ct.classId.getId() | 0x100, ct);
}
}