Haku Posted March 13, 2020 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 60 Reputation: 2 Joined: 12/04/13 Last Seen: February 8 Share Posted March 13, 2020 (edited) I put this commit on my server: [Converted the skill database to YAML]https://github.com/rathena/rathena/commit/dca3797d44da3f000039a9f7ab386cc605787557 and now as unrecognized skills as an element. The problem is: skill.c #define skill_get_lv(id, lv, arrvar) do {\ if (!skill_check(id))\ return 0;\ int lv_idx = min(lv, MAX_SKILL_LEVEL) - 1;\ if (lv > MAX_SKILL_LEVEL && arrvar[lv_idx] > 1 && lv_idx > 1) {\ int a__ = arrvar[lv_idx - 2];\ int b__ = arrvar[lv_idx - 1];\ int c__ = arrvar[lv_idx];\ return (c__ + ((lv - MAX_SKILL_LEVEL + 1) * (b__ - a__) / 2) + ((lv - MAX_SKILL_LEVEL) * (c__ - b__) / 2));\ }\ return arrvar[lv_idx];\ } while(0) int skill_get_ele( uint16 skill_id , uint16 skill_lv ) { skill_get_lv(skill_id, skill_lv, skill_db.find(skill_id)->element); } this function return 0 for all skills. I changed that code in one skill -> skill_db.yml: Element: Water for: Element: - Level: 1 Element: Water - Level: 2 Element: Water - Level: 3 Element: Water - Level: 4 Element: Water - Level: 5 Element: Water - Level: 6 Element: Water - Level: 7 Element: Water - Level: 8 Element: Water - Level: 9 Element: Water - Level: 10 Element: Water And it works....@Aleos can you help? Edit:Solved! I copyd actual func in rathena. uint64 SkillDatabase::parseBodyNode(const YAML::Node &node) Edited March 13, 2020 by Haku Quote Link to comment Share on other sites More sharing options...
Question
Haku
[Converted the skill database to YAML]
https://github.com/rathena/rathena/commit/dca3797d44da3f000039a9f7ab386cc605787557
and now as unrecognized skills as an element. The problem is: skill.c
this function return 0 for all skills.
I changed that code in one skill -> skill_db.yml:
for:
And it works....
@Aleos can you help?
Edit:
Solved!
I copyd actual func in rathena.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.