ImBacK 8 Posted August 21, 2015 Share Posted August 21, 2015 hi dev, i make new part about 7th skill book in source but i have some problemthe 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 More sharing options...
ImBacK 8 Posted August 21, 2015 Author Share Posted August 21, 2015 Up Link to comment Share on other sites More sharing options...
Systeman 9 Posted August 21, 2015 Share Posted August 21, 2015 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 Link to comment Share on other sites More sharing options...
ImBacK 8 Posted August 21, 2015 Author Share Posted August 21, 2015 I make it but when i have skill 112 the book for 113 i can read it !@ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now