[Guide] Understanding item(xxx).txt Simple guide

ivowe3

Wiki
Joined
Apr 1, 2009
Messages
1,220
Reaction score
1,281
Вижте следният код. Това са кодовете от MuServer\Data\Lang\???\item(???).txt зел съм първите 2 итема от всяка група.
Code:
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Swords[/COLOR]																																			       		//
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM     //
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]0[/COLOR]
	[COLOR="Lime"]0[/COLOR]	0	0	[COLOR="Cyan"]1	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Kris"[/COLOR]				6	6		11		50		20	0		0	0	40	40	0	0	0	1	1	1	1	1	1	1
	[COLOR="Lime"]1[/COLOR]	0	0	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Short Sword"[/COLOR]				3	3		7		20		22	0		0	0	60	0	0	0	0	1	1	1	1	1	1	1

//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Axes[/COLOR]																																			       			//
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM     //
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]1[/COLOR]
	[COLOR="Lime"]0[/COLOR]	0	0	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Small Axe"	[/COLOR]			1	1		6		20		18	0		0	0	50	0	0	0	0	1	1	1	1	1	1	1
	[COLOR="Lime"]1[/COLOR]	0	0	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Hand Axe"[/COLOR]				4	4		9		30		20	0		0	0	70	0	0	0	0	1	1	1	1	1	1	1

//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Maces & Scepters	[/COLOR]																																		       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]2[/COLOR]
	[COLOR="Lime"]0	[/COLOR]0	0	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Mace"[/COLOR]					7	7		13		15		21	0		0	0	100	0	0	0	0	1	0	1	0	1	1	0
	[COLOR="Lime"]1[/COLOR]	0	19	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Morning Star"[/COLOR]				13	13		22		15		25	0		0	0	100	0	0	0	0	1	0	1	0	1	1	0

