So recently I have been trying to remake the method "teachSkill" (in v83) because it seems it's broken. What I have been trying to do is make an NPC that will allow you to learn a skill and be placed into your beginner tab.
in AbstractPlayerHandler
This is the original method and it didn't work what so ever. So I tried this
Also had no luck, I realized if its still giving me an error it has to do with NPCConversationManager
so I added the same methods into that java file had still had no luck and come up with this error.
Obviously I see NPCScriptManager but this should have nothing to do with that java file. Could anyone please help me! I would greatly appreciate it xD
EDIT: I am missing a method in MapleCharacter and I created one with no luck. Also my goal is to basically have players buy a skill from a NPC that can allow them to learn a skill into their beginners tab. Can anyone send me some methods to get this!
in AbstractPlayerHandler
Code:
public void teachSkill(int skillid, byte level, byte masterLevel, long expiration) {
getPlayer().changeSkillLevel(SkillFactory.getSkill(skillid), level, masterLevel, expiration);
}
Code:
public final void teachSkill(final int id, final int level, final byte masterlevel) {
getPlayer().changeSkillLevel(SkillFactory.getSkill(id), level, masterlevel);
}
public final void teachSkill(final int id, int level) {
final Skill skil = SkillFactory.getSkill(id);
if (getPlayer().getSkillLevel(skil) > level) {
level = getPlayer().getSkillLevel(skil);
}
getPlayer().changeSkillLevel(skil, level, (byte) skil.getMaxLevel());
}
so I added the same methods into that java file had still had no luck and come up with this error.
You must be registered to see links
Obviously I see NPCScriptManager but this should have nothing to do with that java file. Could anyone please help me! I would greatly appreciate it xD
EDIT: I am missing a method in MapleCharacter and I created one with no luck. Also my goal is to basically have players buy a skill from a NPC that can allow them to learn a skill into their beginners tab. Can anyone send me some methods to get this!
Last edited: