[Help] Adding items

07/03/2011 05:38 Jay10291#1
i wanna add a +4 1 soc -3 item to the inventory. i only know how to add items with +. Help :o
Code:
#region Super WarArmor Pack
                case 721224://Super 1 soc War Armor
                    {
                        if (client.Inventory.Count <= 40)
                        {
                            client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
                            client.Inventory.Add(131069, 6, 1);
                        }
                        else
                            client.Send(ServerBase.Constants.FullInventory);
                        break;
                    }
                    #endregion
07/03/2011 05:42 Spirited#2
Just change the item packet's parameters that you're adding to the inventory.
Btw, is this Jay from Project Phoenix back in Dec. 2009?
07/03/2011 22:40 acm-18#3
Quote:
Originally Posted by Jay10291 View Post
i wanna add a +4 1 soc -3 item to the inventory. i only know how to add items with +. Help :o
Code:
#region Super WarArmor Pack
                case 721224://Super 1 soc War Armor
                    {
                        if (client.Inventory.Count <= 40)
                        {
                            client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
                            client.Inventory.Add(131069, 6, 1);
                        }
                        else
                            client.Send(ServerBase.Constants.FullInventory);
                        break;
                    }
                    #endregion
If you want you can take this function that I create for my server. Put it in character.cs.


It's simple to use ;)