Register for your free account! | Forgot your password?

You last visited: Today at 18:10

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

Advertisement



[Help] Adding items

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

Reply
 
Old   #1
 
Jay10291's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 143
Received Thanks: 155
[Help] Adding items

i wanna add a +4 1 soc -3 item to the inventory. i only know how to add items with +. Help
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
Jay10291 is offline  
Old 07/03/2011, 05:42   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
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?
Spirited is offline  
Old 07/03/2011, 22:40   #3
 
acm-18's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 31
Received Thanks: 22
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
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
acm-18 is offline  
Reply


Similar Threads Similar Threads
Adding items
02/13/2018 - Dekaron Private Server - 3 Replies
I am currently action 6 could I add the act 7 armor directly in to all my files? https://www.winterunblocker.com/open/browse.php?u =Oi8vd3d3LmRrdW5kZXJncm91bmQub3JnL2ZpbGVkYi9maWxlL nBocD9pZD02MTE%3D&b=7
Adding items to shop
10/23/2010 - Kal Online - 1 Replies
I saw people adding with somthing items that are not buy able for normal players to a clean shop but I cant see them when they add them only the people who add them to shop can buy the items. What kind of method do they use ? :D
Adding items to NPC
03/04/2010 - Dekaron Private Server - 20 Replies
I am trying to add something to pablos But when I do that the server crash when he setting pablos to map index 0 I already add them in itemcsv.csv ,, But I cant get it working? Any help Please
Adding items?
07/31/2009 - CO2 Private Server - 13 Replies
Anyone mind helping me on adding an item... ATM im trying to make a new Scroll. I've added it to Shop.dat and make it in my database, but when i open the shop it comes up with an error and nothing appears in the shop
adding items[help]
06/20/2009 - EO PServer Hosting - 2 Replies
i wanna do the same thing forgotten realms did with the equipment bags can someone help me edit them into shopping mall?!?! ive been up all night working on this still cant get it !! lol thank you you can add me on msn at [email protected]



All times are GMT +1. The time now is 18:10.


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.