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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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