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

Join the conversation

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

Guest
Answer this question...

×   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.