First of all, I apologize for multi-threading but my old thread died out and I couldn't find it. This is the new version of the @str @int @dex and @luk commands fully working and fixed. Everyone who uses the @str @int @dex @luk commands is STRONGLY ENCOURAGED to replace your old @str @int @dex @luk commands with this. In this version, not only are players available to add stats, but also reduce stats. For example : @str 51 to add 51 str.
@str -152 to reset 152 str and etc.
Do update your repacks and so and include this in it. Some credits to airflow0 for the @str @int @dex @luk commands and to me for the updated version.
First, open commandprocessor.java. Make sure you have this import, if not, add it.Then, Ctrl + F and search forCode:import net.sf.odinms.client.MapleStat;And replace it with (if it isn't already like this)Code:if (line.charAt(0) == '!' && isGM) {Then add this or replace your old @str @int @dex @luk command with this.Code:if (line.charAt(0) == '!' && isGM || line.charAt(0) == '@') {*Note* The script looks abit weird but it works perfectly fine because putting 2 commands together is quite complicating so I finally came out with something that works although it looks weird. Tested and working. No negative AP or stats~Code:} else if (splitted[0].equals("@str")) { int up; up = Integer.parseInt(splitted[1]); if (up > 0 && player.getRemainingAp() >= up && player.getRemainingAp() > 0 && player.getStr() + up < 31000) { player.setStr(player.getStr() + up); player.setRemainingAp(player.getRemainingAp() - up); player.updateSingleStat(MapleStat.STR, player.getStr()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("Enjoy !"); if ( up < 0 && player.getStr() >= 4 && player.getStr() + up >= 4 && player.getStr() > -up) { player.setStr(player.getStr() + up); player.setRemainingAp(player.getRemainingAp() -up); player.updateSingleStat(MapleStat.STR, player.getStr()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("No cheating !"); } } } else if (splitted[0].equals("@int")) { int up; up = Integer.parseInt(splitted[1]); if (up > 0 && player.getRemainingAp() >= up && player.getRemainingAp() > 0 && player.getInt() + up < 31000) { player.setInt(player.getInt() + up); player.setRemainingAp(player.getRemainingAp() - up); player.updateSingleStat(MapleStat.INT, player.getInt()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("Enjoy !"); if ( up < 0 && player.getInt() >= 4 && player.getInt() + up >= 4 && player.getInt() > -up) { player.setInt(player.getInt() + up); player.setRemainingAp(player.getRemainingAp() -up); player.updateSingleStat(MapleStat.INT, player.getInt()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("No cheating !"); } } //DEX } else if (splitted[0].equals("@dex")) { int up; up = Integer.parseInt(splitted[1]); if (up > 0 && player.getRemainingAp() >= up && player.getRemainingAp() > 0 && player.getDex() + up < 31000) { player.setDex(player.getDex() + up); player.setRemainingAp(player.getRemainingAp() - up); player.updateSingleStat(MapleStat.DEX, player.getDex()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("Enjoy !"); if ( up < 0 && player.getDex() >= 4 && player.getDex() + up >= 4 && player.getDex() > -up) { player.setDex(player.getDex() + up); player.setRemainingAp(player.getRemainingAp() -up); player.updateSingleStat(MapleStat.DEX, player.getDex()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("No cheating !"); } } //LUCK } else if (splitted[0].equals("@luk")) { int up; up = Integer.parseInt(splitted[1]); if (up > 0 && player.getRemainingAp() >= up && player.getRemainingAp() > 0 && player.getLuk() + up < 31000) { player.setLuk(player.getLuk() + up); player.setRemainingAp(player.getRemainingAp() - up); player.updateSingleStat(MapleStat.LUK, player.getLuk()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("Enjoy !"); if ( up < 0 && player.getLuk() >= 4 && player.getLuk() + up >= 4 && player.getLuk() > -up) { player.setLuk(player.getLuk() + up); player.setRemainingAp(player.getRemainingAp() -up); player.updateSingleStat(MapleStat.LUK, player.getLuk()); player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp()); } else { mc.dropMessage("No cheating !"); } } }



![[Release] New & Improved Version Of @str @int @dex @luk commands ! MUST SEE !](http://ragezone.com/hyper728.png)


