Jump to content

Recommended Posts

Seach in char_skill.cpp for:

if (number(1, 21 - MIN(20, GetSkillLevel(pkSk->dwVnum))) == 1)
   SetSkillLevel(pkSk->dwVnum, 20);

Change it to this:

//if (number(1, 21 - MIN(20, GetSkillLevel(pkSk->dwVnum))) == 1)
   SetSkillLevel(pkSk->dwVnum, 20);
  • Metin2 Dev 3
  • Love 1
  • Love 11
Link to comment
https://metin2.dev/topic/5586-skill-jumps-from-17-to-m1/
Share on other sites

  • 6 months later...
  • 2 years later...
  • 3 years later...
  • 1 year later...

from marty:
To have something cleaner, look in source game char_skill.cpp

At the beginning you hit after the last #include

#define ENABLE_FORCE2MASTERSKILL

then you search: 

			case SKILL_NORMAL:

you replace:

		switch (GetSkillMasterType(pkSk->dwVnum))
		{
		case SKILL_NORMAL:
			if (GetSkillLevel(pkSk->dwVnum) >= 17)
			{
				if (GetQuestFlag("reset_scroll.force_to_master_skill") > 0)
				{
					SetSkillLevel(pkSk->dwVnum, 20);
					SetQuestFlag("reset_scroll.force_to_master_skill", 0);
				}
				else
				{
					if (number(1, 21 - MIN(20, GetSkillLevel(pkSk->dwVnum))) == 1)
						SetSkillLevel(pkSk->dwVnum, 20);
				}
			}
			break;

For this:

		switch (GetSkillMasterType(pkSk->dwVnum))
		{
			case SKILL_NORMAL:

				if (GetSkillLevel(pkSk->dwVnum) >= 17)
				{
#ifdef ENABLE_FORCE2MASTERSKILL
					SetSkillLevel(pkSk->dwVnum, 20);
#else
					if (GetQuestFlag("reset_scroll.force_to_master_skill") > 0)
					{
						SetSkillLevel(pkSk->dwVnum, 20);
						SetQuestFlag("reset_scroll.force_to_master_skill", 0);
					}
					else
					{
						if (number(1, 21 - MIN(20, GetSkillLevel(pkSk->dwVnum))) == 1)
							SetSkillLevel(pkSk->dwVnum, 20);
					}
#endif
				}
				break;

you compile and that's it, all your skills increase m1 with 17 points

If you want the define, put it in your commondefines or service.h to have more control over the changes

Anotaci-n-2024-06-28-185820.png

 

 

Link to comment
https://metin2.dev/topic/5586-skill-jumps-from-17-to-m1/#findComment-164154
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.