Jump to content
  • 0
ssd046

Please help me while making a new skill

Question

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.

 

error.thumb.PNG.cb00ff3629454cf13e47c23568034b5f.PNG

However, when I try to use it, the warning indicator appears in map-server.bat and it is not used.

 

 

error1.thumb.PNG.e48f8b54416102182431654a1cb9bdb8.PNG

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

1 answer to this question

Recommended Posts

  • 0

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[]

Share this post


Link to post
Share on other sites
  • 0

 

Thanks for the advice.

 

error3.thumb.PNG.6a948032815759126ec3239991f6f0f6.PNG

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.

Share this post


Link to post
Share on other sites
  • 0
Posted (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 by bWolfie

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.