Firs take a lock here
Quote:
public void Parse(string Line)
{
string[] data = Line.Split(new string[] { "@@", " " }, StringSplitOptions.RemoveEmptyEntries);
ID = Convert.ToUInt32(data[0]);
Name = data[1].Trim();
Class = Convert.ToByte(data[2]);
Proficiency = Convert.ToByte(data[3]);
Level = Convert.ToByte(data[4]);
Gender = Convert.ToByte(data[5]);
Strength = Convert.ToUInt16(data[6]);
Agility = Convert.ToUInt16(data[7]);
Type = Convert.ToUInt32(data[10]) == 0 ? ItemType.Dropable : ItemType.Others;
GoldWorth = Convert.ToUInt32(data[12]);
MaxAttack = Convert.ToUInt16(data[14]);
MinAttack = Convert.ToUInt16(data[15]);
PhysicalDefence = Convert.ToUInt16(data[16]);
Frequency = Convert.ToByte(data[17]);
Dodge = Convert.ToByte(data[18]);
ItemHP = Convert.ToUInt16(data[19]);
ItemMP = Convert.ToUInt16(data[20]);
Durability = Convert.ToUInt16(data[22]);
MagicAttack = Convert.ToUInt16(data[30]);
MagicDefence = Convert.ToUInt16(data[31]);
AttackRange = Convert.ToUInt16(data[32]);
ConquerPointsWorth = Convert.ToUInt32(data[37]);
StackSize = Convert.ToUInt16(data[55]);
Description = data[53].Replace("`s", "");
Price = 215 cpsQuote:
1088000 DragonBall 0 0 0 0 0 0 0 0 0 0 10000 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 215 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Now I am add honor point shop
Price = 800 Honor pointsQuote:
720842 SwordSoul 0 0 0 0 0 0 0 0 0 0 0 6015700 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 800 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
My question wat I need write
Don't flame me I am new In Co sources,And Thanks for help.Quote:
public void Parse(string Line)
{
string[] data = Line.Split(new string[] { "@@", " " }, StringSplitOptions.RemoveEmptyEntries);
ID = Convert.ToUInt32(data[0]);
Name = data[1].Trim();
Class = Convert.ToByte(data[2]);
Proficiency = Convert.ToByte(data[3]);
Level = Convert.ToByte(data[4]);
Gender = Convert.ToByte(data[5]);
Strength = Convert.ToUInt16(data[6]);
Agility = Convert.ToUInt16(data[7]);
Type = Convert.ToUInt32(data[10]) == 0 ? ItemType.Dropable : ItemType.Others;
GoldWorth = Convert.ToUInt32(data[12]);
MaxAttack = Convert.ToUInt16(data[14]);
MinAttack = Convert.ToUInt16(data[15]);
PhysicalDefence = Convert.ToUInt16(data[16]);
Frequency = Convert.ToByte(data[17]);
Dodge = Convert.ToByte(data[18]);
ItemHP = Convert.ToUInt16(data[19]);
ItemMP = Convert.ToUInt16(data[20]);
Durability = Convert.ToUInt16(data[22]);
MagicAttack = Convert.ToUInt16(data[30]);
MagicDefence = Convert.ToUInt16(data[31]);
AttackRange = Convert.ToUInt16(data[32]);
ConquerPointsWorth = Convert.ToUInt32(data[37]);
HonorPointsWorth = ??????????????);
StackSize = Convert.ToUInt16(data[55]);
Description = data[53].Replace("`s", "");






