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

Page 1 of 4 1234 LastLast
Results 1 to 15 of 58
  1. #1
    Account Upgraded | Title Enabled! xazerrx is offline
    MemberRank
    Jul 2008 Join Date
    SiNGaPoReLocation
    718Posts

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

    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 by xazerrx; 09-09-08 at 06:16 PM.


  2. #2
    Account Upgraded | Title Enabled! xazerrx is offline
    MemberRank
    Jul 2008 Join Date
    SiNGaPoReLocation
    718Posts

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

    *reserved for further updates*

  3. #3
    Account Upgraded | Title Enabled! xChibi is offline
    MemberRank
    Jun 2008 Join Date
    Im youtubes... GodsAng3l! XDLocation
    279Posts

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

    Nice release ill probaly use this :3

  4. #4
    Account Upgraded | Title Enabled! xazerrx is offline
    MemberRank
    Jul 2008 Join Date
    SiNGaPoReLocation
    718Posts

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

    Thank you :)

  5. #5
    Account Upgraded | Title Enabled! megoesrawr is offline
    MemberRank
    May 2008 Join Date
    CaliforniaLocation
    873Posts

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

    I prefer V1ral's :X

  6. #6
    Member Eco- is offline
    MemberRank
    Jul 2008 Join Date
    USALocation
    60Posts

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

    Nice release

  7. #7
    Account Upgraded | Title Enabled! Shadow26 is offline
    MemberRank
    Jun 2008 Join Date
    CrimsonhoodLocation
    424Posts

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

    Awesome job on the release.

  8. #8
    Proficient Member lols1996 is offline
    MemberRank
    Jun 2008 Join Date
    152Posts

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

    awesome release thanks for this

  9. #9
    Account Upgraded | Title Enabled! DrFusion is offline
    MemberRank
    Jul 2008 Join Date
    PlayBoyMansionLocation
    691Posts

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

    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

  10. #10
    Account Upgraded | Title Enabled! xCheetah is offline
    MemberRank
    Jun 2008 Join Date
    332Posts

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

    Quote Originally Posted by DrFusion View Post
    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.

  11. #11
    Account Upgraded | Title Enabled! DrFusion is offline
    MemberRank
    Jul 2008 Join Date
    PlayBoyMansionLocation
    691Posts

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

    yea you get neg ap then try re-add and then your stats you just removed goes neg. This isnt a stable version

  12. #12
    Alpha Member Chelseaa is offline
    MemberRank
    Mar 2007 Join Date
    In an MSN Chatroom. [:Location
    1,612Posts

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

    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.
    [:

  13. #13
    Account Upgraded | Title Enabled! urtime59 is offline
    MemberRank
    Apr 2008 Join Date
    360Posts

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

    does this work with the apreset command/?

  14. #14
    Omega ihatehaxor is offline
    MemberRank
    Apr 2008 Join Date
    JerseyLocation
    5,461Posts

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

    ill try this i guess

  15. #15
    Account Upgraded | Title Enabled! Tardilicious is offline
    MemberRank
    Jul 2008 Join Date
    Behind YouLocation
    206Posts

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

    So this basicly allows you to add AP and Reset ur AP. Nice!



Page 1 of 4 1234 LastLast

Advertisement