Jump to content
Sign in to follow this  
luizragna

RK_ENCHANTBLADE give TF_THROWSTONE

Recommended Posts

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

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 skill

break;

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

BUILDIN(skill) {
	int id;
	int level;
	int flag = SKILL_GRANT_TEMPORARY;
	struct map_session_data *sd = script->rid2sd(st);
	if (sd == NULL)
		return true;// 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 used

	return true;
}

 

Even so, I did not gain the skill by using RK_ENCHANTBLADE

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.