Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Understanding Item Codes

Joined
Apr 28, 2005
Messages
6,953
Reaction score
2,419
Understanding Item Codes

Have you always wondered the item codes in the shop.txt mean? Well you're at the right place if you want to find out!

Lets break down the code.

Code:
[COLOR=Red]8[/COLOR] [COLOR=SandyBrown]2[/COLOR] [COLOR=Green]7[/COLOR] [COLOR=Indigo]20[/COLOR] [COLOR=Cyan]0[/COLOR] [COLOR=Blue]1[/COLOR] [COLOR=Magenta]4[/COLOR] //Pad Armor+7+16+Luck
8 - This number tells us which item category the item we want to add is in. Here is a list of all the item categories.

Code:
0 = Swords
1 = Axes
2 = Maces
3 = Spears
4 = Bows
5 = Staffs
6 = Shields
7 = Helmets
[COLOR=Red]8[/COLOR] = Armor
9 = Pants
10 = Gloves
11 = Boots
12 = Wings and Orbs
13 = Guardians
14 = Potions, Jewls, Quest Items
15 = Magic Scrolls
For example, if we wanted to add Pad Helmet instead of Pad Armor, we would put a 7 here instead of an 8.

--

2 - This number is the number if the item in the category. In the item.txt, you would see this;

Code:
1    2    3    1    1    1    "Dragon Armor"        59    37    0        68        120    30    0    1    0    1
[COLOR=SandyBrown]2[/COLOR]    2    2    1    1    1    "Pad Armor"        10    7    0        28        30    0    1    0    0    1
3    2    2    1    1    1    "Legendary Armor"    56    22    0        42        40    0    1    0    0    1
The number you want is the first number on the line. So for instance, if we wanted to add Legendary Armor instead of Pad Armor, we would put a 3 here instead of a 2.

--

7 - This is the item option level. Here is how this line goes;
Code:
Simple math here; just plugin X for what you want.

Pad Armor+X+16+Luck
X = 1 - We get Pad Armor+1+16+Luck
X = 2 - We get Pad Armor+2+16+Luck
X = 3 - We get Pad Armor+3+16+Luck
X = 4 - We get Pad Armor+4+16+Luck
X = 5 - We get Pad Armor+5+16+Luck
X = 6 - We get Pad Armor+6+16+Luck
X = 7 - We get Pad Armor+7+16+Luck
X = 8 - We get Pad Armor+8+16+Luck
X = 9 - We get Pad Armor+9+16+Luck
X = 10 - We get Pad Armor+10+16+Luck
X = 11 - We get Pad Armor+11+16+Luck
X = 12 - We get Pad Armor+12+16+Luck
X = 13 - We get Pad Armor+13+16+Luck
--

20 - This number stands for the durability of the item. The value can be from 0 to 255.

--

0 - This number states whether or not the item will have Skill or not. This is completely pointless on armor, but 0 = No and 1 = Yes.

--

1 - This states whether or not the item will have Luck or not. As above, 0 = No Luck and 1 = Luck.

Note
If you're adding the item to an event item bag, this rule is replaced by the excellent option. So it would be 0 = Normal Item and 1 = Excellent item.

--

4 - This states how big the option on the item will be. Let me explain;
Code:
The easiest way to put this is like this; think about when you're adding a Jewl of Life 
to an item in-game. You add one JoL to the item, then you get a +4% option. If you
 add another one, you'll get a +8% option. Follow me? Heres a chart.

1 = 4%
2 = 8%
3 = 12%
4 = 16%
5 = 20%
6 = 24%
7 = 28%

So if you wanted to add a +28% option, you would put a 7 here instead of a 4


____________

Thanks for reading this guide and I hope you will now have a better understanding of the item codes.

Credits
Ron - Making the guide from scratch.
 
Last edited:
Initiate Mage
Joined
Feb 5, 2007
Messages
5
Reaction score
0
Hi! ^^ and I want to ask you something. Ok, the code shop for fenrirs is :
13 37 0 255 0 0 0 //Fenrir of Doom [Red]
13 37 1 255 0 0 0 //Fenrir of Doom + Damage [Black]
13 37 2 255 0 0 0 //Fenrir of Doom + Defence [Blue]
And, what is the code for itembag? For example, making BOK+1 drop fenrirs?
 
Joined
Apr 28, 2005
Messages
6,953
Reaction score
2,419
Hi! ^^ and I want to ask you something. Ok, the code shop for fenrirs is :
And, what is the code for itembag? For example, making BOK+1 drop fenrirs?

Put these item codes in the event item bag you want the fenrirs in;

Code:
13 37 0 255 0 1 0 //Fenrir of Doom [Red]
13 37 1 255 0 1 0 //Fenrir of Doom + Damage [Black]
13 37 2 255 0 1 0 //Fenrir of Doom + Defence [Blue]
 
Initiate Mage
Joined
Apr 20, 2006
Messages
41
Reaction score
0
Thanks for this guide Ron and Congratulations, u are now a Moderator.. I hope u could give us item.txt english version just like what u posted in the upper part..
 
Junior Spellweaver
Joined
Jun 27, 2006
Messages
108
Reaction score
0
forgot to mention that if you put items to shop +7+28 etc you will have buy/sell bug..:) it's like bless bug just that's with ordinary items
 

l0l

Initiate Mage
Joined
Oct 14, 2007
Messages
5
Reaction score
0
Re: [Guide] Understanding Item Codes

nice post
 
Last edited:
Junior Spellweaver
Joined
Jul 5, 2007
Messages
181
Reaction score
9
Re: [Guide] Understanding Item Codes

Nice one thank you.
 
Back
Top