Jump to content
  • 0
ThyroDree

[Parrying Skill] Star Gladiator Soul Link

Question

I found this source at rathena anyone can convert it to hercules source?

Go to your trunk/src/map/pc.c and look for:
	for( i = 0; i < MAX_SKILL; i++ ) {
		if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED && sd->status.skill[i].flag != SKILL_FLAG_PERM_GRANTED ) //Don't touch these
			sd->status.skill[i].id = 0; //First clear skills.
		/* permanent skills that must be re-checked */
		if( sd->status.skill[i].flag == SKILL_FLAG_PERM_GRANTED ) {
			switch( i ) {
				case NV_TRICKDEAD:
					if( (sd->class_&MAPID_UPPERMASK) != MAPID_NOVICE ) {
							sd->status.skill[i].id = 0;
							sd->status.skill[i].lv = 0;
							sd->status.skill[i].flag = SKILL_FLAG_PERMANENT;
					}
					break;
			}
		}
	}
Add this Lines below:
	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; 
		}

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

  • 0

What you have there are instructions. Basically, you just need to follow them and it should slot straight into Hercules.

It should work, cause skill ID 85 = WZ_VERMILION and 356 = LK_PARRYING.

If I'm correct, it is telling you to edit the pc_calc_skilltree_clear function. I'll let you try to work it out from here.

Share this post


Link to post
Share on other sites
  • 0

Thanks!

pc.c

	//Star Glad Parrying Soul Link Buffs
	if( sd->sc.count && sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->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;
	}

add this  Books: true to weapontypes


{
	Id: 356
	Name: "LK_PARRYING"
	Description: "Parrying"
	MaxLevel: 10
	Hit: "BDT_SKILL"
	SkillType: {
		Self: true
	}
	AttackType: "Weapon"
	DamageType: {
		NoDamage: true
	}
	SkillData1: {
		Lv1: 15000
		Lv2: 20000
		Lv3: 25000
		Lv4: 30000
		Lv5: 35000
		Lv6: 40000
		Lv7: 45000
		Lv8: 50000
		Lv9: 55000
		Lv10: 60000
	}
	CoolDown: 0
	Requirements: {
		SPCost: 50
		WeaponTypes: {
			2HSwords: true
		}
	}
},

Works for me

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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