help me LK Soul link modif.

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
 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:

Code:
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)) ){ 
 
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:

Code:
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:
Code:
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'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:
Code:
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!

 
Back
Top