@resetstr @resetint @resetdex @resetluk commands

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

    @resetstr @resetint @resetdex @resetluk commands

    Since I couldn't find this anywhere on the forums, I decided to release it. Instead of resetting your whole ap from an npc, you can choose how much to reset what with a command. Credits goes to me for creating this and airflow0 for creating @setstats command. *Note* This method is assuming you have @str @int @dex @luk commands in your server.

    First, open CommandProcessor.java. Make sure you have this import, if not add it.
    Code:
    import net.sf.odinms.client.MapleStat;
    After that, find
    Code:
    } else if (splitted[0].equals("@str")) {
    Above it, add
    Code:
    } else if (splitted[0].equals("@resetstr")) {
                       int down;
                        down = Integer.parseInt(splitted[1]);
                        if ( player.getStr() < 4 || player.getStr() - down <= 4) {
                            mc.dropMessage("Reached minimum str.");
                        } else if ( player.getStr() < down) {
                            mc.dropMessage("Not enough str to reset");
                        } else {
                              player.setStr(player.getStr() - down);
                              player.setRemainingAp(player.getRemainingAp() + down);
                              player.updateSingleStat(MapleStat.STR, player.getStr());
                              player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
                    }
                        //INT 
                    }else if (splitted[0].equals("@resetint")) {
                       int down;
                        down = Integer.parseInt(splitted[1]);
                        if ( player.getInt() < 4 || player.getInt() - down <= 4) {
                            mc.dropMessage("Reached minimum int.");
                        } else if ( player.getInt() < down) {
                            mc.dropMessage("Not enough int to reset");
                        } else {
                              player.setInt(player.getInt() - down);
                              player.setRemainingAp(player.getRemainingAp() + down);
                              player.updateSingleStat(MapleStat.INT, player.getInt());
                              player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
                    }
                        //DEX
                    }else if (splitted[0].equals("@resetdex")) {
                       int down;
                        down = Integer.parseInt(splitted[1]);
                        if ( player.getDex() < 4 || player.getDex() - down <= 4) {
                            mc.dropMessage("Reached minimum dex.");
                        } else if ( player.getDex() < down) {
                            mc.dropMessage("Not enough dex to reset");
                        } else {
                              player.setDex(player.getDex() - down);
                              player.setRemainingAp(player.getRemainingAp() + down);
                              player.updateSingleStat(MapleStat.DEX, player.getDex());
                              player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
                    }
                        //LUCK
                    }else if (splitted[0].equals("@resetluk")) {
                       int down;
                        down = Integer.parseInt(splitted[1]);
                        if ( player.getLuk() < 4 || player.getLuk() - down <= 4) {
                            mc.dropMessage("Reached minimum luk.");
                        } else if ( player.getLuk() < down) {
                            mc.dropMessage("Not enough luk to reset");
                        } else {
                              player.setLuk(player.getLuk() - down);
                              player.setRemainingAp(player.getRemainingAp() + down);
                              player.updateSingleStat(MapleStat.LUK, player.getLuk());
                              player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
                    }
    You can still add this if you don't have @str commands. Just add the above code anywhere you like in the commands. Tested and working.


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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    *Reserved for further updates*

  3. #3
    Member TookTook123 is offline
    MemberRank
    Aug 2008 Join Date
    89Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    thanks :)
    ill use it for sure:)(:

  4. #4
    Alpha Member xblackcat is offline
    MemberRank
    Aug 2008 Join Date
    nowhereLocation
    1,655Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    isnt that what a stat reseter is for?

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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    Uh not really. This is more convenient. A stat resetter requires you to go to the npc and reset ALL of your stats back to 4. This allows you to choose how much you want to reset a stat and you just have to type in e.g. @resetstr 5. Also saves time from making an ap reset npc.

  6. #6
    Alpha Member xblackcat is offline
    MemberRank
    Aug 2008 Join Date
    nowhereLocation
    1,655Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    but you could just make the npc command so
    @stat reseter, would open the stat reseter

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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    At least you get the freedom to choose what to reset and not to reset everything :P

  8. #8
    Alpha Member xblackcat is offline
    MemberRank
    Aug 2008 Join Date
    nowhereLocation
    1,655Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    no, most server have a stat reseter that you can choose what to reset

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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    Oh then don't use it if you don't want to. Nobody is forcing you to use this.

  10. #10
    Alpha Member Gmanpopinjay is offline
    MemberRank
    Dec 2007 Join Date
    1,588Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    Nice release but u Im add this on my server @reset and it pops up a list letting u choose which u want to do instead of remembering all those commands =)

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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    fuck the posters above, good release its helpful

  12. #12
    Infraction Banned nejevoli is offline
    MemberRank
    May 2008 Join Date
    ♥ In Your HeartLocation
    574Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    nice , good job ~

  13. #13
    Alpha Member xelkin is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    1,522Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    nice release man i should add it to my pserver =D

  14. #14
    Account Upgraded | Title Enabled! erick33321 is offline
    MemberRank
    Jul 2008 Join Date
    422Posts

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    nice release 8/10

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

    Re: [Release] @resetstr @resetint @resetdex @resetluk commands

    I think this is awesome. Saves an npc from being used. Good job.



Page 1 of 2 12 LastLast

Advertisement