[request]CoEmu..Help

07/10/2009 22:38 taylor2846#1
can someone give me the
Definitions for these
Code:
Calculation.GetItem
Calculation.DeleteItem
and help me with blacktolip. here is what i got on it
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;
                    }
it will tarn armor black it if you drop the item or relog or somting it will go back normail some


and can someone help me with adding weppon skill like rage.. NOT GIVE ME THE CODE FOR IT just help me with it
help on this to plz??
07/11/2009 04:21 taylor2846#2
Will no one help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
07/11/2009 05:15 imported_spitt_fire911#3
I WOULD... but were both looking for it cause were both working together haha...
07/11/2009 05:25 kinshi88#4
Code:
        public static void GetItem(
            CoEmu_v2_GameServer.Connections.ClientSocket CSocket,
            int ID,
            int Plus,
            int Bless,
            int Enchant,
            int Soc1,
            int Soc2,
            int Color,
            int Free,
            int Amount)
        {
            int i = 0;
            while (i < Amount)
            {
                Struct.ItemInfo NewItem = new Struct.ItemInfo();
                NewItem.ItemID = ID;
                NewItem.Plus = Plus;
                NewItem.Bless = Bless;
                NewItem.Enchant = Enchant;
                NewItem.Soc1 = Soc1;
                NewItem.Soc2 = Soc2;
                NewItem.Color = Color;
                NewItem.Free = Free;
                NewItem.Dura = 1;
                NewItem.MaxDura = 1;
                NewItem.UID = Nano.Rand.Next(1, 9999999);
                bool created = Database.Database.NewItem(NewItem, CSocket);
                while (!created)
                {
                    NewItem.UID = Nano.Rand.Next(1, 9999999);
                    created = Database.Database.NewItem(NewItem, CSocket);
                }
                CSocket.Client.Inventory.Add(NewItem.UID, NewItem);
                CSocket.Send(ConquerPacket.ItemInfo(NewItem.UID, NewItem.ItemID, NewItem.Plus, NewItem.Bless, NewItem.Enchant, NewItem.Soc1, NewItem.Soc2, NewItem.Dura, NewItem.MaxDura, NewItem.Position, NewItem.Color, NewItem.Effect, NewItem.Free, NewItem.Progress, NewItem.Suspicious, NewItem.Locked));
                i++;
            }
        }
Code:
        public static void DeleteItem(int ItemUID, ClientSocket CSocket)
        {
            CSocket.Client.Inventory.Remove(ItemUID);
            CSocket.Send(ConquerPacket.ItemUsage(ItemUID, 255, Struct.ItemUsage.RemoveItem));
            Database.Database.DeleteItem(ItemUID);
        }
07/11/2009 06:07 CIRASH#5
Quote:
Originally Posted by taylor2846 View Post
and can someone help me with adding weppon skill like rage.. NOT GIVE ME THE CODE FOR IT just help me with it
help on this to plz??
Just copy and paste herc and change the case to rages id and change the rages for each level???
07/11/2009 07:13 taylor2846#6
i was thanking that but.. what would handle the chance of getting rage?
07/12/2009 10:47 m7med#7
i have 2 errors
1- The name 'ConquerPacket' does not exist in the current context
2- The type or namespace name 'Struct' could not be found (are you missing a using directive or an assembly reference?)
07/12/2009 18:23 CIRASH#8
ROFL you put it in the wrong place? duh?
07/12/2009 20:08 m7med#9
Quote:
Originally Posted by CIRASH View Post
ROFL you put it in the wrong place? duh?
i put in Calculation
07/12/2009 20:10 CIRASH#10
this is for using items i believe