• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

WZ Can an NPC teach you skills?

Experienced Elementalist
Joined
Apr 29, 2016
Messages
269
Reaction score
4
Can an NPC be set up in such a way that they can teach you a skill? For example, if I wanted an npc to add "Shadow Partner" to your beginner skills, much like how the mounts get added as a skill
 
Joined
Apr 13, 2009
Messages
592
Reaction score
141
Can an NPC be set up in such a way that they can teach you a skill? For example, if I wanted an npc to add "Shadow Partner" to your beginner skills, much like how the mounts get added as a skill

try

PHP:
 public void teachSkill(int id, int skillevel, byte masterlevel, long expiration) {
     getPlayer().changeSkillLevelv2(SkillFactory.getSkill(id), skillevel, masterlevel, -1);
    }

add to NPCconversationManager. Then make an NPC and use the function.
 
Upvote 0
Experienced Elementalist
Joined
Apr 29, 2016
Messages
269
Reaction score
4
So, that updates the sql, but it doesn't add the skill to any of the skill tabs.
 
Upvote 0
Back
Top