Jump to content

Recommended Posts

  • Active+ Member

Hello devs, sorry for making you seeing another topic of mine at your home page :P
What I need this time is a quick tutorial in the game source.

I have 18 skills by vnums:
221, 222, 223, 224, 225, 226, 227, 228, 229, 236, 237, 238, 239, 240, 241, 242, 243, 244.

Now those skills can be upgraded normally with skill points until reaching M1. What I need is to make them upgradable with skill points AND their book before M1 (not both just 1 skill point or 1 book from 1 -> 2 then from 2 -> 3 and so on). After M1 no skill points just books like default.

Thank you in advance and sorry again for the so many questions of mine :)

Link to comment
https://metin2.dev/topic/12922-need-for-a-quick-c-tutorial/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

  • Active+ Member

Hey so I did something :)

I added this

Spoiler

int pTableSkill78[] = {221,222,223,224,225,226,227,228,229,236,237,238,239,240,241,242,243,244};    
    
            for (int i = 0; i < _countof(pTableSkill78); i++)
            {
                if (GetSkillMasterType(pTableSkill78) > SKILL_MASTER)
                {
                    return true;
                }
            }

at

Spoiler

    if (pkSk->dwType != 0)
    {
        if (GetSkillMasterType(dwSkillVnum) != SKILL_MASTER)
        {

in function

Spoiler

bool CHARACTER::LearnSkillByBook(DWORD dwSkillVnum, BYTE bProb)

of the char_skill.cpp. I can now click the manuals before M1 AND use skill points but the manual just disapears without affecting the skill, like an item_use. So if you have an idea please post it here

Thanks in advance :)

Link to comment
https://metin2.dev/topic/12922-need-for-a-quick-c-tutorial/#findComment-74005
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.