It's right there Cannot find function getJobById.
It's right there Cannot find function getJobById.
Last edited by OzGazoz; 31-05-15 at 05:49 PM.
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.
Last edited by Cygnus; 01-06-15 at 01:13 PM.