Hi,
I tried put an array in skill.c (specifically in skill_castend_id) ,that makes certain skills trigger a specialeffect when target received damage.
I put the follow:
int skilleffects[5] = {7, 5, 8,370, 371}; //skill_id that trigger specialeffect
But I don't know how check this array, in my ignorance I tried this:
if (skill_id == skillseffects[5])clif->specialeffect(src, 722, AREA);
But it is severely wrong.
PS: I wrote it after this:
I tried put an array in skill.c (specifically in skill_castend_id) ,that makes certain skills trigger a specialeffect when target received damage.
I put the follow:
int skilleffects[5] = {7, 5, 8,370, 371}; //skill_id that trigger specialeffect
But I don't know how check this array, in my ignorance I tried this:
if (skill_id == skillseffects[5])clif->specialeffect(src, 722, AREA);
But it is severely wrong.
PS: I wrote it after this:
Code:
int skill_castend_damage_id(struct block_list* src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag) { struct map_session_data *sd = NULL; struct status_data *tstatus; struct status_change *sc; if (skill_id > 0 && !skill_lv) return 0; nullpo_retr(1, src); nullpo_retr(1, bl); if (src->m != bl->m) return 1; if (bl->prev == NULL) return 1; sd = BL_CAST(BL_PC, src);