Jump to content

Recommended Posts

Good evening!
My little problem would be that I want to do the following:
The first problem
50300 The Book of Competence (I want this book to jump directly M "like I have M9 read 1 book and it gives me M10")
and,
50404 Sword aura book (this type of book I want to read normally "like I got M9 and to make M10 to read 9 books)
Like W * m2!
And for the second one ....
To automatically update me to MD vouchers
(I tried through char_item.cpp, it still gives me error when compiling .... I'm sure I'm wrong somewhere)
From source

Thank you in advance!
Excuse me bad English ...

Link to comment
https://metin2.dev/topic/15982-problem-with-voucher-md-c-read-books-c/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

	case YOUR_ITEM_VNUM:
	{
		if (IsPolymorphed())
		{
			return false;
		}

		int dwVnum = 0;

		if (item->GetVnum() == 50300)
		{
			dwVnum = item->GetSocket(0);
		}
		else
		{
			dwVnum = item->GetValue(0);
		}

		if (0 == dwVnum)
		{
			item->SetCount(item->GetCount() - 1);
			return false;
		}

		SetSkillLevel(dwVnum, GetSkillLevel(dwVnum)+1);
	}

It should work

don't work.....

	case 50300:
	{
		if (IsPolymorphed())
		{
			return false;
		}

		int dwVnum = 0;

		if (item->GetVnum() == 50300)
		{
			dwVnum = item->GetSocket(0);
		}
		else
		{
			dwVnum = item->GetValue(0);
		}

		if (0 == dwVnum)
		{
			item->SetCount(item->GetCount() - 1);
			return false;
		}

		SetSkillLevel(dwVnum, GetSkillLevel(dwVnum)+1);
	}

don't work!!!

  • 7 months later...

It'll use 1 book upgrade Skill Master, M1 (1book) --> M2 (1book) ---> M3 (1book) ---> M4..

Search on char_skill.cpp:

Spoiler

int need_bookcount = GetSkillLevel(dwSkillVnum) - 20;

change it to:

Spoiler

int need_bookcount = 0;

 

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.