Register for your free account! | Forgot your password?

You last visited: Today at 14:28

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

Advertisement



[Release] CoEmuv2 .. Stuff

Discussion on [Release] CoEmuv2 .. Stuff within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
[Release] CoEmuv2 .. Stuff

First Plz release all you can for coemu such as any items npcs skills what ever if it is not alredy released release it plz it will save us all lots of time.. and becaz no one seem no no how to dye armor black and stuff from a npc im Releaseign how and plz if someone can release to me the npc for socing items dont remember his name and Magic Artisan and the guy for upgrading item level and quality with mets a db's.. plz^^.. any way.


edit your database.cs update item code to this

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();
		}
and now black tolip
Code:
                case 723584://BlackTulip
                    {
                        if (CSocket.Client.Equipment.ContainsKey(3))
                        {
                            Struct.ItemInfo itm = CSocket.Client.Equipment[3];
                            itm.Color = 2;
                            CSocket.Send(ConquerPacket.ItemInfo(itm.UID, itm.ItemID, itm.Plus, itm.Progress, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, itm.Color));
                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your Armor is now black!", Struct.ChatType.Top));
                            Database.Database.UpdateItem(itm);
                        }
                        else
                        {
                            Delete = false;
                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You Have no armor on dont wast the item", Struct.ChatType.Top));
                        }
                        break;
                    }
ok and now so you can see item color on the groud in DropItem.cs edit
the code below
Code:
					CSocket.Send(ConquerPacket.ItemUsage(UID, 255, Struct.ItemUsage.RemoveItem));
to
Code:
					ConquerPacket.ToLocal(ConquerPacket.DropItem(IG.UID, IG.ItemID, IG.X, IG.Y, IG.Color), IG.X, IG.Y, IG.Map, 0, 0);
ok now in Item.cs edit CopyItem to this

Code:
			public void CopyItem(ItemInfo Item)
			{
				Bless = Item.Bless;
				Dura = Item.Dura;
				Enchant = Item.Enchant;
				ItemID = Item.ItemID;
				MaxDura = Item.MaxDura;
				Plus = Item.Plus;
				Position = Item.Position;
				Soc1 = Item.Soc1;
				Soc2 = Item.Soc2;
                Color = Item.Color;
				UID = Item.UID;
			}
and edit Public class ItemInfo to this
Code:
		public class ItemInfo
		{
			public int UID;
			public int ItemID;
			public int Plus;
            public int Progress;
			public int Bless;
			public int Enchant;
			public int Soc1;
			public int Soc2;
			public int Dura;
			public int MaxDura;
			public int Position;
			public int Color = 4;
		}
