I will give you an example.
Open PcTemplate.java or PlayerTemplate.java
Find this
@Override
public final double getBaseHpMax(int level)
{
return _hpTable[level - 1];
}
And make something like this
public final double getBaseHpMax(int level)
{
int lvlmod = level - this._classBaseLevel;
double hpmod = 0.37 * lvlmod;
double hpmax = (this._hpAdd + hpmod) * lvlmod;
double hpmin = this._hpAdd * lvlmod + hpmod;
return this._hpInitial + (hpmax + hpmin) / 2;
}
Then find this
private final int _classBaseLevel;
And put after
private final double _hpInitial;
private final double _hpAdd;
Find this
_classBaseLevel = set.getInteger("baseLvl");
And put after this
this._hpInitial = set.getDouble("hpInitial");
this._hpAdd = set.getDouble("hpAdd");
If you do this you need to remove hpTable,mptable,cptable both on PlayerTemplate.java and xml. And put something like this on xmls
<set val="80" name="hpInitial"/>
<set val="11.83" name="hpAdd"/>
try to change
String timeon = getPlayerRunTime(result.getInt("ch.onlinetime"));
String adenas = getAdenas(result.getInt("SUM(it.count)"));
to
String timeon = getPlayerRunTime(result.getLong("ch.onlinetime"));
String adenas = getAdenas(result.getLong("SUM(it.count)"));
you also need to change
static String getPlayerRunTime
and
static String getAdenas
to long
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..