ssd046 0 Posted July 21, 2020 Hello,!! https://github.com/HerculesWS/Hercules/wiki/Adding-new-skills Now I am creating a skill by following the Adding new skills guide at this address. All staps were followed, and the skill was created in the game. However, when I try to use it, the warning indicator appears in map-server.bat and it is not used. Also, when running run-server.bat, this error appears in map-server.bat. I think I need to adjust the max skill db, but how can I fix this error? Please help me ㅠㅠ Quote Share this post Link to post Share on other sites
0 meko 170 Posted July 21, 2020 the documentation has not been updated yet but you must define the constant CUSTOM_SKILL_RANGES at compile time, with the syntax being: {from, to}, {from, to}, ... In your case since you are only adding one skill you would define it as: {8443, 8443}, this means you would pass a -D compiler option like this: -DCUSTOM_SKILL_RANGES="{8443,8443}," ...which will insert it in skill_idx_ranges[] 1 Waken reacted to this Quote Share this post Link to post Share on other sites
0 ssd046 0 Posted July 22, 2020 Thanks for the advice. I have skill.h's skill_idx_ranges[] format a little different from your link. I put mg_EARTBOLT like the image. The error message disappeared, but I still tried to shoot the skill in the game, but the skill point is not used. Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted June 14, 2021 (edited) How do you define CUSTOM_SKILL_RANGES? Can't work it out. No documentation available still. Whenever I make changes to skill_idx_ranges[] it causes everything from { GD_APPROVAL, GD_DEVELOPMENT }, to break. Edit: It seems that the skill id must be listed in order. I was using skill id below 10000, but listed after. This means all custom skill must be of more than GD_DEVELOPMENT, otherwise CUSTOM_SKILL_RANGES will cause issues. Edited June 14, 2021 by bWolfie Quote Share this post Link to post Share on other sites
Hello,!!
https://github.com/HerculesWS/Hercules/wiki/Adding-new-skills
Now I am creating a skill by following the Adding new skills guide at this address.
All staps were followed, and the skill was created in the game.
However, when I try to use it, the warning indicator appears in map-server.bat and it is not used.
Also, when running run-server.bat, this error appears in map-server.bat.
I think I need to adjust the max skill db, but how can I fix this error?
Please help me ㅠㅠ
Share this post
Link to post
Share on other sites