v62 [Job Advance NPC]

Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    :l Cygnus is offline
    MemberRank
    Mar 2015 Join Date
    f425Location
    237Posts

    Re: v62 [Job Advance NPC]

    It's right there Cannot find function getJobById.

  2. #17
    Member OzGazoz is offline
    MemberRank
    Jul 2012 Join Date
    90Posts

    Re: v62 [Job Advance NPC]

    Quote Originally Posted by Cygnus View Post
    It's right there Cannot find function getJobById.
    dont understand still how do i fix it xd
    Last edited by OzGazoz; 31-05-15 at 05:49 PM.

  3. #18
    Valued Member Burgundy is offline
    MemberRank
    Mar 2015 Join Date
    126Posts

    Re: v62 [Job Advance NPC]

    Quote Originally Posted by OzGazoz View Post
    dont understand still how do i fix it xd
    You could always add it back into npcconversationmanager/whatever else is needed to make that work,

    public String getJobById(int id) {
    return MapleJob.getJobName(id);
    }
    Or look and see how npcs such as dances with balrog work and what functions they use.

  4. #19
    Account Upgraded | Title Enabled! Syre is offline
    MemberRank
    Jan 2013 Join Date
    700Posts

    Re: v62 [Job Advance NPC]

    Add me on skype and I can help you make a command based autojob, so you don't have to deal with this crap. I'll teach you how to do it as well, or rather try, so you learn something.

    getJobById, the way it's used in this NPC, is rather odd. If done right it'll return (for example) 'WARRIOR'

    public String getJobById(int id) {
    return MapleJob.getJobName(id);
    }

    Also if the (odd situation arises) that getJobName is not static, you will need to fix that.

    getJobName may also be 'getById'


    Of course I haven't actually tested this so I've no way of knowing if it's true, but the way it looks in the NPC script this is what it needs. Might throw an error as getById will return MapleJob, and not a string. You can always add toString to it however.
    Last edited by Syre; 01-06-15 at 11:43 AM.

  5. #20
    :l Cygnus is offline
    MemberRank
    Mar 2015 Join Date
    f425Location
    237Posts

    Re: v62 [Job Advance NPC]

    Quote Originally Posted by Syre View Post
    getJobById, the way it's used in this NPC, is rather odd. If done right it'll return (for example) 'WARRIOR'
    getJobName may also be 'getById'
    You could just change getJobById to
    Code:
    cm.getJob().getJobName(cm.getJob().getId())
    Or in this case
    Code:
    cm.getJob().getJobName(possibleJobs[i])
    Last edited by Cygnus; 01-06-15 at 01:13 PM.



Page 2 of 2 FirstFirst 12

Advertisement