Register for your free account! | Forgot your password?

You last visited: Today at 22:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Shop (HONOR)

Discussion on Shop (HONOR) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
S/W's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 159
Received Thanks: 39
Shop (HONOR)

I need some help

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", "");

Quote:
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
Price = 215 cps

Now I am add honor point shop

Quote:
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
Price = 800 Honor points

My question wat I need write

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", "");
Don't flame me I am new In Co sources,And Thanks for help.
S/W is offline  
Thanks
1 User
Old 07/14/2011, 04:01   #2
 
elite*gold: 0
Join Date: May 2011
Posts: 168
Received Thanks: 33
I as well was wondering sorta the same thing.

Code:
 public static void LoadItems()
        {
            MySqlDataAdapter DataAdapter = null;
            DataSet DSet = new DataSet();

            try
            {
                DataAdapter = new MySqlDataAdapter("SELECT * FROM `Items`", Connection);
                DataAdapter.Fill(DSet, "Itemz");

                if (DSet.Tables["Itemz"].Rows.Count > 0)
                {
                    int ItemsC = DSet.Tables["Itemz"].Rows.Count;

                    Items = new uint[ItemsC][];

                    for (int i = 0; i < ItemsC; i++)
                    {
                        DataRow DR = DSet.Tables["Itemz"].Rows[i];

                        Items[i] = new uint[16] { (uint)DR["ItemID"], (uint)DR["ClassReq"], (uint)DR["ProfReq"], (uint)DR["LvlReq"], (uint)DR["SexReq"], (uint)DR["StrReq"], (uint)DR["AgiReq"], (uint)DR["Worth"], (uint)DR["MinAtk"], (uint)DR["MaxAtk"], (uint)DR["Defense"], (uint)DR["MDef"], (uint)DR["MAttack"], (uint)DR["Dodge"], (uint)DR["AgiGive"], (uint)DR["CPsWorth"] };
                    }
                    General.WriteLine("Loaded " + ItemsC + " items.");
                }
            }
            catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
        }
If I added: , (uint)DR["HPoints"]

I don't see how it would actually read ''HPoints''.
zTek is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Honor
03/31/2011 - DarkOrbit - 2 Replies
Hello friends, I wonder how normal people can have seen 1.5 billion of Honor 7 people doing it and wondered if anyone can do well. If you can tell me please! Hehe



All times are GMT +1. The time now is 22:24.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.