working cm.maxMastery (moopleDEV)

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! sident is offline
    MemberRank
    Oct 2008 Join Date
    my houseLocation
    267Posts

    working cm.maxMastery (moopleDEV)

    So for rev.116 the cm.maxMastery command seems to reset your skills instead of maxing them, so I went into the commands , found the !maxskills command and took that, soo if your cm.maxMastery isnt working, go into

    npcConversationManager.java and find
    Code:
        public void maxMastery() {
                 for (MapleData skill_ : MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz")).getData("Skill.img").getChildren()) {
                    try {
                        ISkill skill = SkillFactory.getSkill(Integer.parseInt(skill_.getName()));
                        c.getPlayer().changeSkillLevel(skill, 0, skill.getMaxLevel(), -1);
                    } catch (NumberFormatException nfe) {
                        break;
                    } catch (NullPointerException npe) {
                        continue;
                    }
                }
        }
    and change it to
    Code:
    public void maxMastery() {
            for (MapleData skill_ : MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz")).getData("Skill.img").getChildren()) {
                    try {
                        ISkill skill = SkillFactory.getSkill(Integer.parseInt(skill_.getName()));
                        getPlayer().changeSkillLevel(skill, (byte) skill.getMaxLevel(), skill.getMaxLevel(), -1);
                    } catch (NumberFormatException nfe) {
                        break;
                    } catch (NullPointerException npe) {
                        continue;
                    }
                }
        }


  2. #2
    Enthusiast Jokersoftms is offline
    MemberRank
    Oct 2010 Join Date
    48Posts

    Re: working cm.maxMastery (moopleDEV)

    Good job.

  3. #3
    Enthusiast iMrUniverse is offline
    MemberRank
    Jun 2011 Join Date
    BelgiumLocation
    38Posts

    Re: working cm.maxMastery (moopleDEV)

    I already changed that before, it isn't hard to find?

  4. #4
    Infraction Banned WhySoPro is offline
    MemberRank
    Jul 2011 Join Date
    141Posts

    Re: working cm.maxMastery (moopleDEV)

    lol trying and catching for no reason smh..

    Code:
    public void maxMastery() {
            for (MapleData skill_ : MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz")).getData("Skill.img").getChildren()) {
                        ISkill skill = SkillFactory.getSkill(Integer.parseInt(skill_.getName()));
                        getPlayer().changeSkillLevel(skill, (byte) skill.getMaxLevel(), skill.getMaxLevel(), -1);
                }
        }

  5. #5
    Apprentice Nugg3rTr0ll is offline
    MemberRank
    Aug 2011 Join Date
    17Posts

    Re: working cm.maxMastery (moopleDEV)

    Quote Originally Posted by WhySoPro View Post
    lol trying and catching for no reason smh..

    Code:
    public void maxMastery() {
            for (MapleData skill_ : MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz")).getData("Skill.img").getChildren()) {
                        ISkill skill = SkillFactory.getSkill(Integer.parseInt(skill_.getName()));
                        getPlayer().changeSkillLevel(skill, (byte) skill.getMaxLevel(), skill.getMaxLevel(), -1);
                }
        }
    nab nab nab.

  6. #6
    Enthusiast Kurosakii is offline
    MemberRank
    Apr 2010 Join Date
    42Posts

    Re: working cm.maxMastery (moopleDEV)

    maxMastery != maxSkill

  7. #7
    Member omerdn1 is offline
    MemberRank
    Apr 2009 Join Date
    55Posts

    Re: working cm.maxMastery (moopleDEV)

    ty! good job



Advertisement