Jump to content
  • 0

How to Add Custom Skills to rAthena?


tutorrockall

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  08/27/24
  • Last Seen:  

Hi everyone,

Can someone guide me on the exact steps to add a custom skill to rAthena? I’m a bit confused about the process and would appreciate a clear explanation or reference to a tutorial.

Thanks!
level devil

Edited by tutorrockall
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  63
  • Topics Per Day:  0.02
  • Content Count:  1016
  • Reputation:   191
  • Joined:  11/27/14
  • Last Seen:  

5 hours ago, tutorrockall said:

Hi everyone,

Can someone guide me on the exact steps to add a custom skill to rAthena? I’m a bit confused about the process and would appreciate a clear explanation or reference to a tutorial.

Thanks!

rAthena Wiki is your friend

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

On 8/27/2024 at 3:58 AM, tutorrockall said:

Hi everyone,

Can someone guide me on the exact steps to add a custom skill to rAthena? I’m a bit confused about the process and would appreciate a clear explanation or reference to a tutorial.

Thanks!
level devil

You need to find the write file to edit to add your code snippet to give the desired effect, but here the various files i had to modify to make the skill, implement it, and see it in the right skill tab.

 

The effects that i wanted to apply are based on a skill detection, if it has been learned then the character can wear equipment and weapons based on his level, just not the specialized weapons such as gun/bow/whip,etc, which I had to put in pc.cpp.

 

    //SUPERNOVICE LINK GIVES PASSIVE ATTRIBUTES // Put before SC_STRIPWEAPON
    if (pc_checkskill(sd, SN_MASTERY) > 0) {
        //Spirit of Super Novice equip bonuses. [Skotlex]
        if (item && (item->equip & (EQP_HELM | EQP_ARMOR | EQP_SHIELD | EQP_GARMENT | EQP_SHOES | EQP_ACC | EQP_ARMS))) {
            return ITEM_EQUIP_ACK_OK;
        }
        if (item->equip & EQP_ARMS && item->type == IT_WEAPON)
            switch (item->subtype) { //In weapons, the look determines type of weapon.
            case W_DAGGER: //All level 4 - Daggers
            case W_1HSWORD: //All level 4 - 1H Swords
            case W_1HAXE: //All level 4 - 1H Axes
            case W_MACE: //All level 4 - 1H Maces
            case W_STAFF: //All level 4 - 1H Staves
            case W_2HSTAFF: //All level 4 - 2H Staves
                return ITEM_EQUIP_ACK_OK;
            }
    }

 

image.png.98fc2caab30c317baf78979603450814.png

Edited by Faust
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...