Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

WZ Can an NPC teach you skills?

Experienced Elementalist
Joined
Apr 29, 2016
Messages
269
Reaction score
3
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
3
So, that updates the sql, but it doesn't add the skill to any of the skill tabs.
 
Upvote 0
Back
Top