Anyone know how to increase the base stat limit? . i cant seem to find it. IM newbie:)
Help me please. Thank you!
Printable View
Anyone know how to increase the base stat limit? . i cant seem to find it. IM newbie:)
Help me please. Thank you!
As in remove the 999 limit?
To remove the 999 limit for command, go to PlayerCommand.java
Find:
ReplacePHP Code:public abstract static class DistributeStatCommands extends CommandExecute {
protected MapleStat stat = null;
private static int statLim = 999;
private void setStat(MapleCharacter player, int amount) {
switch (stat) {
case STR:
player.getStat().setStr((short) amount, player);
player.updateSingleStat(MapleStat.STR, player.getStat().getStr());
break;
case DEX:
player.getStat().setDex((short) amount, player);
player.updateSingleStat(MapleStat.DEX, player.getStat().getDex());
break;
case INT:
player.getStat().setInt((short) amount, player);
player.updateSingleStat(MapleStat.INT, player.getStat().getInt());
break;
case LUK:
player.getStat().setLuk((short) amount, player);
player.updateSingleStat(MapleStat.LUK, player.getStat().getLuk());
break;
}
}
PHP Code:private static int statLim = 999;
As for the adding of AP using the AP window, go StatsHandling.javaPHP Code:private static int statLim = <amount>; // what you desire
Find:
Replace all the 999 to the value you want.PHP Code:public static final void DistributeAP(final LittleEndianAccessor slea, final MapleClient c, final MapleCharacter chr) {
Map<MapleStat, Integer> statupdate = new EnumMap<MapleStat, Integer>(MapleStat.class);
c.getSession().write(CWvsContext.updatePlayerStats(statupdate, true, chr));
chr.updateTick(slea.readInt());
final PlayerStats stat = chr.getStat();
final int job = chr.getJob();
if (chr.getRemainingAp() > 0) {
switch (slea.readInt()) {
case 64: // Str
if (stat.getStr() >= 999) {
return;
}
stat.setStr((short) (stat.getStr() + 1), chr);
statupdate.put(MapleStat.STR, (int) stat.getStr());
break;
case 128: // Dex
if (stat.getDex() >= 999) {
return;
}
stat.setDex((short) (stat.getDex() + 1), chr);
statupdate.put(MapleStat.DEX, (int) stat.getDex());
break;
case 256: // Int
if (stat.getInt() >= 999) {
return;
}
stat.setInt((short) (stat.getInt() + 1), chr);
statupdate.put(MapleStat.INT, (int) stat.getInt());
break;
case 512: // Luk
if (stat.getLuk() >= 999) {
return;
}
stat.setLuk((short) (stat.getLuk() + 1), chr);
statupdate.put(MapleStat.LUK, (int) stat.getLuk());
break;
Thanks!!^^
btww you know how to make a no dmg cap client for v117.1?
Apparently, there's a dmgcap removed LEN redirector somewhere lying in the forum. Search it.