Jump to content

Recommended Posts

Posted

I am having trouble with Star Gladiator's Soul Link effect, but after trying, asking and searching rAthena and Google i came up with the answer of sir MarkZD and sir Kichi, Thank you for your help!

 

Enabling Lord of Vermillion level 10 and LK Parrying Level 10 using Book

 

 

I dont know how to make diff patches.

tested on r16797

 

Open your src/map/pc.c

 

Find:

for( i = 0; i < MAX_SKILL; i++ )
{ 
if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills
sd->status.skill[i].id = 0; //First clear skills.
}

Add this Below it:

+if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR)
+	{
+		sd->status.skill[85].id = 85;
+		sd->status.skill[85].lv = 10;
+		sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; 
+		sd->status.skill[356].id = 356;
+		sd->status.skill[356].lv = 10;
+		sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; 
+	}

Final Output:

for( i = 0; i < MAX_SKILL; i++ )
{ 
if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills
sd->status.skill[i].id = 0; //First clear skills.
	}

if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR)
	{
		sd->status.skill[85].id = 85;
		sd->status.skill[85].lv = 10;
		sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; 
		sd->status.skill[356].id = 356;
		sd->status.skill[356].lv = 10;
		sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; 
	}

= This will make Star Gladiators be able to use skill LOV and Parrying lvl 10

 

now about enabling Star Gladiators to Use Parryling lvl 10 with Books

 

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];

Add this below:

struct status_change *sc = &sd->sc;

Final Output:

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];
	struct status_change *sc = &sd->sc;

[still at src/map/skill.c] Now Find:

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

Replace it 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_STAR && sd->status.weapon == W_BOOK)) ){
	clif_skill_fail(sd,skill,USESKILL_FAIL_THIS_WEAPON,0);
	return 0;
	}

Finally you can now RECOMPILE :)

 

i am using rev16797 and this is working on.

 

  • 1 month later...
  • 1 month later...
  • 3 months later...
  • 3 weeks later...
Posted

Up for this.. uhmm.. when i install this source mod.. why i cant use Parrying using 2hand weapon  on LordKnight? when i remove the weapon the parrying is working

 

how to fix this?

  • 2 months later...
Posted

bump for this topic. it's already outdated

error


skill.c: In function 'skill_check_condition_mercenary':
skill.c:3499: warning: unused variable 'sc'
skill.c: In function 'skill_check_condition_castbegin':
skill.c:14707: error: 'skill' undeclared (first use in this function)
skill.c:14707: error: (Each undeclared identifier is reported only once
skill.c:14707: error: for each function it appears in.)
skill.c:14707: error: expected statement before ')' token

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...