Jump to content
  • 0

[client support] skill effect


Kurofly

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Hello there.

 

I added some custom skills to my server but they don't have any effect assigned so all of them display the 'bash' effect on the ennemy.

 

Does anyone know how to tell the client which effect I want to be assigned to my skill?

 

Note: this may be a source question since some skills have delayed animations but I'm not sure about it, move this post to the right section if needed.

Edited by Kurofly
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

im actually trying to figure this out myself as well, I have tried playing with the \luafiles514\lua files\skilleffectinfo folder, but to no avail

 

Edit: i saw in a post (forget what post) something about clif-> SpecialEffect () but i havent given that a shot, id rather not have to source the skill effects if i can avoid it.

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Thank you for your answer.

 

Sorry I totally forgot to edit this topic since I solved it ><

Mary Magdalene helped me to solve it and it's indeed source-sided.

 

I'll edit this topic tomorrow showing the solution.

 

Note: There's probably a way to do it client side since there's no clif>specialeffect for most of the skills in skill.c but I'm fine with the source way. Maybe we should keep this post open since it's in the client section.

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:  

Thank you for your answer.

Sorry I totally forgot to edit this topic since I solved it ><

Mary Magdalene helped me to solve it and it's indeed source-sided.

I'll edit this topic tomorrow showing the solution.

Note: There's probably a way to do it client side since there's no clif>specialeffect for most of the skills in skill.c but I'm fine with the source way. Maybe we should keep this post open since it's in the client section.

Ya leave it open but also post the source side work around I'd say.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Here is what you need to do in order to give effects to your skills (source solution):

To add a custom skill follow this guide

 

Open your src/map/skill.c and look for your custom skill

For example:

case P_LANCE_FLAMME:
		skill_attack(BF_MAGIC,src,src,bl,skill_id,skill_lv,tick,flag);
		break;

Then just turn it to this:

case P_LANCE_FLAMME:
		clif_specialeffect(bl,173,AREA);
		skill_attack(BF_MAGIC,src,src,bl,skill_id,skill_lv,tick,flag);
		break;

clif_specialeffect(bl/src,<effect number>,AREA)

 

bl means the effect will be centered on the ennemy.

src means the effect will be centered on the caster.

 

You can find all the effects and their corresponding ids in doc/effect_list

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