|
You last visited: Today at 04:07
Advertisement
Conquer_V2 ini to MySql item Database Command
Discussion on Conquer_V2 ini to MySql item Database Command within the CO2 Private Server forum part of the Conquer Online 2 category.
01/19/2011, 05:49
|
#1
|
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
|
Conquer_V2 ini to MySql item Database Command
[EDIT]
`[EDIT]
i do not want to spam the from with stuff so i am posting a ? here.
in item the database item data what is
Weight,
Unknown1,
Unknown2,
Unknown3,
what is the purpose of them?
and are there any items that require spi... and vit...?
this is for Conquer_V2.
Here is my code to Convert the ini item database to MySql if anyone needs it note it will take some editing to your source to use this.
Code:
case "/item":
{
for (uint nxtitm = 111002; nxtitm <= 2100095; nxtitm++)
{
if (File.Exists(ServerDatabase.Path + "\\Items\\" + nxtitm + ".ini"))
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Loading_Item = " + nxtitm);
StanderdItemStats item = new StanderdItemStats(nxtitm);
MySqlCommand Cmd = new MySqlCommand("INSERT INTO items(ItemID, ItemName, ReqJob, ReqProfLvl, ReqLvl, ReqSex, ReqStr, ReqAgi, ReqVit, ReqSpi, Tradability, Weight, ShopBuyPrice, Action, MaxPhysAtk, MinPhysAtk, PhysDefence, Dexerity, Dodge, PotAddHP, PotAddMP, Durability, Arrows, Identity, Gem1, Gem2, Magic1, Magic2, Magic3, MAttack, MDefence, Range, Frequency, Unknown1, Unknown2, Unknown3, ShopCPPrice) VALUES(" + item.ItemID + ",'" + item.Name + "'," + item.ReqJob + "," + item.ReqProfLvl + "," + item.ReqLvl + "," + item.ReqSex + "," + item.ReqStr + "," + item.ReqAgi + "," + item.ReqVit + "," + item.ReqSpi + "," + item.Tradability + "," + item.Weight + "," + item.MoneyPrice + "," + item.Action + "," + item.MaxAttack + "," + item.MinAttack + "," + item.PhysicalDefence + "," + item.Dexerity + "," + item.Dodge + "," + item.HP + "," + item.MP + "," + item.Durability + "," + item.Arrows + "," + item.Identity + "," + item.Gem1 + "," + item.Gem2 + "," + item.Magic1 + "," + item.Magic2 + "," + item.Magic3 + "," + item.MAttack + "," + item.MDefence + "," + item.AttackRange + "," + item.Frequency + "," + item.Unknown1 + "," + item.Unknown2 + "," + item.Unknown3 + "," + item.ConquerPointsPrice + ")", DatabaseConnection.NewConnection());
Cmd.ExecuteNonQuery();
Cmd.Connection.Close();
Cmd.Connection.Dispose();
Cmd.Dispose();
Console.Clear();
}
else
{
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("Discarding_Item = " + nxtitm);
}
}
break;
}
|
|
|
01/11/2012, 13:12
|
#2
|
elite*gold: 0
Join Date: May 2009
Posts: 239
Received Thanks: 78
|
changing font to make this readable
Quote:
this is for Conquer_V2.
Here is my code to Convert the ini item database to MySql if anyone needs it note it will take some editing to your source to use this.
|
|
|
|
01/11/2012, 16:37
|
#3
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Unknown1 = fray_mode
Unknown2 = repair_mode
Unknown3 = type_mask
These are values from the itemtype.dat but are not used in the source nor do I know what they are used for, your best bet would be asking TQ (lol) or someone that knows a lot about the client but as far as I know; these values have never been used in any public source.
|
|
|
Similar Threads
|
MySQL Command Line
01/05/2011 - Metin2 Private Server - 1 Replies
Wie komm ich dahin ?
|
The possibilities of a MySQL Database
04/15/2010 - CO2 Private Server - 10 Replies
LOL!
|
[HELP] MySql Database
12/09/2008 - CO2 Private Server - 0 Replies
Mysql database keeps giving an error:
PHPMYADMIN ERROR, The server isn't reacting.
What should i do lol, i've re-installed it like 3 times still doesn't work. Hm...
Ciao!
|
Where is the mysql command client?
12/02/2008 - EO PServer Hosting - 7 Replies
In the intructions (#23) on the "All Things Guide" it says to put this command in the mysql command client. What exactly do i put in, and where! Please help!
-Nicolexo
|
'' MySQL database ''
11/10/2008 - Conquer Online 2 - 8 Replies
How do i let my friend connect to my MYSQL database so he can also be a hoster and create accounts.
Any 1 idea's post em here
Regards Memos ,
|
All times are GMT +2. The time now is 04:07.
|
|