Jump to content
  • 0
Sign in to follow this  
ThyroDree

help me LK Soul link modif.

Question

 is This Working on Hercules SVN i got this from rathena site

 

Open src/map/skill.c
Find:

 

int skill_check_condition_castend(struct map_session_data* sd, short skill, short lv){struct skill_condition require;struct status_data *status;int i;int index[MAX_SKILL_ITEM_REQUIRE]; 

 

After ADD:

 

struct status_change *sc = &sd->sc; 

 

Find and Replace the two places like that:

 

if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) { 

 

By this:

 

if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->status.weapon == W_1HSWORD)) ){ 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

It's not going to work, there're some errors in this snippet so I've made some changes and it's working now.. I have no idea why but SC_SPIRIT in Hercules' code is referred as SC_SOULLINK.

Just change in your mod this:

if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->status.weapon == W_1HSWORD)) ){
to:
if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill_id == LK_PARRYING && sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_KNIGHT && sd->status.weapon == W_1HSWORD)) ){
And it should work, don't forget to add that other mod c:

Share this post


Link to post
Share on other sites
  • 0

 

It's not going to work, there're some errors in this snippet so I've made some changes and it's working now.. I have no idea why but SC_SPIRIT in Hercules' code is referred as SC_SOULLINK.

Just change in your mod this:

if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_KNIGHT && sd->status.weapon == W_1HSWORD)) ){
to:
if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill_id == LK_PARRYING && sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_KNIGHT && sd->status.weapon == W_1HSWORD)) ){
And it should work, don't forget to add that other mod c:

IT WORKS!

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.