Jump to content

Need for a quick C++ tutorial


Recommended Posts

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
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.