Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[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:
Experienced Elementalist
Joined
Jul 26, 2008
Messages
280
Reaction score
0
*reserved for further updates*
 
Junior Spellweaver
Joined
Jun 22, 2008
Messages
127
Reaction score
0
Nice release ill probaly use this :3
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
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
 
Initiate Mage
Joined
Jun 14, 2008
Messages
62
Reaction score
0
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

Lol, I did that on a diff server and it went negative but I got the AP.
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
yea you get neg ap then try re-add and then your stats you just removed goes neg. This isnt a stable version
 
Master Summoner
Member
Joined
Mar 4, 2007
Messages
564
Reaction score
1
Eh, I don't think this is such a great release. It's just going to make a server more unfair, as people can get godly stats with this.
But a nice try.
[:
 
Junior Spellweaver
Joined
Apr 18, 2008
Messages
109
Reaction score
0
does this work with the apreset command/?
 
Junior Spellweaver
Joined
Jul 2, 2008
Messages
109
Reaction score
1
So this basicly allows you to add AP and Reset ur AP. Nice!
 
Custom Title Activated
Member
Joined
Jul 22, 2008
Messages
1,188
Reaction score
0
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 .
 
Elite Diviner
Joined
Apr 24, 2008
Messages
416
Reaction score
2
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?
 
Initiate Mage
Joined
Jun 11, 2008
Messages
21
Reaction score
0
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
Top