//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Spears[/COLOR]																																			       	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]3[/COLOR]
	[COLOR="Lime"]0[/COLOR]	0	22	[COLOR="Cyan"]2	4[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Light Spear"[/COLOR]				42	50		63		25		56	0		0	0	60	70	0	0	0	1	0	1	1	1	0	0
	[COLOR="Lime"]1[/COLOR]	0	0	[COLOR="Cyan"]2	4[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Spear"[/COLOR]					23	30		41		30		42	0		0	0	70	50	0	0	0	1	0	1	1	1	0	0
	
/-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Bows & Crossbows	[/COLOR]																																	      	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y [/COLOR]    Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]4[/COLOR]
	[COLOR="Lime"]0[/COLOR]	1	24	[COLOR="Cyan"]2	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Short Bow"	[/COLOR]			2	3		5		30		20	0		0	0	20	80	0	0	0	2	0	0	1	0	0	0
	[COLOR="Lime"]1[/COLOR]	1	24	[COLOR="Cyan"]2	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bow"[/COLOR]					8	9		13		30		24	0		0	0	30	90	0	0	0	2	0	0	1	0	0	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Staffs[/COLOR]																																			       	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level  MinDmg	      MaxDmg	      AttSpeed	        Dur   MagDur	     MagPower LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]5[/COLOR]
	[COLOR="Lime"]0[/COLOR]	0	0	[COLOR="Cyan"]1	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Skull Staff"[/COLOR]				6	3		4		20		0	20		6	0	40	0	0	0	0	3	1	0	0	1	0	1
	[COLOR="Lime"]1[/COLOR]	0	0	[COLOR="Cyan"]2	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Angelic Staff"	[/COLOR]			18	10		12		25		0	38		20	0	50	0	0	0	0	3	1	0	0	1	0	0
	
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Shields[/COLOR]																														      	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def   SuccessBlock               Dur	LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr DW/SM   DK/BK   ELF/ME   MG	DL	SUM    //
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]6[/COLOR]
	[COLOR="Lime"]0[/COLOR]	1	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Small Shield"[/COLOR]				3	1	 3			22	0	70	0	0	0	0	4	1	1	1	1	1	0
	[COLOR="Lime"]1[/COLOR]	1	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Horn Shield"[/COLOR]				9	3	 9			28	0	100	0	0	0	0	4	0	1	0	1	1	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Helms[/COLOR]																														     	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def     MagDef           Dur   LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]7[/COLOR]
	[COLOR="Lime"]0[/COLOR]	2	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bronze Helm"[/COLOR]				16	9	0		34	0	80	20	0	0	0	4	0	1	0	0	1	0
	[COLOR="Lime"]1[/COLOR]	2	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Dragon Helm"[/COLOR]				57	24	0		68	0	120	30	0	0	0	4	0	1	0	0	0	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Armors[/COLOR]																													      	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def     MagDef           Dur   LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]8[/COLOR]
	[COLOR="Lime"]0[/COLOR]	3	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bronze Armor"[/COLOR]				18	14	0		34	0	80	20	0	0	0	4	0	1	0	1	1	0
	[COLOR="Lime"]1[/COLOR]	3	0	[COLOR="Cyan"]2	3[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Dragon Armor"[/COLOR]				59	37	0		68	0	120	30	0	0	0	4	0	1	0	1	0	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Pants[/COLOR]																														      	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def     MagDef           Dur   LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]9[/COLOR]
	[COLOR="Lime"]0[/COLOR]	4	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bronze Pants"[/COLOR]				15	10	0		34	0	80	20	0	0	0	4	0	1	0	1	1	0
	[COLOR="Lime"]1[/COLOR]	4	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Dragon Pants"[/COLOR]				55	26	0		68	0	120	30	0	0	0	4	0	1	0	1	0	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Gloves[/COLOR]																													   	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def     AttSpeed         Dur   LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]10[/COLOR]
	[COLOR="Lime"]0[/COLOR]	5	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bronze Gloves"[/COLOR]				13	4	  4		34	0	80	20	0	0	0	4	0	1	0	1	1	0
	[COLOR="Lime"]1[/COLOR]	5	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Dragon Gloves"[/COLOR]				52	14	  6		68	0	120	30	0	0	0	4	0	1	0	1	0	0
	
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Boots[/COLOR]																														      	       //
//   [COLOR="Lime"] Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   Def     WalkSpeed        Dur   LvlReq  StrReq  AgiReq  EneReq  VitReq  CmdReq SetAttr  DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]11[/COLOR]
	[COLOR="Lime"]0[/COLOR]	6	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Bronze Boots"[/COLOR]				12	4	  10		34	0	80	20	0	0	0	4	0	1	0	1	1	0
	[COLOR="Lime"]1[/COLOR]	6	0	[COLOR="Cyan"]2	2[/COLOR]	1	1	1	[COLOR="DarkGreen"]"Dragon Boots"[/COLOR]				54	15	  2		68	0	120	30	0	0	0	4	0	1	0	1	0	0
	
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Accessories[/COLOR]																											      	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level    Def     Dur    LvlReq  EneReq  StrReq  DexReq  ComReq BuyMoney        DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]12[/COLOR]
	[COLOR="Lime"]0[/COLOR]	7	0	[COLOR="Cyan"]3	2[/COLOR]	1	0	0	[COLOR="DarkGreen"]"Wings of Elf"[/COLOR]				100	10	200	180	0	0	0	0	0		0	0	1	0	0	0
	[COLOR="Lime"]1[/COLOR]	7	0	[COLOR="Cyan"]5	3[/COLOR]	1	0	0	[COLOR="DarkGreen"]"Wings of Heaven"[/COLOR]			100	10	200	180	0	0	0	0	0		1	0	0	1	0	0
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Miscellaneous I[/COLOR]																										       	       //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop     [COLOR="DarkGreen"] Name[/COLOR]				       Level    Dur    Res1    Res2    Res3    Res4    Res5    Res6    Res7   SetAttr DW/SM   DK/BK   ELF/ME    MG	DL	SUM    //
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]13[/COLOR]
	[COLOR="Lime"]0[/COLOR]	8	0	[COLOR="Cyan"]1	1[/COLOR]	1	0	1	[COLOR="DarkGreen"]"Guardian Angel"[/COLOR]			23	255	0	0	0	0	0	0	0	0	1	1	1	1	1	1
	[COLOR="Lime"]1[/COLOR]	8	0	[COLOR="Cyan"]1	1[/COLOR]	1	0	1	[COLOR="DarkGreen"]"Imp"[/COLOR]					28	255	0	0	0	0	0	0	0	0	1	1	1	1	1	1
	
