Can an NPC teach you skills?

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! Tetraspore is offline
    True MemberRank
    Apr 2016 Join Date
    243Posts

    Can an NPC teach you skills?

    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


  2. #2
    I am Groot Baha is offline
    True MemberRank
    Apr 2009 Join Date
    The VoidLocation
    725Posts

    Re: Can an NPC teach you skills?

    Quote Originally Posted by Tetraspore View Post
    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 Code:
     public void teachSkill(int idint skillevelbyte masterlevellong expiration) {
         
    getPlayer().changeSkillLevelv2(SkillFactory.getSkill(id), skillevelmasterlevel, -1);
        } 
    add to NPCconversationManager. Then make an NPC and use the function.

  3. #3
    Account Upgraded | Title Enabled! Tetraspore is offline
    True MemberRank
    Apr 2016 Join Date
    243Posts

    Re: Can an NPC teach you skills?

    So, that updates the sql, but it doesn't add the skill to any of the skill tabs.

  4. #4
    Hardcore Member jamaykids is offline
    MemberRank
    Aug 2010 Join Date
    MarsLocation
    109Posts

    Re: Can an NPC teach you skills?

    what version?

  5. #5
    Member Umbreon is online now
    MemberRank
    Apr 2012 Join Date
    87Posts

    Re: Can an NPC teach you skills?

    Quote Originally Posted by Tetraspore View Post
    So, that updates the sql, but it doesn't add the skill to any of the skill tabs.
    It won't unless you send a packet to the player telling them the changes.



Advertisement