Jump to content

Star Gladiator Soul Link Effect


Erba

Recommended Posts


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   1
  • Joined:  04/19/13
  • Last Seen:  

Thank you for this :)

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  06/14/12
  • Last Seen:  

pc.c compiling error :-(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

kindly post the compiling error

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

erba please update for svn 176++

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

it's working on latest svn

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   0
  • Joined:  11/13/11
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  117
  • Reputation:   6
  • Joined:  06/03/12
  • Last Seen:  

-> BUMP <- Error

Same with Glemor

not working with Revision 17704

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  12/11/17
  • Last Seen:  

for the error change the skill to skill_id

Link to comment
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
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.

×
×
  • Create New...