Jump to content

Recommended Posts

hi dev, 

i make new part about 7th skill book in source but i have some problem
the book about new skill can read it  when i have any skill form  7th skill.

this part

				DWORD dwSkillVnum = 0;

				switch (item->GetVnum())
				{
					case 50516:
						dwSkillVnum = SKILL_7_A_ANTI_TANHWAN;
						break;

					case 50517:
						dwSkillVnum = SKILL_7_B_ANTI_AMSEOP;
						break;

					case 50518:
						dwSkillVnum = SKILL_7_C_ANTI_SWAERYUNG;
						break;

					case 50519:
						dwSkillVnum = SKILL_7_D_ANTI_YONGBI;
						break;
											
					case 50520:
						dwSkillVnum = SKILL_8_A_ANTI_GIGONGCHAM;
						break;
											
					case 50521:
						dwSkillVnum = SKILL_8_B_ANTI_YEONSA;
						break;
											
					case 50522:
						dwSkillVnum = SKILL_8_C_ANTI_MAHWAN;
						break;
											
					case 50523:
						dwSkillVnum = SKILL_8_D_ANTI_BYEURAK;
						break;

					default:
						return false;
				}

				if (0 == dwSkillVnum)
				{
					ITEM_MANAGER::instance().RemoveItem(item);

					return false;
				}

				if (GetSkillLevel(dwSkillVnum) == 0)
				{
					ChatPacket(CHAT_TYPE_INFO, LC_TEXT("cant use this book right now."));
					return false;
				}

 

Link to comment
https://metin2.dev/topic/8274-make-part-for-7th-skill-books/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You must create the book in item_proto with book type

50516    "증력술 수련서"    "ITEM_SKILLBOOK"    0    1    "NONE"    "NONE"    "NONE"    "NONE"    1000    1000    0    0    0    "LIMIT_NONE"    0    "LIMIT_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    "APPLY_NONE"    0    SKILL_ID    0    0    0    0    0    0    0    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.