Working MaxMastery function on the way it should (MoopleDev rev 116)

Results 1 to 8 of 8
  1. #1
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Working MaxMastery function on the way it should (MoopleDev rev 116)

    Here is the fix for MaxMastery in NPCConversationManager.java.
    The function does now max the masterlevels but it doesn't set all the skills to 0.
    Credits to Polaris Repack and a bit to me.

    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()));
                    if ((skill.getId() / 10000 % 10 == 2 || (getClient().getPlayer().isCygnus() && skill.getId() / 10000 % 10 == 1) || (getClient().getPlayer().isAran() && skill.getId() / 10000 % 10 == 2)) && getPlayer().getSkillLevel(skill) < 1) {
                        getPlayer().changeSkillLevel(skill, (byte) 0, skill.getMaxLevel(), -1);
                    }
                } catch (NumberFormatException nfe) {
                    break;
                } catch (NullPointerException npe) {
                    continue;
                }
            }
        }


  2. #2
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    Quote Originally Posted by joost1500 View Post
    Here is the fix for MaxMastery in NPCConversationManager.java.
    The function does now max the masterlevels but it doesn't set all the skills to 0.
    Credits to Polaris Repack and a bit to me.

    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()));
                    if ((skill.getId() / 10000 % 10 == 2 || (getClient().getPlayer().isCygnus() && skill.getId() / 10000 % 10 == 1) || (getClient().getPlayer().isAran() && skill.getId() / 10000 % 10 == 2)) && getPlayer().getSkillLevel(skill) < 1) {
                        getPlayer().changeSkillLevel(skill, (byte) 0, skill.getMaxLevel(), -1);
                    }
                } catch (NumberFormatException nfe) {
                    break;
                } catch (NullPointerException npe) {
                    continue;
                }
            }
        }
    Doesn't set all skills to 0? What do you mean by that?

  3. #3
    Account Upgraded | Title Enabled! Liv3 is offline
    MemberRank
    Dec 2011 Join Date
    CanadaLocation
    817Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    Quote Originally Posted by joost1500 View Post
    Here is the fix for MaxMastery in NPCConversationManager.java.
    The function does now max the masterlevels but it doesn't set all the skills to 0.
    Credits to Polaris Repack and a bit to me.

    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()));
                    if ((skill.getId() / 10000 % 10 == 2 || (getClient().getPlayer().isCygnus() && skill.getId() / 10000 % 10 == 1) || (getClient().getPlayer().isAran() && skill.getId() / 10000 % 10 == 2)) && getPlayer().getSkillLevel(skill) < 1) {
                        getPlayer().changeSkillLevel(skill, (byte) 0, skill.getMaxLevel(), -1);
                    }
                } catch (NumberFormatException nfe) {
                    break;
                } catch (NullPointerException npe) {
                    continue;
                }
            }
        }
    wouldn't the 0 need to get getPlayer().getSkillLevel(skill) or w/e?

  4. #4
    Beep Boop Rampenbram is online now
    MemberRank
    Feb 2009 Join Date
    The NetherlandsLocation
    341Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    is this a fix for Skill mastery of just a skill maxer 0.o

  5. #5
    Account Upgraded | Title Enabled! Xerdox is offline
    MemberRank
    Oct 2011 Join Date
    PolandLocation
    312Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    PHP Code:
    getPlayer().changeSkillLevel(skill, (byte0skill.getMaxLevel(), -1); 
    It isn't skill maxer. It only fix skill mastery (for 4th job?).

  6. #6
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    Yes, it is to fix skill mastery, for 4th jobs, so that people don't need to find all the mastery books

  7. #7
    Valued Member Basis is offline
    MemberRank
    Dec 2008 Join Date
    108Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    Cool, so it actually doesn't "function the way it should" according to the official MapleStory (that's my understanding). It's just to bypass collecting books to allow you to train and advance the mastery skill like any other skill as you level.

  8. #8
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Re: Working MaxMastery function on the way it should (MoopleDev rev 116)

    Well, the MaxMastery function is created to just Max the Mastery levels, and nothing more than that.



Advertisement