Jump to content
  • 0
Sign in to follow this  
Blinzer

Where are item scripts read and where are they defined?

Question

I want to create some new types of bonuses that items can have in their script but seem to be unable to find where the existing bonuses are defined in the source. This may simply be because Windows 10 has down syndrome and the search function is failing miserably to properly search files for their content, but I've searched through a vast portion of the map server manually and found nothing relating to any of the different kinds of bonuses you can give through items. Where would I find this?

Edited by Blinzer

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Most of them are declared in pc.c (pc_bonus stuff, for the list of constants go to enum status_point_types in map.h) and then obviously executed in the correspondent parts of skill/status/battle/clif/etc. Of course don't forget to flag them in const.txt

Edited by Anisotropic Defixation

Share this post


Link to post
Share on other sites
  • 0

Hello.

First, read the doc. You find everything in it. Then if you wanna search text inside files, use notepad++, ctrl+f and tab search in folder.

Windows is not the problem ;)

 

I suggest you to look at items script and get inspiration from it, since you don't say what bonus you want to give.

Share this post


Link to post
Share on other sites
  • 0

Most of them are declared in pc.c (pc_bonus stuff, for the list of constants go to enum status_point_types in map.h) and then obviously executed in the correspondent parts of skill/status/battle/clif/etc. Of course don't forget to flag them in const.txt

 

Thank you. This covers everything I needed to know.

 

 

For clarification to the other two people, I wasn't asking for a list of existing ones or help in making items using existing ones. Thanks anyways, though.

Edited by Blinzer

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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