Register for your free account! | Forgot your password?

You last visited: Today at 06:35

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

Advertisement



[Help] CoEmu

Discussion on [Help] CoEmu within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2006
Posts: 75
Received Thanks: 17
[Help] CoEmu

my items change doesnt save lvl, quality and color and i use :
Code:
Database.Database.UpdateItem(Item);
and i have in database.cs:
Code:
        public static void UpdateItem(Struct.ItemInfo Item)
        {
            MySqlCommand Cmd = new MySqlCommand("UPDATE `items` SET `ItemID` = " + Item.ItemID + ", `Position` = " + Item.Position + ", `Minus` = " + Item.Bless + ", `Plus` = " + Item.Plus + ", `Progress` = " + Item.Progress + ", `Enchant` = " + Item.Enchant + ", `Soc1` = " + Item.Soc1 + ", `Soc2` = " + Item.Soc2 + ", `Dura` = " + Item.Dura + ", `MaxDura` = " + Item.MaxDura + ", `Color` = " + Item.Color + " WHERE `ItemUID` = \"" + Item.UID + "\"", DatabaseConnection.NewConnection());
            Cmd.ExecuteNonQuery();
            Cmd.Connection.Close();
            Cmd.Connection.Dispose();
            Cmd.Dispose();
        }
this is my item info:
Quote:
public static byte[] ItemInfo(int UID, int ItemID, int Plus, int Progress, int Bless, int Enchant, int soc1, int soc2, int Dura, int MaxDura, int Position, int Color)
{
PacketBuilder Packet = new PacketBuilder(1008, 48);
Packet.Long(UID);
Packet.Long(ItemID);
//Packet.Int(Math.Abs(200-currentdura) & 0xff);
//Packet.Int((byte)(currentdura / 2.56) & 0xff);
//Packet.Int(Math.Abs(200-maxdura) & 0xff);
//Packet.Int((byte)(maxdura / 2.56) & 0xff);
//Packet.Long(0);
Packet.Int(1);
Packet.Int(1);
Packet.Int(1);
Packet.Int(1);
Packet.Short(1);
Packet.Int(Position);
Packet.Long(0);
Packet.Int(0);
Packet.Int(soc1);
Packet.Int(soc2);
Packet.Short(2);
Packet.Int(Plus);
Packet.Int(Bless);
Packet.Int(0); // Free / Unfree
Packet.Long(Enchant);
Packet.Int(0);
Packet.Short(0); // Suspicious item??
Packet.Short(0); //Boolean 1- yes 0 - no (locked)
Packet.Long(Color); //Item color. 2-9(headgear is 3-9)
Packet.Long(Progress); // Composition Progress
return Packet.getFinal();
}
whats wrong??? pls help!!!
gad-legion is offline  
Old 08/02/2009, 10:13   #2
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
Could you post your itempacket?
xellios is offline  
Old 08/03/2009, 10:28   #3
 
elite*gold: 0
Join Date: Oct 2006
Posts: 75
Received Thanks: 17
problem solved even tho no1 helped, seems like this forum has very selfish members not all tho, if any1 has same problem pm me ill tell u how to fix it
gad-legion is offline  
Reply


Similar Threads Similar Threads
Help COEmu v2
06/27/2009 - CO2 Private Server - 3 Replies
How to make my account GM?:)
CoEmu
06/18/2009 - CO2 Private Server - 12 Replies
I keep forgeting the code, how do I make an item in CoEmu? /item JusticeKatana 9 12 7 255 2?
[Help] COEmu 2 on LAN
06/09/2009 - CO2 Private Server - 22 Replies
Hi, I manage to run the source sample provided here (thanks Andy and to all who was involved in making. You know who you are). I perfectly run the server locally on my computer, bu since then i have extra 4 pcs and my friends wants to play FB, I manage to install the client to the other 4 pcs editing the server.dat on theirs to the ip on my pc locally with an ip address of 192.168.0.187 (you know Dlink DHCP ip's) On my pc, server.dat sticks to 127.0.0.1 I edited the loginservers...
[Help] CoEmu
06/02/2009 - CO2 Private Server - 0 Replies
Help comands for PM charakter dont vork
Help with CoEmu v2!
05/31/2009 - CO2 Private Server - 11 Replies
Hello Elitepvpers, I can't login! This is my error: http://img46.imageshack.us/img46/1135/errorhxb.th .png Can someone help me?



All times are GMT +1. The time now is 06:35.


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.