leloush
New member
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]
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?
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?
Last edited by a moderator: