Register for your free account! | Forgot your password?

You last visited: Today at 02:52

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

Advertisement



Program!!

Discussion on Program!! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 11/06/2012, 23:39   #16
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Have done it already its easy just auto replace the @@ to ',' and add ; at the end of the line and put Insert command at the first of the line... hell is easy .
marlyandedsel is offline  
Old 11/08/2012, 13:50   #17
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
uh! here is how am doing it :-

Code:
private void MagicParser() {
            string[] lines = File.ReadAllLines(openFileDialog1.FileName);
            progressBar1.Maximum = lines.Length;

            foreach (string line in lines) {
                string[] str = line.Split(new string[] { "@@", " ", }, StringSplitOptions.RemoveEmptyEntries);
                db.MagicTypes.InsertOnSubmit(new MagicType() {
                    id = Convert.ToInt32(str[0]),
                    type = Convert.ToInt32(str[1]),
                    sort = Convert.ToInt32(str[2]),
                    name = str[3].Trim(),
                    crime = Convert.ToByte(str[4]),
                    ground = Convert.ToByte(str[5]),
                    multi = Convert.ToByte(str[6]),
                    target = Convert.ToInt32(str[7]),
                    level = Convert.ToInt32(str[8]),
                    use_mp = Convert.ToInt32(str[9]),
                    power = Convert.ToInt32(str[10]),
                    intone_speed = Convert.ToInt32(str[11]),
                    percent = Convert.ToInt32(str[12]),
                    step_secs = Convert.ToInt32(str[13]),
                    range = Convert.ToInt32(str[14]),
                    distance = Convert.ToInt32(str[15]),
                    status = Convert.ToInt32(str[16]),
                    need_prof = Convert.ToInt32(str[17]),
                    need_exp = Convert.ToInt32(str[18]),
                    //19 unkown
                    need_level = Convert.ToInt32(str[20]),
                    use_xp = Convert.ToByte(str[21]),
                    weapon_subtype = Convert.ToInt32(str[22]),
                    active_times = Convert.ToInt32(str[23]),
                    auto_active = Convert.ToInt32(str[24]),
                    floor_attr = Convert.ToInt32(str[25]),
                    auto_learn = Convert.ToByte(str[26]),
                    learn_level = Convert.ToInt32(str[27]),
                    drop_weapon = Convert.ToByte(str[28]),
                    use_ep = Convert.ToInt32(str[29]),
                    weapon_hit = Convert.ToByte(str[30]),
                    use_item = Convert.ToInt32(str[31]),
                    next_magic = Convert.ToInt32(str[32]),
                    delay_ms = Convert.ToInt32(str[33]),
                    use_item_num = Convert.ToInt32(str[34]),
                });
                progressBar1.Value += 1;
            }
            db.SubmitChanges();
            progressBar1.Value = 0;
            MessageBox.Show("Done");
        }
now since you are using MySQL not MSSQL ,you have to change the way of inserting every line to the db , in other word make your own QUERY and add to it , the values!!!
Mr_PoP is offline  
Thanks
1 User
Old 11/08/2012, 16:27   #18
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Thanks Mr_POP for your Positive Thread !!
|xabi| is offline  
Old 11/08/2012, 19:22   #19
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Quote:
Originally Posted by |xabi| View Post
Thanks Mr_POP for your Positive Thread !!
You made the thread, he made a post, Learn the difference.

Judging by your comments in response to what has been said, I'm going to say this how I see it, much like Korvacs would, You simply cannot currently accomplish the task you are attempting.
_DreadNought_ is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Program]The program for the help in the account description
11/13/2011 - DarkOrbit - 9 Replies
Good evening I represent you the program for the automatic description of an account. Скриншо т: http://i054.radikal.ru/1109/40/bdbf467f298d.jpg http://rghost.ru/29157071 http://www.virustotal.com/file-scan/report.html?i d=1bb32c4b71c3aa1c84ab34fa3df379f80d38e28a399d4988 b141da054e791604-1320783250
Get Aux Program 245?
03/17/2010 - Zero - 7 Replies
how to get Aux Program 245: Weapon and equipment level requirements decline by N. (Treasureassist.ini). Somebody know how to get this aux program?
Co 2.0 program
10/28/2006 - Conquer Online 2 - 6 Replies
Hello! I got a question bcuzz i don't know how the program is called :ops: . Otherwise i would click "Search". Anywayz the program is where u can open more than 2 Co 2.0 cuzz i made many copys of Co 2.0 and only 2 can start. :( so anyone can tell me which program is(cuzz ask few ppl and they said thats a program which allow u open more Co 2.0 windows) Thank you!



All times are GMT +2. The time now is 02:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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