[Release] New & Improved Version Of @str @int @dex @luk commands ! MUST SEE !

Status
Not open for further replies.
Experienced Elementalist
Joined
Jul 26, 2008
Messages
280
Reaction score
0
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.
Code:
import net.sf.odinms.client.MapleStat;
Then, Ctrl + F and search for
Code:
if (line.charAt(0) == '!' && isGM) {
And replace it with (if it isn't already like this)
Code:
if (line.charAt(0) == '!' && isGM || line.charAt(0) == '@') {
Then add this or replace your old @str @int @dex @luk command with this.
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 !");
                }
                    }
                }
*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~
 
Last edited:
firstly, im talking without checking the command, but im guessing you never added a check.
What if i have 100 str and do @str -30000
 
yea you get neg ap then try re-add and then your stats you just removed goes neg. This isnt a stable version
 
Hmm theres this in some MS but don't know why they say Insufficent AP after awhile. And you can go to Negative amount of AP too since 4 is the least you can go to 0 ap .
 
erm this basically do is when u are lazy to pump it when u have like 15 u can just use the command and type let say str type @str 15 issit?
 
Wheres the credits? Complete copy and paste rofl. It's so simple to fix the "negative glitch" Use your brain. This is pointless, people can set negative stats repeatedly until they are positive and have like 30k AP stats at level 10.
 
Status
Not open for further replies.
Back