Jump to content
  • 0

Learning other jobs skills


Question

Posted

I want creat a NPC for learning skill "Item Appraisal" and "Teleport". 

 

Now I success get new skill in other skill page.

 

 

I can find record in skill table(MySQL DB), so I am convinced that the character are learning new skill successfully.

 

But when character change map, the new skill disappear.

 

Can someone tell me how to fix it?

 

 

7 answers to this question

Recommended Posts

Posted

Try this one : 

prontera,150,150,0    script    Skills    116,{
    mes "What skill would you like?";
    next;
    switch(select("Item Appraisal:Teleport:None")) {
        case 1:
            skill 40,1,0;    // Permanently gives player level 1 Item Appraisal
            mes "Done!";
            break;
        case 2:
            skill 26,2,0;    // Permanently gives player level 2 Teleport
            mes "Done!";
            break;
        case 3: 
            mes "Bye!";
            break;
        default: break;
    }
    end;
}

EDIT : i tried my script and fall on the same fate as yours. 

Posted (edited)

@Both of you - The way to fix this, is to add the skill to your Class' Skill_tree.txt. and give it an unobtainable requirement.

e.g:

//BEFORE

//Novice
0,1,9,0,0,0,0,0,0,0,0,0,0 //NV_BASIC#Basic Skill#
0,142,1,0,0,0,0,0,0,0,0,0,0 //NV_FIRSTAID#First Aid#
0,143,1,0,0,0,0,0,0,0,0,0,0 //NV_TRICKDEAD#Act Dead#
0,410,1,0,0,0,0,0,0,0,0,0,0 //WE_CALLBABY#Call Baby#

//AFTER

//Novice
0,1,9,0,0,0,0,0,0,0,0,0,0 //NV_BASIC#Basic Skill#
0,142,1,0,0,0,0,0,0,0,0,0,0 //NV_FIRSTAID#First Aid#
0,143,1,0,0,0,0,0,0,0,0,0,0 //NV_TRICKDEAD#Act Dead#
0,410,1,0,0,0,0,0,0,0,0,0,0 //WE_CALLBABY#Call Baby#
1,4,10,1,10,0,0,0,0,0,0,0,0 //SM_RECOVERY#Increase HP Recovery# //Requires Basic Skill Level 10 (Impossible to recieve, so they can never learn it via using skill points.

After that, you can use the  skill command to give them it permanently. The issue your running into, is that, your trying to permanently give a player a skill, their class can't other wise learn.

 

Edit: Atleast this is how I did it in the past to fix it. Shouldn't have been changed. Keep in mind that each class can't have more than i think 84 skills.

Edited by Lionhardt
Posted (edited)

@Lionhardt - I try it and It can not work.

 

I have a stupid way.

Learn skill when loging every map.

 

e.g.

prontera,1,1,1    script    OnPCLoadMapEvent    -1,{     
    OnPCLoadMapEvent:
        skill 40,1,0;
        end;
}
 
//enable  loadevent on every map

 

 

I'm not sure whether this way would greatly increase the load on the server.

Edited by cwgxcqwr

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...