//------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Miscellaneous II	[/COLOR]													//
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y [/COLOR]    Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Value   Level    //
//------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]14[/COLOR]
	[COLOR="Lime"]0[/COLOR]	-1	0	[COLOR="Cyan"]1	1[/COLOR]	0	0	1	[COLOR="DarkGreen"]"Apple"[/COLOR]					5	1
	[COLOR="Lime"]1[/COLOR]	-1	0	[COLOR="Cyan"]1	1[/COLOR]	0	0	1	[COLOR="DarkGreen"]"Small Healing Potion"[/COLOR]			10	10
	
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//[COLOR="Red"]Scrolls	[/COLOR]																					                //
//    [COLOR="Lime"]Index[/COLOR]    Slot    Skill	[COLOR="Cyan"]X	Y[/COLOR]     Serial  Option   Drop      [COLOR="DarkGreen"]Name[/COLOR]				       Level   LvlReq  EneReq  BuyMoney  	DW/SM   DK/BK   ELF/ME    MG	DL	SUM     //
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
[COLOR="Red"]15[/COLOR]
	[COLOR="Lime"]0[/COLOR]	-1	0	[COLOR="Cyan"]1	2[/COLOR]	1	0	1	[COLOR="DarkGreen"]"Scroll of Poison"[/COLOR]			30	0	100	17000		1	0	0	1	0	0
	[COLOR="Lime"]1[/COLOR]	-1	0	[COLOR="Cyan"]1	2[/COLOR]	1	0	1	[COLOR="DarkGreen"]"Scroll of Meteorite"[/COLOR]			21	0	100	11000		1	0	0	1	0	1


Всички Итеми си имат ItemType те са отбелязани с червен цвят на горе посоченият код.
Всяко ItemType си има Index отбелязана със светло зелено.
ItemType + Index-a = на името на предмета отбелязан с тъмно зелен цвят.

