Clearly you've messed up somewhere so let's start right from the start. Follow me step by step and don't skip anything.
First, use a stable version without the issue or just use the clean files form Ketchups.
Simply a version without any kinds of issues or changes that could interfere in any way.
Clear the Database too, by simply starting the Database script again.
Second, the files you need to edit are so open them in notepad++:
Code:
- propItem.txt (since you use v15, "Spec_Item.txt" otherwise for v16++)
- propItem.txt.txt
- mdlDyna.inc
- defineItem.h
We start with "propItem.txt.txt", scroll at the bottom of it and add two extra entries, the last should be "IDS_PROPITEM_TXT_012175". The first of the two has the items name, second the description.
We added this:
Code:
IDS_PROPITEM_TXT_012176 Super Awesome Long Sword
IDS_PROPITEM_TXT_012177 Super Awesome Description
While in there search for the entry of the "Long Sword" (CTRL + F).
It's the 20th entry "IDS_PROPITEM_TXT_000020 Long Sword"
Now we head over to "propItem.txt", and search for this part: "IDS_PROPITEM_TXT_000020".
This is the line we are after:
Code:
6 II_WEA_SWO_LONG IDS_PROPITEM_TXT_000020 ....
Copy the whole thing and paste it at the bottom of the file, right below this "14 II_SYS_SYS_SCR_BXBONE01 IDS_PROPITEM_TXT_012174 ..."
Our new line won't work yet, so we change a few things.
Code:
II_WEA_SWO_LONG to II_WEA_SWO_SUPER_LONG
Code:
IDS_PROPITEM_TXT_000020 to IDS_PROPITEM_TXT_012176
Code:
IDS_PROPITEM_TXT_000021 to IDS_PROPITEM_TXT_012177
You can find the second thing far at the right.
It will look like this afterwards:
Code:
6 II_WEA_SWO_SUPER_LONG IDS_PROPITEM_TXT_012176 1 1 IK1_WEAPON IK2_WEAPON_DIRECT IK3_SWD JOB_VAGRANT TRUE = = 190 7200000 100 180 HD_ONE = PARTS_RWEAPON = 0 = = 4 4 1 1 = = = 12 14 _NONE 0 0 0 0 0 = WT_MELEE_SWD AS_HORIZONTAL AS_DIAGONAL AS_VERTICAL AS_THRUST = = = = = 0.085 = AR_SHORT = = = = = = = = = = = = = = = = = = = = = = = = = = = = = XI_HIT_SWORD01 = = = = = = = = = WEAPON_GENERAL = = = = = = 0 0 0 0 0 0 = = = = = = = = = = = = 1 = SND_PC_DMGSWD SND_PC_DMGSWDC """itm_WeaSwoNormal.dds""" 0 """""" IDS_PROPITEM_TXT_012177
Now "mdlDyna.inc", search for "II_WEA_SWO_LONG" and copy the whole line and paste it right below it, change "II_WEA_SWO_LONG" to "II_WEA_SWO_SUPER_LONG" and we're done here too.
Code:
"WeaSwoWooden" II_WEA_SWO_WOODEN MODELTYPE_MESH "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
"WeaSwoNormal" II_WEA_SWO_LONG MODELTYPE_MESH "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
"WeaSwoNormal" II_WEA_SWO_SUPER_LONG MODELTYPE_MESH "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
"WeaSwoHandsa" II_WEA_SWO_HANDCLAW MODELTYPE_MESH "" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
Head over to "defineItem.h" and search for "II_WEA_SWO_LONG", copy the entry and paste it at the BOTTOM/END of the file - ABOVE "#endif".
Code:
#define II_WEA_SWO_LONG 23
#endif
Crucial part is the number 23, it's the unique Id of the item (such as the use of /ci 23, to create the long sword).
Search for the second to last entry of "propItem.txt", which should be "II_SYS_SYS_SCR_BXBONE01", search for it and look at the number behind it.
Code:
#define II_SYS_SYS_SCR_BXBONE01 20307
It goes on until the number "20331", then it starts with "30005".
Our number will be "20332", so change our 23 to it.
Code:
#define II_WEA_SWO_SUPER_LONG 20332
#endif
To make sure that our number is unique, search for it. If it's taken, errors will occur, until it has a unique number assigned to it (some other things to consider but to keep it simple lets ignore them)
With this we have successfully added a new item to our files, make sure to Merge otherwise it won't work.
Start the server, log in as usual as admin and type this:
Code:
/ci 20332
/ci "Super Awesome Long Sword"
If you've done everything as explained, you will have 2x the Weapon in your inventory, "Super Awesome Long Sword".
Those are the simple steps to add a new item, just look for similar item types if you have trouble and go from there (Weapons to weapons, helmets to helmets...).
Appearance and such, read up on them in the Guide you've posted and you should get there too.
Take your time and take it step by step, item by item. If you do multiple things at once, mistakes are bound to happen. Also, always, always make a backup before you edit stuff, this will prevent such issue in the first place.