First you need to open dictionary. Eng or what ever language your server supports.
Find this line
// 11201 - 11400 Bowcraft Fletching Crafting Skill
11220=Heavy Crossbow
Add in you custom item to look like this
11221=MycustomBow
Second step is to open bowcraft.dfn
find the last line in that file that should look like this.
[ITEM 208]
{
NAME=yumi
id=0x27f0
RESOURCE=WOOD 10
SKILL=8 900 1000
ADDITEM=0x27f0
MINRANK=1
MAXRANK=10
SOUND=0x55
}
{
NAME=yumi
id=0x27f0
RESOURCE=WOOD 10
SKILL=8 900 1000
ADDITEM=0x27f0
MINRANK=1
MAXRANK=10
SOUND=0x55
}
[ITEM 209]
{
NAME=MyCustomBow
id=0x27f0
RESOURCE=WOOD 10
SKILL=8 900 1000
ADDITEM=0x27f0
MINRANK=1
MAXRANK=10
SOUND=0x55
}
{
NAME=MyCustomBow
id=0x27f0
RESOURCE=WOOD 10
SKILL=8 900 1000
ADDITEM=0x27f0
MINRANK=1
MAXRANK=10
SOUND=0x55
}
and save and close bowcraft.dfn
Third Step Open fletching.js
Find this line first.
// Page 3 - Weapons
[ 11218, 11219, 11220 ]
[ 11218, 11219, 11220 ]
// Page 3 - Weapons
[ 11218, 11219, 11220, 11221 ]
[ 11218, 11219, 11220, 11221 ]
case 302: // Heavy Crossbow
makeID = 193; timerID = 3; break;
makeID = 193; timerID = 3; break;
case 303: // MyCustomBow
makeID = 209; timerID = 3; break;
makeID = 209; timerID = 3; break;
Case 303 is the button the craft gump calls
now go down to next line
case 2302: // Heavy Crossbow
itemDetailsID = 193; break;
itemDetailsID = 193; break;
case 2303: // MyCustomBow
itemDetailsID = 209; break;
itemDetailsID = 209; break;
Now Go back up to this line
if(( pButton >= 100 && pButton <= 302 ) || pButton == 5000 )
to this
pButton <= 303
Now save and close the fletching.js
Now fourth and finale step.
Open itemdetailgump.js
find this code
case 205: // Fifty Bolts
createEntry = CreateEntries[205];
HARVEST = [10029, 10028]; // Shaft, Feather
mainSkill = parseInt( pUser.skills.bowcraft );
break;
createEntry = CreateEntries[205];
HARVEST = [10029, 10028]; // Shaft, Feather
mainSkill = parseInt( pUser.skills.bowcraft );
break;
case 209: // MyCustomBow
createEntry = CreateEntries[209];
HARVEST = [10014]; // Boards or Logs
mainSkill = parseInt( pUser.skills.bowcraft );
break;
createEntry = CreateEntries[209];
HARVEST = [10014]; // Boards or Logs
mainSkill = parseInt( pUser.skills.bowcraft );
break;
createEntry = CreateEntries[209]; this calling the ITEM 209 in Bowcraft.dfn as well so this number needs to match it is pulling in all the details from the script.
Now Save and close.
Go in game and your new item is in the menu.
Same steps can be applied to add items to any crafting menu.