Jump to content
  • 0

Custom Skill script...


Elijah23

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Hi!

I'm making a custom passive skill which increases some attributes like in the item script...

For example,

bonus bDef,30; bonus bMdef,-30; bonus bMatkRate,100; bonus bCastrate,-20; bonus bAllStats,3;

So i was able to put the skill but i can't add the bonuses..

here's an example of the code i placed in source code..

if( (skill=pc_checkskill(sd,ALL_DARKELF)) == 1 )
sd->add_def[i].rate += 30;

Is this right?.. Sorry, I'm new to this...

And i don't know where to add this... :D Advance thanks.. :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Take a look at this:

passive_skill.patch

Hi Fatal... :) Thanks to this.. :D

So it should be placed on right positions or it would not work?.. :D

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...