Jump to content

Recommended Posts

  • Premium

Hello, I have two little annoying bugs.

Indeed, they are probably simple to fix, but I'm not sure if I'm right, so I don't want to make an alternative solution.

The first bug is :

Everybody can drop a skillbook but nobody can drop a wolfman's skillbook, so the wolfman's skills are locked at M1.

The second one is :

I can't open some boxes (e.g Cor Draconis, Apprentice Chest, Chest of Darkness and so on...) I think the problem come from special_item_group but I don't know why...

 

Thanks, and have a nice day ! :)

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

Is there's a risk to drop a skillbook with for example an unexisting number ? e.g if the number is 155, there'snt any skill referenced by the n°155, I'll drop a virgin skillbook or a bugged one ?

Thanks anyway, because my old function was :

            if (number(1, 3) == 2)
            {
                dwSkillVnum = number(170, 175);
            }
            else
            {
                dwSkillVnum = number(1, 111);
            }
Link to comment
Share on other sites

my fail sorry.

There is another part to modify.

The fist one you edited is right and is for /do_book or for 50300 from box.

The missing part is for 50300 drop on ground.

 

Open item_manager.cpp

 

search for

if (vnum == 50300 || vnum == ITEM_SKILLFORGET_VNUM)

 

and edit like this

10f8badf9a.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • Premium

if you have guilds skillbooks you haven't added the controll that i wrote about it.

Hello, first of all, thanks ! Indeed, I have wolfman's skillbooks, but I still have guild's skillbooks...

The check in item_manager.cpp :

 

            do
            {
                dwSkillVnum = number(1, 175);
                CSkillProto * pkSk = CSkillManager::instance().Get(dwSkillVnum);
                if (!pkSk)
                    continue;
                if (dwSkillVnum > 111 && dwSkillVnum < 170)
                    continue;
                break;
            } while (1);

Thank you and have a nice day !

I still have the second problem though...

Edited by galet
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



×
×
  • 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.