Jump to content

Make Part for 7th skill books


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
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.