Jump to content
  • 0
leloush

[Custom Link Mods]

Question

can someone please check this? if there is something wrong?

just a simple checking and tell me whats going on
cuz this is modification in SL spirit ( for LK )

 

 


( okay )
this is what happen
[the custom mods is working properly]

 

 

Lord Knight
Index: src/map/skill.c
Find:
if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
return 0;
}

Replace with:
// If linked, knights are able to use parrying with one handed swords (type 2)
if( require.weapon && !pc_check_weapontype(sd,require.weapon) &&
( skill_id == LK_PARRYING && !sd->sc.data[sC_SOULLINK] && !pc_check_weapontype(sd,2) ))
{
clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
return 0;
}

Find:
if( require.weapon && !pc_check_weapontype(sd,require.weapon) ) {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
return 0;
}

Replace with:
if( require.weapon && !pc_check_weapontype(sd,require.weapon) &&
( skill_id == LK_PARRYING && !sd->sc.data[sC_SOULLINK] && !pc_check_weapontype(sd,2) ))
{
clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);
return 0;
}

Index: src/map/pc.c
Find:
for (i = 0; i < ARRAYLENGTH(scw_list); i++) {
// Skills requiring specific weapon types
if( scw_list == SC_DANCING && !battle_config.dancing_weaponswitch_fix )
continue;

Add Below:
// If linked, knights are able to use parrying with one handed swords (type 2)
if( scw_list == SC_PARRYING && sd->sc.data[sC_SOULLINK] && sd->sc.data[sC_SOULLINK]->val2 == SL_KNIGHT
&& (!pc_check_weapontype(sd,skill->get_weapontype(status->sc2skill(scw_list))) &&
!pc_check_weapontype(sd,2) )
)
{
status_change_end(&sd->bl, scw_list, INVALID_TIMER);
continue; // We don't want to fall under the next check
}

 

after applying it i found out that [ EVERY SKILL WHICH WILL REQUIRED A WEAPON HAS BEEN BYPASS ] 

 

EXAMPLE : 

CLOWN NOW CAN USE ARROW VULCAN WITHOUT VIOLIN
ALSO SINX CAN USE SB EVEN HE'S WEARING DAGGER..

 

 

SRY ALL CAPS..
thanks in advanced

 

 

@EDIT : hmm or  just placed this code in a wrong line? 

Edited by leloush

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

There was an error in this snippet, I don't even know how this passed lol

Here is the fix:

 

Open src/map/skill.c and find:

	// If linked, knights are able to use parrying with one handed swords (type 2)	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  ( skill_id == LK_PARRYING && !sd->sc.data[SC_SOULLINK] && !pc_check_weapontype(sd,2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Replace it with:
	// If linked, knights are able to use parrying with one handed swords (type 2)	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  !( skill_id == LK_PARRYING && sd->sc.data[SC_SOULLINK] && pc_check_weapontype(sd,1<<2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Find (again):
	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  ( skill_id == LK_PARRYING && !sd->sc.data[SC_SOULLINK] && !pc_check_weapontype(sd,2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Replace it with:
	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  !( skill_id == LK_PARRYING && sd->sc.data[SC_SOULLINK] && pc_check_weapontype(sd,1<<2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Now it should work properly c: I'll update my original post (http://herc.ws/board/topic/3829-soul-link-modification/?p=24936) and change this.

Thank you for reporting. Any errors or misbehaves just post here ok?

Share this post


Link to post
Share on other sites
  • 0

 

There was an error in this snippet, I don't even know how this passed lol

Here is the fix:

 

Open src/map/skill.c and find:

	// If linked, knights are able to use parrying with one handed swords (type 2)	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  ( skill_id == LK_PARRYING && !sd->sc.data[SC_SOULLINK] && !pc_check_weapontype(sd,2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Replace it with:
	// If linked, knights are able to use parrying with one handed swords (type 2)	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  !( skill_id == LK_PARRYING && sd->sc.data[SC_SOULLINK] && pc_check_weapontype(sd,1<<2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Find (again):
	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  ( skill_id == LK_PARRYING && !sd->sc.data[SC_SOULLINK] && !pc_check_weapontype(sd,2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Replace it with:
	if( require.weapon && !pc_check_weapontype(sd,require.weapon) && 	  !( skill_id == LK_PARRYING && sd->sc.data[SC_SOULLINK] && pc_check_weapontype(sd,1<<2) ))	{		clif->skill_fail(sd,skill_id,USESKILL_FAIL_THIS_WEAPON,0);		return 0;	}
Now it should work properly c: I'll update my original post (http://herc.ws/board/topic/3829-soul-link-modification/?p=24936) and change this.

Thank you for reporting. Any errors or misbehaves just post here ok?

thank you so much sir.. gonna try it now :kis:

Edited by leloush

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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