Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

skillbook source


bumxd

Question

5 answers to this question

Recommended Posts

  • 0
  • Premium

File name: char_skill.php

Function:

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

Find this:

int need_bookcount = GetSkillLevel(dwSkillVnum) - 20;

and change it to:

int need_bookcount = 0;

Have fun.

  • Love 1
Link to comment
  • 0
  • Premium

File name: char_skill.cpp

Function:

void CHARACTER::SkillLevelUp(DWORD dwVnum, BYTE bMethod)

Search this:

		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;

And replace it with this:

		switch (GetSkillMasterType(pkSk->dwVnum))
		{
			case SKILL_NORMAL:
				if (GetSkillLevel(pkSk->dwVnum) >= 17)
				{
					SetSkillLevel(pkSk->dwVnum, 20);
					sys_log(0, "FORCE MASTER: %u", pkSk->dwVnum);
				}
				break;
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 1

      [HELP] Costume bonusing with item not working

    2. 10

      Fix Taskbar Highlight Python

    3. 13

      Reduce server memory usage

    4. 87

      How To Enchant & Transform Costume

    5. 2

      Old m2 function

  • Recently Browsing

    • No registered users viewing this page.

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.