Jump to content
  • 0

AOE Heal modification


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Hi guys. I just wanted to know, how can I make the regular heal to be an aoe heal by 3x3?

For example if I use a skill to my party member or guild member the heal and the effect will be spread by 3x3 cell from the target member of the guild or party. and if someone uses the heal to a non member of the party or guild the effect of the heal will be the same as the normal heal...

I know this is something that needs to be modified in src/map/skill.cpp and I really dont know how to make it aoe.

I tried to use this code and its not working. 

map_foreachinrange(skill_area_sub, bl, skill_get_splash(skill_id, skill_lv) * 3, BL_CHAR, src, skill_id, skill_lv, tick, flag | BCT_PARTY | BCT_SAMEGUILD | 1, skill_castend_nodamage_id);

the compilation is successful but when I tried it the server is shutting down without giving me any error.

I hope someone can help me.

thank in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.02
  • Content Count:  176
  • Reputation:   60
  • Joined:  01/11/19
  • Last Seen:  

In skilldb.yml add SplashArea: 1 for the skill.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Is there a way to modify it directly at src map/skill.cpp. because this 3x3 cell will only trigger if there the player is wearing a special item and if the player is not wearing this item the heal effect will work as the original.

Edited by neXus
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

I think no one knows how to make it but I was able to figure out the right codes and its working exactly the way I wanted it to be. thanks. please close this topic

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