Jump to content
  • 0
Sign in to follow this  
Kaleidoscope

Adding Throw Tomahawk Skill to WS skill tree.

Question

Need help with Adding the Throw tomahawk skill to the Whitesmiths skill tree.

 

I want the skill to only require that the tomahawk item is in your inventory and takes properties from cards compounded to it.

 

If this is not clear enough and you need more clarification please just ask.

 

Noob dev here trying to learn the basics! :)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Client-Side:

 

Data\luafiles514\lua files\skillinfoz\skilltreeview.lub, find:

[JOBID.JT_BLACKSMITH_H] = {
    [21] = SKID.WS_CARTBOOST,
    [28] = SKID.WS_CARTTERMINATION,
    [22] = SKID.WS_MELTDOWN,
    [25] = SKID.WS_OVERTHRUSTMAX,
    [23] = SKID.WS_WEAPONREFINE
  },

Replace for:

[JOBID.JT_BLACKSMITH_H] = {
    [21] = SKID.WS_CARTBOOST,
    [28] = SKID.WS_CARTTERMINATION,
    [22] = SKID.WS_MELTDOWN,
    [25] = SKID.WS_OVERTHRUSTMAX,
    [23] = SKID.WS_WEAPONREFINE,
    [35] = SKID.ITM_TOMAHAWK
  },

Server-Side:

 

db\pre-re or db\re, skill_tree.conf, find:

 

Whitesmith: {
	inherit: ( "Blacksmith" );

	skills: {
		WS_MELTDOWN: {

Replace for:

 

Whitesmith: {
	inherit: ( "Blacksmith" );

	skills: {
		ITM_TOMAHAWK: 1
		WS_MELTDOWN: {

src\map\skill.c, find:

case ITM_TOMAHAWK:

Replace for:

//case ITM_TOMAHAWK:

Find:

                case LG_OVERBRAND_BRANDISH:
		case LG_OVERBRAND:
			skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag);
		break;

Replace for:

                case LG_OVERBRAND_BRANDISH:
		case LG_OVERBRAND:
			skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag);
		break;
		
		case ITM_TOMAHAWK:
			if (pc->search_inventory(sd,ITEMID_TOMAHAWK) == INDEX_NOT_FOUND)
				clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
			skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag);
		break;

 

Later recompile.

 

PD: It only work with item Tomahawk ID: 1368.

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.