Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 16:01

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

Advertisement



[Release] Start with Equips On (LOTF- Converted to Ini)

Discussion on [Release] Start with Equips On (LOTF- Converted to Ini) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
justprownage's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 87
[Release] Start with Equips On (LOTF- Converted to Ini)

Okay, before we begin, please read the title of this thread.


First, search for public static bool CreateCharacter
Then replace with this one:
Code:
public static bool CreateCharacter(string Name, uint Class, uint Model, uint Avatar, Client UClient)
        {
            if (!File.Exists(System.Windows.Forms.Application.StartupPath + @"\characters\\" + Name + ".chr"))
            {
                Ini Create = new Ini(System.Windows.Forms.Application.StartupPath + @"\characters\\" + Name + ".chr");
                Ini AccChange = new Ini(System.Windows.Forms.Application.StartupPath + @"\accounts\\" + UClient.Account + ".acc");

                string str = "0";
                string agi = "0";
                string vit = "0";
                string spi = "0";

                if (Class == 10)
                {
                    Create.WriteString("Character", "Equipment", "0~0~132308-0-0-0-0-0~410302-0-0-0-0-0~0~150007-0-0-0-255-0~0~0~0");
                    Create.WriteString("Character", "Inv1", "130208-0-0-0-255-0:150019-0-0-0-0-0:120007-0-0-0-0-0:160018-0-0-0-0-0:118308-0-0-0-255-0:");
                    str = (Stats.ReadValue("Trojan", "Strength[1]"));
                    agi = (Stats.ReadValue("Trojan", "Agility[1]"));
                    vit = (Stats.ReadValue("Trojan", "Vitality[1]"));
                    spi = (Stats.ReadValue("Trojan", "Spirit[1]"));
                }
                if (Class == 20)
                {
                    Create.WriteString("Character", "Equipment", "0~0~132308-0-0-0-0-0~410302-0-0-0-0-0~0~150007-0-0-0-255-0~0~0~0");
                    Create.WriteString("Character", "Inv1", "150019-0-0-0-0-0:120007-0-0-0-0-0:160018-0-0-0-0-0:111308-0-0-0-255-0:131208-0-0-0-255-0:");
                    str = (Stats.ReadValue("Warrior", "Strength[1]"));
                    agi = (Stats.ReadValue("Warrior", "Agility[1]"));
                    vit = (Stats.ReadValue("Warrior", "Vitality[1]"));
                    spi = (Stats.ReadValue("Warrior", "Spirit[1]"));
                }
                if (Class == 40)
                {
                    Create.WriteString("Character", "Equipment", "0~0~132308-0-0-0-0-0~500301-0-0-0-0-0~0~150007-0-0-0-255-0~0~0~0");
                    Create.WriteString("Character", "Inv1", "150019-0-0-0-0-0:120007-0-0-0-0-0:160018-0-0-0-0-0:113308-0-0-0-255-0:133208-0-0-0-255-0:");
                    str = (Stats.ReadValue("Archer", "Strength[1]"));
                    agi = (Stats.ReadValue("Archer", "Agility[1]"));
                    vit = (Stats.ReadValue("Archer", "Vitality[1]"));
                    spi = (Stats.ReadValue("Archer", "Spirit[1]"));
                }
                if (Class == 100)
                {
                    Create.WriteString("Character", "Equipment", "0~0~132308-0-0-0-0-0~421301-0-0-0-0-0~0~150007-0-0-0-255-0~0~0~0");
                    Create.WriteString("Character", "Inv1", "160018-0-0-0-0-0:134208-0-0-0-255-0:114308-0-0-0-255-0:121007-0-0-0-0-0:152019-0-0-0-0-0:");
                    str = (Stats.ReadValue("Taoist", "Strength[1]"));
                    agi = (Stats.ReadValue("Taoist", "Agility[1]"));
                    vit = (Stats.ReadValue("Taoist", "Vitality[1]"));
                    spi = (Stats.ReadValue("Taoist", "Spirit[1]"));
                }
                ulong uid = (uint)General.Rand.Next(1000001, 19999999) + (uint)General.Rand.Next(1000001, 19999999) + (uint)General.Rand.Next(1000001, 19999999) / (uint)General.Rand.Next(1000, 19999);
                string mp = Convert.ToString(short.Parse(spi) * 3);
                string hp = Convert.ToString((short.Parse(vit) * 24 + short.Parse(str) * 3 + short.Parse(agi) * 3 + short.Parse(spi) * 3));

                Create.WriteString("Character", "CharName", Name);
                Create.WriteString("Character", "Account", UClient.Account);
                Create.WriteString("Character", "UID", Convert.ToString(uid));
                Create.WriteString("Character", "Level", "1");
                Create.WriteString("Character", "Exp", "0");
                Create.WriteString("Character", "Strength", str);
                Create.WriteString("Character", "Agility", agi);
                Create.WriteString("Character", "Vitality", vit);
                Create.WriteString("Character", "Spirit", spi);
                Create.WriteString("Character", "Job", Convert.ToString(Class));
                Create.WriteString("Character", "Model", Convert.ToString(Model));
                Create.WriteString("Character", "Money", "10000");
                Create.WriteString("Character", "CPs", "1000");
                Create.WriteString("Character", "CurrentHP", hp);
                Create.WriteString("Character", "CurrentMP", mp);
                Create.WriteString("Character", "StatPoints", "0");
                Create.WriteString("Character", "LocationMap", "1002");
                Create.WriteString("Character", "LocationX", "438");
                Create.WriteString("Character", "LocationY", "377");
                Create.WriteString("Character", "Hair", "410");
                Create.WriteString("Character", "Inv2", "");
                Create.WriteString("Character", "Inv3", "");
                Create.WriteString("Character", "Inv4", "");
                Create.WriteString("Character", "Inv5", "");
                Create.WriteString("Character", "Inv6", "");
                Create.WriteString("Character", "Inv7", "");
                Create.WriteString("Character", "Inv8", "");
                Create.WriteString("Character", "PKPoints", "0");
                Create.WriteString("Character", "Skills", "");
                Create.WriteString("Character", "Profs", "");
                Create.WriteString("Character", "RBCount", "0");
                Create.WriteString("Character", "Avatar", "1");
                Create.WriteString("Character", "WHMoney", "0");
                Create.WriteString("Character", "Warehouses", ":::::");
                Create.WriteString("Character", "VP", "0");
                Create.WriteString("Character", "Friends", "");
                Create.WriteString("Character", "Enemies", "");
                Create.WriteString("Character", "GuildDonation", "0");
                Create.WriteString("Character", "MyGuild", "0");
                Create.WriteString("Character", "GuildPos", "0");
                Create.WriteString("Character", "PrevMap", "0"); ;

                AccChange.WriteString("Account", "LogonType", "1");

                AccChange.WriteString("Account", "Charr", Name);
                return true;
            }
            else return false;
        }
