Hello guys
I made a custom structure in my skill
But I'm messing around somewhere .. Help me out.
I call sumono a MOB
struct mob_data *md;
md = mob->once_spawn_sub(src, src->m, x, y, clif->get_bl_name(src), mob_id, "", size, type); //example
mob->spawn (md); //sumona o mob
Then I use an SC in this mob
sc_start4(src,&md->bl,SC_RUN,100,skill_lv,0,0,0);
in status.c, within the function responsible for terminating this status (SC)
in status_change_end_
I'm putting a function (within the case of SC_RUN)
I'm trying to use this function
struct map_session_data *pl_sd = map->nick2sd(bl);
skill->castend_nodamage_id(&pl_sd->bl, &pl_sd->bl, NPC_SELFDESTRUCTION, 1, timer->gettick(), 0); //function to call the skill NPC_SELFDESTRUCTION on target
But... But ... Skill_castend is not working correctly
It should call the Selfdestruction skill on the target (the same target I'm using SC)
but he uses selfdestruction in PLAYER
his is the skill_castend structure:
The first or second parameter is responsible for the target
//skill castend in skill.c
int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag){}
Hello guys
I made a custom structure in my skill
But I'm messing around somewhere .. Help me out.
I call sumono a MOB
struct mob_data *md; md = mob->once_spawn_sub(src, src->m, x, y, clif->get_bl_name(src), mob_id, "", size, type); //example mob->spawn (md); //sumona o mob
Then I use an SC in this mob
sc_start4(src,&md->bl,SC_RUN,100,skill_lv,0,0,0);
in status.c, within the function responsible for terminating this status (SC)
in status_change_end_
I'm putting a function (within the case of SC_RUN)
I'm trying to use this function
struct map_session_data *pl_sd = map->nick2sd(bl); skill->castend_nodamage_id(&pl_sd->bl, &pl_sd->bl, NPC_SELFDESTRUCTION, 1, timer->gettick(), 0); //function to call the skill NPC_SELFDESTRUCTION on target
But... But ... Skill_castend is not working correctly
It should call the Selfdestruction skill on the target (the same target I'm using SC)
but he uses selfdestruction in PLAYER
his is the skill_castend structure:
The first or second parameter is responsible for the target
//skill castend in skill.c int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int64 tick, int flag){}
I'm pretty sure I'm wrong here:
struct map_session_data *pl_sd = map->nick2sd(bl);
Because when compiling it says:
warning C4133: 'function': incompatible types - from 'block_list *' to 'const char *'
map->nick2sd() accepts const char
but bl is block_list
But, I do not know how to do it the right way.
how can I put the correct path to my target (The mob that was summoned)
Help me
Share this post
Link to post
Share on other sites