Blacktulip - CoEmu

07/14/2009 07:31 imported_spitt_fire911#1
Insert into UseItem.cs

Code:
                case 723584://BlackTulip
                    {
                        if (CSocket.Client.Equipment.ContainsKey(3))
                        {
                            Struct.ItemInfo itm = CSocket.Client.Equipment[3];
                            CSocket.Send(ConquerPacket.ItemInfo(itm.UID,itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
                            Database.Database.UpdateItem(Item);
                            CSocket.Send(ConquerPacket.ItemUsage(itm.ItemID, 255, Struct.ItemUsage.RemoveItem));
                            CSocket.Send(ConquerPacket.ItemInfo(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, itm.Position, 2));
                            ItemUpdate(itm.UID, itm.ItemID, itm.Plus, itm.Bless, itm.Enchant, itm.Soc1, itm.Soc2, itm.Dura, itm.MaxDura, 3, 2);
                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your Armor is now black!", Struct.ChatType.Top));
                        }
                        else
                        {
                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "you Do not have armor on!", Struct.ChatType.Top));
                            Delete = false;
                        }
                        break;
                    }
               /* case 723584://BlackTulip
                    {
                        CSocket.Client.Equipment[3].Color = 2;
                        int UID = CSocket.Client.Equipment[3].UID;
                        int itemid = CSocket.Client.Equipment[3].ItemID;
                        int Plus = CSocket.Client.Equipment[3].Plus;
                        int Minus = CSocket.Client.Equipment[3].Bless;
                        int Enchant = CSocket.Client.Equipment[3].Enchant;
                        int soc1 = CSocket.Client.Equipment[3].Soc1;
                        int soc2 = CSocket.Client.Equipment[3].Soc2;
                        int currentdura = CSocket.Client.Equipment[3].Dura;
                        int maxdura = CSocket.Client.Equipment[3].MaxDura;
                        int Location = 3;
                        int Color = CSocket.Client.Equipment[2].Color;
                        //CSocket.Client.Equipment[3].Add(UID, itemid, Plus, Minus, Enchant, soc1, soc2, currentdura, maxdura, Location, Color);
                        ItemUpdate(UID, itemid, Plus, Minus, Enchant, soc1, soc2, currentdura, maxdura, Location, Color);
                        CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Armor is now black.", Struct.ChatType.Top));
                        Database.Database.UpdateItem(CSocket.Client.Equipment[3]);
                        break;
                    }*/
Quote:
It will make armor black and all but just dun know how to make it save... so u can fix that urself..
****ALL-CREDITS-TO-Taylor-AND-Me****

NEED A GOOD CODER FOR MY SeRVER

**Can someone help with MagicArtisan?**
07/14/2009 08:04 Arcotemple:)#2
next timei sucggest instead of use {Quote}{/Quote}
us {code}{/code}
07/14/2009 08:05 pro4never#3
Quote:
Originally Posted by imported_spitt_fire911 View Post
Insert into UseItem.cs



****CREDITS-TO-Taylor-AND-Me****

NEED A GOOD CODER FOR MY SeRVER

**Can someone help with MagicArtisan?**
2 very minor things...

#1 why do you have an entire second case for the same item in comments? I assume it was something you removed? You def don't need to post both seeing as the one is entirely commented out anyways

#2: you know if you use [ code ] your stuff will keep all it's indenting and be oooohh so much more readable?

again, not major things (I didn't check all the specifics of the code cause I'm just leaving). The formatting/redundancy just kinda bugged me a bit :P No big deal though.


Quote:
Originally Posted by imported_spitt_fire911 View Post
Insert into UseItem.cs



****CREDITS-TO-Taylor-AND-Me****

NEED A GOOD CODER FOR MY SeRVER

**Can someone help with MagicArtisan?**
Quote:
Originally Posted by Arcotemple:) View Post
next timei sucggest instead of use {Quote}{/Quote}
us {code}{/code}

aww you beat me to it... except I spelled it correctly and used the right cmd xD (j/k)
07/31/2009 01:42 taylor2846#4
i got it working 100% now i will be RELEASE Slater with other itmes