Jump to content
  • 0

Give Enchant Blade to others


OscarScorp

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Hello everyone,

 

I would like to change Enchant Blade effect to how it worked at first, so you can give it to other players with the benefits of:

1 - Not spending any type of ammo with this buff.

2 - Grant bonus attack damage.

 

I have managed to modify it in skill_db so it's target-able, so point #1 works, but not #2.

 

Anyone here can help me out with this?

Thanks in advance!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

@Stolao Alright, I think I know how to do that, will try later.

 

@nanakiwurtz, indeed, I do that in-game and my client won't show the last character of each line, such as the screenshot attached, it won't show the letter N of "ON".

e695e3f039e3842d1435079a040e1374.png

@Stolao, I've encountered https://rathena.org/wiki/Clif_Specialeffect, which I can add to the src of the skill, but I can't find where it specifies the target where the effect will be shown. I want the target to have the effect, instead of the caster.

 

Does anyone happen to know where I can find the text I'm looking for?

 

Find:

	case RK_ENCHANTBLADE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start2(src,bl,type,100,skill_lv,(100+20*skill_lv)*(status_get_lv(src)/150)+sstatus->int_,skill_get_time(skill_id,skill_lv)));
		break;

Change to:

	case RK_ENCHANTBLADE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start2(src,bl,type,100,skill_lv,(100+20*skill_lv)*(status_get_lv(src)/150)+sstatus->int_,skill_get_time(skill_id,skill_lv)));
			clif_specialeffect(bl,756,AREA);
		break;

bl = to target

756 = effect ID (you can change this if you want, find the existing effects at your rathena folder/doc/effect_list.txt)

AREA = where it will be seen

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

Hello everyone,

 

I would like to change Enchant Blade effect to how it worked at first, so you can give it to other players with the benefits of:

1 - Not spending any type of ammo with this buff.

2 - Grant bonus attack damage.

 

I have managed to modify it in skill_db so it's target-able, so point #1 works, but not #2.

 

Anyone here can help me out with this?

Thanks in advance!

 

You mean a custom effect where it gives additional bonus other than its original effect?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Well, I guess if that does the work, sure.

What I am looking for is the effect it originally had, when the 3rd class were new. The bonus atk when the Rune Knight applies it to himself, I am looking for the same effect on other players.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

Well, I guess if that does the work, sure.

What I am looking for is the effect it originally had, when the 3rd class were new. The bonus atk when the Rune Knight applies it to himself, I am looking for the same effect on other players.

 

Well so far i tested it and made it to ' target-friendly ' type skill.

 

And yeah it does grant me damage.

 

Could you please tell me what was its original effect?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Oh you receive bonus damage?

In my server, there's no damage difference.

 

The original effect is to grant bonus matk damage to the weapon (basic attacks) which should not miss and makes proyectiles such as arrows and bullets to not be spent when shooting.

 

As you can see, in my server happens the following:

- As RK user, I can cast Enchant Blade since I changed it to target-friendly in skill_db.

- As Novice user, I get the Enchant Blade buff but damage is not added. I also miss.

 

There's also the thing where the effect always shows up on top of the RK caster but not on the target (in this case, the Novice).

 

a417836ae0d24a3dcd147f0dbf0503aa.gif

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

Let's talk that more about here:

 

https://discord.gg/0XP9qqhUV9FqRCA5

 

The other devs are also here so we could help you.

 

EDIT: Also what revision are you using?

Edited by Mary Magdalene
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Oh thanks for inviting me!

 

My rAthena revision is: 1772x
the last X is unknown since my Ro for some reason won't show the last character for every line :S 

e695e3f039e3842d1435079a040e1374.png

 

I haven't updated my rAthena since June (2015) or so, I'm not too experienced and the last time I did that it screwed up some of my scripts and custom skills in my server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Enchant Blade now deals damage according to the allied MATK.

This works for me, although the effect still shows on top of the caster instead of the target.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

The client determins skill effects, unless you want to mod your source think there is a thread onbhow to add effects to skills in source support \ request section.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

My rAthena revision is: 1772x

the last X is unknown since my Ro for some reason won't show the last character for every line :S 

You can use @version in game

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

@Stolao Alright, I think I know how to do that, will try later.

 

@nanakiwurtz, indeed, I do that in-game and my client won't show the last character of each line, such as the screenshot attached, it won't show the letter N of "ON".
e695e3f039e3842d1435079a040e1374.png


@Stolao, I've encountered https://rathena.org/wiki/Clif_Specialeffect, which I can add to the src of the skill, but I can't find where it specifies the target where the effect will be shown. I want the target to have the effect, instead of the caster.

 

Does anyone happen to know where I can find the text I'm looking for?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Will try that, thanks Mary,

I will report the changes here once I make a server maintenance. Hopefully by Monday.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Thanks Mary Magdalene that worked perfectly :)

Solved.

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

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