Adding Throw Tomahawk Skill to WS skill tree.

Kaleidoscope

New member
Messages
15
Points
0
Age
36
Location
USA
Emulator
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!
default_smile.png


 
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.

 
Back
Top