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
https://metin2.dev/topic/7582-two-littles-bugs/
Share on other sites

According with first problem, if you are talking about 50300 skillbook you can fix in this way

Open char.cpp

 

Find

void CHARACTER::GiveRandomSkillBook()

 

In this function you have to edit this

dwSkillVnum = number(1, 111);

 

changing 111 with last lycan's skill value

Edited by luzzo
  • Love 1
Link to comment
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-47543
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
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-47546
Share on other sites

No there isn't. In the same funtion there is a check for a valid skill value.

 

Or to be more clear you can even check that the type of skill is not 0 (like sun zii etc.)

 

for example

 

385e00ad81.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-47547
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
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-47556
Share on other sites

  • Premium

I'll tell you, but now (and I f***ing don't know why) my sources crashes...

 

Edit : I don't know if it's working but I have skillbooks for guild skills for example, thoses skill books just crash my game...

Edited by galet
Link to comment
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-47560
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
https://metin2.dev/topic/7582-two-littles-bugs/#findComment-48060
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.