------------
to upgrade item quality do something like this.
Code:
                                    if (Calculation.CanUpgrade(Convert.ToString(Item.ItemID)))
                                    {

                                        CSocket.Send(ConquerPacket.ItemUsage(Item.UID, 255, Struct.ItemUsage.RemoveItem));
                                        if (Calculation.Quality(Convert.ToString(Item.ItemID)) == 3 || Calculation.Quality(Convert.ToString(Item.ItemID)) == 4)
                                            Item.ItemID += 6 - Calculation.Quality(Convert.ToString(Item.ItemID));
                                        else
                                        {
                                            Item.ItemID += 1;
                                        }
                                        Database.Database.UpdateItem(Item);
                                        CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
and to upgrade item level do something like this
Code:
                                    if (Calculation.CanUpgrade(Convert.ToString(Item.ItemID)))
                                    {
                                        Struct.ItemData item = Nano.Items[Item.ItemID];
                                        if (item.Level < 130)
                                        {
                                            if (CSocket.Client.Level <= Calculation.NextEquipLevel(Item.ItemID))
                                            {
                                                CSocket.Send(ConquerPacket.ItemUsage(Item.UID, 255, Struct.ItemUsage.RemoveItem));
                                                Item.ItemID = Calculation.NextEquipLevel(Item.ItemID);
                                                Database.Database.UpdateItem(Item);
                                                CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
ok i thank thats all i did .. plz note i have waxing oven so if you dont have it you will get some earrors
taylor2846 is offline  
Thanks
2 Users
Old 08/03/2009, 06:13   #2
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
did you code this Taylor?
CIRASH is offline  
Old 08/03/2009, 06:20   #3
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
yes why? if i didnt i would have credits in it. i dont Release other people work unless they tell me to. why is no one replying or noting no ty's no replys noting is it relly that bad?
taylor2846 is offline  
Old 08/03/2009, 06:36   #4
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
I wouldnt say its bad. and the only reason i asked is yeah i see you release stuff but also you ask ALOT of questions and thats not a bad thing. So yeah i just didnt know if this was all from you xD
CIRASH is offline  
Old 08/03/2009, 06:52   #5
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
lol..i do ask lots of Q.. but that is to learn.. i am probably the only one that ask Q and stuff that try to learn from it.. it wold be a lots easier if people helps lol and not just tell me to read i guide lol i don't understand guids that well that's why i ask Q.. thay thank i am just trying to get them to do the work for me but i do try to learn from every code i see on here and all Q.. that i ask
note im not saying no one helps lots on here helps but even more just trys to get you to stop asking Q..s lol but why not ask Q's and why not answer Q's if you can its they only way most can learn
taylor2846 is offline  
Old 08/03/2009, 07:08   #6
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
yeah im learning to code and i can usually fix errors easily nd all that and alot of people do help i agree. i have learned alot from reading many posts here and ****. but yeah i was just wondering if it was your code. +k for releasing
CIRASH is offline  
Reply


Similar Threads Similar Threads
[Release] CPAdmin for CoEmuV2
03/06/2010 - CO2 PServer Guides & Releases - 0 Replies
Go to Handlers/NpcTalk.cs Add this somewhere at other NPC`s: #region CPAdmin case 2071: { if (LinkBack == 0) { Text("U can exchance here Dragonballs for cps", CSocket);
[Release] CoEmuv2 AccountServer
08/01/2009 - CO2 PServer Guides & Releases - 7 Replies
Reads password as plain text. All credits goes to bruno for the crypt functions. Here's the query parts so that you'd know what the variable on the config are for. MySqlConnection("Server=" + ADBHost + ";Database='" + ADBName + "';Username='" + ADBUser + "';Password='" + ADBPass + "'"); And another one so no one would asks what table name is used. MySqlCommand("SELECT * FROM account WHERE name='" + Account + "'", DatabaseConnection.NewConnection());
[Release]CollectorZhao CoEmuV2
07/09/2009 - CO2 PServer Guides & Releases - 4 Replies
CollectorZhao for CoEmuV2 go to Handler.cs then click on NPCTalk.cs And place this in it. #region CollectorZhao case 2070: // CollectorZhao { if (LinkBack == 0) {
[Release] Cup Awards / CoEmuV2
07/03/2009 - CO2 PServer Guides & Releases - 12 Replies
Go to the CoEmu v2 GameServer and search for: else if (ItemID == 2100045 Replace This: else if (ItemID == 2100045 || ItemID == 2100025 && EquipLocation == 7)//Returns Gourd Position { return 7; } With this: else if (ItemID >= 2100025 && ItemID <= 2100095 && EquipLocation == 7)//Returns Gourd Position
[All-In-One] Guide and Release (CoEmuV2)
06/12/2009 - CO2 PServer Guides & Releases - 36 Replies
Hello this is BasicCoder, Andy recently posted his source for Client 5095! And there were many great releases but on like different pages, this source is Non-Lotf and its Not Binaries either. Anyways here is the posts! Main Source! http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/254190-awesome-release-coemuv2-na no-5095-source-code.html Edited CoEmuV2 Sources:



All times are GMT +1. The time now is 14:29.


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