Jump to content
  • 0

is it possible to make an AoE magic skill to target specific race only?


laonglaing

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  06/12/16
  • Last Seen:  

as what the title ask, im trying to modify some AoE skills that damages specific race only in the area. saw this method -> status_get_status_data(bl) but im unable to use it in this specific line of code since it directly targets to to BC_ENEMY already
                map_foreachinallarea(skill_area_sub,
                    src->m, x - i, y - i, x + i, y + i, BL_CHAR,
                    src, skill_id, skill_lv, tick, flag | BCT_ENEMY | 1,
                    skill_castend_damage_id);

im trying to modify skills in skill.cpp under below method which doesn't pass the information of bl.
int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, uint16 skill_lv, t_tick tick, int flag)

any idea or suggestion for this?

Edited by laonglaing
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Take Magnus Exorcism as an example

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