Weird Skill Maxer

Results 1 to 10 of 10
  1. #1
    Member DivineKid is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Weird Skill Maxer

    Apparently , This noob skill maxer only maxes the job's skills . As in literally , if I was job 112 ( Hero ) it only maxes for 112 , not from 100-112 ( warrior - hero ) . How can I edit this to max 1 shot all the skills ?

    public void maxSkillMaster() { GotData data = GotDataProviderFactory.getDataProvider(GotDataProviderFactory.fileInWZPath("Skill.wz")).getData(StringUtil.getLeftPaddedStr("" + getJob(), '0', 3) + ".img");
    byte maxLevel = 0;
    for (GotData skill : data) {
    if (skill != null) {
    for (GotData skillId : skill.getChildren()) {
    if (!skillId.getName().equals("icon")) {
    maxLevel = (byte) GotDataTool.getIntConvert("maxLevel", skillId.getChildByPath("common"), 0);
    if (GotDataTool.getIntConvert("invisible", skillId, 0) == 0) {
    try {
    changeSkillLevel(SkillFactory.getSkill(Integer.parseInt(skillId.getName())), maxLevel, SkillFactory.getSkill(Integer.parseInt(skillId.getName())).isFourthJob() ? maxLevel : /*0*/ maxLevel);
    } catch (NumberFormatException e) {
    continue;
    }
    }
    }
    }
    }
    }
    }


  2. #2
    Account Upgraded | Title Enabled! ngnam87 is offline
    MemberRank
    Mar 2013 Join Date
    666Posts

    Re: Weird Skill Maxer

    because :
    GotDataProviderFactory.getDataProvider(GotDataProviderFactory.fileInWZPath("Skill.wz")).getData(StringUtil.getLeftPaddedStr("" + getJob(), '0', 3) + ".img");
    getJob(); will return only current job, then code more if you want !

  3. #3
    Member DivineKid is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Re: Weird Skill Maxer

    Mmmm so all I have to do is code another function to replace getJob(), so that it works for whole job instead ?

  4. #4
    Member DivineKid is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Re: Weird Skill Maxer

    Bump still don't get how to make it max for all jobs .

  5. #5
    C# developer xStr0nGx is offline
    MemberRank
    Dec 2013 Join Date
    UnknownLocation
    659Posts

    Re: Weird Skill Maxer

    PHP Code:
        public final void maxAllSkills() {
            
    HashMap<SkillSkillEntrysa = new HashMap<>();
            for (
    Skill skil SkillFactory.getAllSkills()) {
                if (
    GameConstants.isApplicableSkill(skil.getId()) && skil.getId() < 90000000) { //no db/additionals/resistance skills
                    
    sa.put(skil, new SkillEntry((byteskil.getMaxLevel(), (byteskil.getMaxLevel(), SkillFactory.getDefaultSExpiry(skil)));
                }
            }
            
    changeSkillsLevel(sa);
        } 

    Enjoy.

  6. #6
    Member DivineKid is offline
    MemberRank
    May 2013 Join Date
    70Posts

    Re: Weird Skill Maxer

    I got no " getAllSkills " method in my SkillFactory .

    Can I re-edit my command , the one I posted to max all job skills ? Instead of doing NPC-Type of max skills.

  7. #7
    C# developer xStr0nGx is offline
    MemberRank
    Dec 2013 Join Date
    UnknownLocation
    659Posts

    Re: Weird Skill Maxer

    Quote Originally Posted by DivineKid View Post
    I got no " getAllSkills " method in my SkillFactory .

    Can I re-edit my command , the one I posted to max all job skills ? Instead of doing NPC-Type of max skills.
    But your function is kinda bad-coded ..


    add this to your skillfactory file:

    private static final Map<Integer, Skill> skills = new HashMap<Integer, Skill>();

    public static Collection<Skill> getAllSkills() {
    return skills.values();
    }

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

    Re: Weird Skill Maxer

    Quote Originally Posted by xStr0nGx View Post
    But your function is kinda bad-coded ..


    add this to your skillfactory file:
    Congratulations, that's a variable, not a method.

    To get getAllSkills, just find a source that does have it. Most structures are the same nowadays.

  9. #9
    C# developer xStr0nGx is offline
    MemberRank
    Dec 2013 Join Date
    UnknownLocation
    659Posts

    Re: Weird Skill Maxer

    Quote Originally Posted by Entei View Post
    Congratulations, that's a variable, not a method.

    To get getAllSkills, just find a source that does have it. Most structures are the same nowadays.
    So ur calling that a variable?

    public static Collection<Skill> getAllSkills() {
    return skills.values();
    }
    take another look.

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

    Re: Weird Skill Maxer

    Quote Originally Posted by xStr0nGx View Post
    So ur calling that a variable?



    take another look.
    Oh, mistook { for a ;
    My bad.



Advertisement