What this does is makes a new character start with Equips based on the job. If it doesn't work, just try to fix the code.
justprownage is offline  
Old 03/02/2009, 08:18   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
its about the way the other "INIs" are taking the equipment, like how it was mine, to get the equip i wasnt getting it from a single line...
Code:
Equip[0] = blablabla....
Equip[1] = blablabla....
Equip[2] = blablabla....
Equip[3] = blablabla....
so....ur code will basicly work but not for the others lotf , just for urs and the others that get the equipment same as urs...

PS. LEAVE THE LOTF ALONE!
alexbigfoot is offline  
Old 03/11/2009, 04:04   #3
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
u all keep saying PS. LEAVE THE LOTF ALONE! and stuff but why lotf is the best sources out it may not be stable but it has most stuff and it is the easyest to messs with < mabe thats what macks it so un stable lol
taylor2846 is offline  
Reply


Similar Threads Similar Threads
[Release] LOTF Source (Converted to Ini)
06/24/2009 - CO2 PServer Guides & Releases - 28 Replies
Have fun. LOTF Source (Ini Converted).zip (WAREHOUSE FIX) Registration Page Credits Tanel- for the source Me- for converting the accounts and characters into ini files.
[LOTF RELEASE] Ip Ban!!
05/18/2009 - CO2 PServer Guides & Releases - 22 Replies
Ip Ban! Credits to Ultimatum First...Search this ( It is in General.cs ) public static System.IO.StreamWriter sw = new System.IO.StreamWriter(Application.StartupPath + @"\ServerLog.txt", true);
ya i will start a new server with LOTF
04/15/2009 - CO2 Private Server - 11 Replies
oke guys i going to start to creat a new server but whit LOFT i need a coder i dont know to much about LOFT i used just TQ till now when i gived up to use Tq binares i am bored of binares oke guys i going to start a new project whit LOFT Name of Server=i dont know ( give me a name ) i going to add 135 gears atm i got just blade and ring Pk event whit Emme guide also i need a hoster cuz i cnat host cuz of my PC and a coder who wannt to help me and to join in this new...
[Help] Garment bug/Equip bug [Converted to ini]
01/25/2009 - CO2 Private Server - 7 Replies
Hey guys I get this bug whenever I put a garment on: http://i39.tinypic.com/2n8y2o8.jpg I removed: foreach (string Item in DataBase.DBPlusInfo) { if (PItemID == Item) if (ItemPlus == byte.Parse(Item)) {
Cabal server linux data base [ converted ]
08/12/2008 - Cabal Online - 1 Replies
Link download: New_Project_20080726_0952.sql - FileFront.com It works i tried it.the only problem is to connect at it with odbc on .. linux -_- preety imposbile.Try out maybe works dont forget to thanks if helped



All times are GMT +1. The time now is 16:02.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.