Hello guys. I have tried make a custom skill that give another skill. I am editing some skills.
For now, I want to make the ability RK_ENCHANTBLADEgive TF_THROWSTONE
skill.c
case RK_ENCHANTBLADE:
clif->skill_nodamage(src,bl,skill_id,skill_lv,// formula not confirmed
sc_start2(src,bl,type,100,skill_lv,(100+20*skill_lv)*status->get_lv(src)/150+sstatus->int_,skill->get_time(skill_id,skill_lv)));
pc->skill(sd,152,1,0);//Here the TF skillbreak;
i am using how base the script command: *skill <skill id>,<level>{,<flag>};
From the souce, that in the case i guesspc_skill.
script.c
BUILDIN(skill){int id;int level;int flag = SKILL_GRANT_TEMPORARY;struct map_session_data *sd = script->rid2sd(st);if(sd == NULL)returntrue;// no player attached, report source
id =( script_isstringtype(st,2)? skill->name2id(script_getstr(st,2)): script_getnum(st,2));
level = script_getnum(st,3);if( script_hasdata(st,4))
flag = script_getnum(st,4);
pc->skill(sd, id, level, flag);//<--- The command that i usedreturntrue;}
Even so, I did not gain the skill by using RK_ENCHANTBLADE
Hello guys. I have tried make a custom skill that give another skill. I am editing some skills.
For now, I want to make the ability RK_ENCHANTBLADE give TF_THROWSTONE
skill.c
i am using how base the script command: *skill <skill id>,<level>{,<flag>};
From the souce, that in the case i guess pc_skill.
script.c
Even so, I did not gain the skill by using RK_ENCHANTBLADE
Edited by luizragnaShare this post
Link to post
Share on other sites