Пример вие искате да направите в магазинът ви да се продава Kriss и Bronze set кодът ще бъде следният:
Code:
//[COLOR="Red"]ItemType[/COLOR] [COLOR="Lime"]Index[/COLOR]	Level	Durability	Luck	Skill	Options
[COLOR="Red"]0[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Kriss
[COLOR="Red"]7[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Bronze Helm
[COLOR="Red"]8[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Bronze Armor
[COLOR="Red"]9[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Bronze Pants
[COLOR="Red"]10[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Bronze Gloves
[COLOR="Red"]11[/COLOR]		[COLOR="Lime"]0[/COLOR]		0	255		0	0	0	//Bronze Boots
Ако искате от бох да падат Angelic Staff и Dragon set кодът ще е следният:
Code:
// 	[COLOR="Red"]type[/COLOR]	[COLOR="Lime"]index[/COLOR]	level	skill	option
	[COLOR="Red"]5[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
	[COLOR="Red"]7[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
	[COLOR="Red"]8[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
	[COLOR="Red"]9[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
	[COLOR="Red"]10[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
	[COLOR="Red"]11[/COLOR]	[COLOR="Lime"]1[/COLOR]	0	0	0
Клик тук за по-подробна информация.

BTW видях, че има друг Guide, но не беше много разбираем.
Все пак е по добре да разбираш какво адваш в магазина и от каде е дошъл този код.
И често се срещат на файловете на магазините да си имат :
Code:
//[COLOR="Red"]ItemType[/COLOR] [COLOR="Lime"]Index[/COLOR]	Level	Durability	Luck	Skill	Options
за по лесно разбиране какво трябва да се пише вътре.

X Y отбелязани със светло син цвят са Кординатите на итема колко квадратчета заема. Ако Х е 3 Y е 2 заема 2 квадратчета по хоризонтал и 3 по вертикал.
btw X & Y се използват предимно в WebShop-a, но там и много друг работи може да се добавят ако искате да ви обясня някой друг ден пишете в тази тема.

Ако съм направил грешка пишете ще я едитна.
 
Ам иво и аз щях да прая такъв но си ме изпреварил.Добра работа !
 
Допълнение към поста на Иво:

Ако искате итемите в шопа да ви излизат така:

020505170000.jpg


Направете първо каските(helms) в първия ред,след това във втория арморите и така до като стигнете до обувките или мечовете.

Ето един пример(давам ви моя шоп за бк)
//Index Item Lvl Dur Skill Luck Opt Exc Name
//helms
7 8 9 255 0 1 0 0 //brass helm
7 21 9 255 0 1 0 0 //great dragon helm
7 29 9 255 0 1 0 0 //dark knight helm
7 46 9 255 0 1 0 0 //brave helm
//armors
8 8 9 255 0 1 0 0 //brass armor
8 21 9 255 0 1 0 0 //great dragon armor
8 29 9 255 0 1 0 0 //dark knight armor
8 46 9 255 0 1 0 0 //brave armor
//pants
9 8 9 255 0 1 0 0 //brass pants
9 21 9 255 0 1 0 0 //great dragon pants
9 29 9 255 0 1 0 0 //dark knight pants
9 46 9 255 0 1 0 0 //brave pants
//gloves
10 8 9 255 0 1 0 0 //brass gloves
10 21 9 255 0 1 0 0 //great dragon gloves
10 29 9 255 0 1 0 0 //dark knight gloves
10 46 9 255 0 1 0 0 //brave gloves
//boots
11 8 9 255 0 1 0 0 //brass boots
11 21 9 255 0 1 0 0 //great dragon boots
11 29 9 255 0 1 0 0 //dark knight boots
11 46 9 255 0 1 0 0 //brave boots
//attack shits
1 0 9 255 0 1 0 0 //small axe
0 3 9 255 0 1 0 0 //katana
0 10 9 255 0 1 0 0 //light saber
1 6 9 255 0 1 0 0 //nikea axe
0 17 9 255 0 1 0 0 //dark braker
0 20 9 255 0 1 0 0 //knight blade
0 22 9 255 0 1 0 0 //bone blade
0 24 9 255 0 1 0 0 //daybreak
0 0 9 255 0 1 0 0 //kris
end

Така изглежда в код шопа от картинката :)
Надявам се да съм бил полезен.
 
  • Like
Reactions: misho_rb and WineR
Code:
INSERT INTO [WebShop] ([COLOR="Lime"]id[/Color],[COLOR="DarkGreen"]name[/COLOR],credits,[COLOR="Cyan"]X,Y[/Color],[color="red"]type[/color],ex_type,[COLOR="DARKRED"]str,agi[/COLOR],luck,skill,hasLevel,default_durability,nrg,cmd,hasOption,optionType,category,stickLevel,maxitop,maxitlv,maxitxl,cansellitem,class)
VALUES
([COLOR="RED"]2[/COLOR],'[COLOR="DarkGreen"]Dragon Lance[/COLOR]',15,[COLOR="Cyan"]2,4[/COLOR],3,0,[COLOR="DARKRED"]70,50[/COLOR],1,1,1,1,0,0,1,0,3,0,0,0,0,1,0);



Това е кодът за добавяне на итеми през Query Analyzer.
Сега ще разясня как стоят нещата:

Кодът е направен много просто за да го разберете нетрябва да сте много умни. Това е код от Webshop.sql от инсталационият файл.
Когато видите кода на пръв поглет си викате какви са тези простотий и каде да напиша името на предмета.
Ето как се добавят итемите отваряте MuServer/Data/Lang/???/item(???).txt

Там ще видите одобно на моя пръв пост в темата и е обяснен.
На id пишете Index.
На type пишете IndexType.
на X,Y Записвате X Y.
Общо зето ви трябва да знаете това.Всичко това се сменя след VALUES и всичко е подредено както е подредено в началото. от ляво на дясно четете и пишете.
Останалото го попълвате по ваше желание.
 
Можите ли дами дадете шопове за 97д
ще сам ви много благодарен
 
а да попитам как може да редактираме левелите който се изискват да сложиш итема ? Виждам ,че има ReqLvl , но ако го нямаме като колона в Item(***).txt да си го добавяме ли или ?
 
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//Swords //
// Index Slot Skill X Y Serial Option Drop Name Level MinDmg MaxDmg AttSpeed Dur MagDur MagPower LvlReq StrReq AgiReq EneReq VitReq CmdReq SetAttr DW/SM DK/BK ELF/ME MG DL SUM //
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
0
0 0 0 1 2 1 1 1 "Kris" 6 6 11 50 20 0 0 0 40 40 0 0 0 1 1 1 1 1 1 1
1 0 0 1 3 1 1 1 "Short Sword" 3 3 7 20 22 0 0 0 60 0 0 0 0 1 1 1 1 1 1 1

//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//

добре тука се вижда кой Weapon с какъв Skill е .. ами имам проблем на 97д + 99и тъй като в item.txt няма този ред за скилл как мога да си сменя скила на оръжията или по точно Mace Of King няма скил , как да му добавя.Ползвам на Darksteam 97d+99i 25beta