Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 21:33

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

Advertisement



[Release]How to create CPBags (LOFT Source!!)

Discussion on [Release]How to create CPBags (LOFT Source!!) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 130
Received Thanks: 90
Thumbs up [Release]How to create CPBags (LOFT Source!!)

I know the most people are still running loft source so here is the code

Search in Character.cs for:
Code:
else if (ItemParts[0] == "723723")
Add this code down there
Code:
                else if (ItemParts[0] == "729910")//CPMiniBag
                {
                    CPs += 1000;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 3, CPs));
                    RemoveItem(ItemUID);
                    MyClient.SendPacket(General.MyPackets.SendMsg(MyClient.MessageId, "SYSTEM", Name, "You got 1000 cps from the CPMiniBag, This will not be showed go to market and u have them", 2005));
                }
                else if (ItemParts[0] == "729911")//CPBag
                {
                    CPs += 3000;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 3, CPs));
                    RemoveItem(ItemUID);
                    MyClient.SendPacket(General.MyPackets.SendMsg(MyClient.MessageId, "SYSTEM", Name, "You got 3000 cps from the CPBag, This will not be showed go to market and u have them", 2005));
                }
                else if (ItemParts[0] == "729912")//CPBackpack
                {
                    CPs += 5000;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 3, CPs));
                    RemoveItem(ItemUID);
                    MyClient.SendPacket(General.MyPackets.SendMsg(MyClient.MessageId, "SYSTEM", Name, "You got 5000 cps from the CPBackpack, This will not be showed go to market and u have them", 2005));
                }
To let the Pheasants drop this cpbag search in Entities.cs for:
Code:
if (Name != "SkyRockMonster" && Name != "SkyHawk" && Name != "SkyBandit" && Name != "SkyBull" && Name != "SkyDevil")
Replace it with:
Code:
if (Name != "Pheasant")
Down there u see this:
Code:
                    {
                        if (Other.ChanceSuccess(1))
                        {
                            string Item = "1060101-0-0-0-0-0";
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
                    if (Other.ChanceSuccess(1))
                    {
                        string Item = "1060100-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "721533-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "721536-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "723038-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "722019-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "722312-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "722313-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
Replace that with:
Code:
                    {
                        if (Other.ChanceSuccess(90))
                        {
                            string Item = "729910-0-0-0-0-0";
                            DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                            World.ItemDrops(item);
                        }
                    }
                    if (Other.ChanceSuccess(80))
                    {
                        string Item = "729910-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(70))
                    {
                        string Item = "729911-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "729911-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "729912-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "729912-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "729912-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }
                    if (Other.ChanceSuccess(0))
                    {
                        string Item = "729912-0-0-0-0-0";
                        DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                        World.ItemDrops(item);
                    }

Now we gonna make the item...

Go to your client map and extract the files (Found at the end of the post!!)
Now u have the pictures.
Now go to the map "ini" and search for itemtype.dat. Download the itemtype thing (at the end of the post), And create a txt file named itemtype.txt, then put above in the itemtype thing in itemtype.dat and down there itemtype.txt then puss "Do It".

Now open itemtype.txt and go down add these 3 lines:
Code:
729910 CPMiniBag 0 0 0 0 0 0 0 0 8 0 0 7403510 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Giftbox Right~click~on~it~to~obtain~1000CP.
729911 CPBag 0 0 0 0 0 0 0 0 8 0 0 7403520 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Giftbox Right~click~on~it~to~obtain~3000~CPs.
729912 CPBackpack 0 0 0 0 0 0 0 0 8 0 0 7403530 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 Giftbox Right~click~on~it~to~obtain~5000~CPs.
Go to your source folder to debug and open ItemNamesToId.ini with notepad and add these 3 lines:
Code:
CPMiniBag=729910
CPBag=729911
CPBackpack=729912
Now run the source, kill a Pheasant and they will drop a CPBackPack or CPBag or a CPMiniBag

If this tutorial helped you press thanks!!
Attached Files
File Type: rar Itemtype thing.rar (186.7 KB, 37 views)
File Type: rar CPBag things.rar (6.0 KB, 21 views)
irritantgassie is offline  
Old 02/13/2010, 13:34   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Moved.
Korvacs is offline  
Reply


Similar Threads Similar Threads
[Release]LOFT 5016/5017 Source
06/13/2010 - CO2 PServer Guides & Releases - 21 Replies
This is a guide to create a private server on a 5016/5017 client. This is a CoMy source with Ninja (I edited a few things!!). Whats in this source.. *Ninja`s *High Drop Rates *CP Drop *All normal NPC`s *Some custom NPC`s Guide...
[Release]How to make a NinjaAmulet (LOFT Source!!)
02/14/2010 - CO2 PServer Guides & Releases - 5 Replies
This release make the ninja amulet working!! Search in Character.cs for: else if (ItemParts == "720010") { CurHP += 500; if (CurHP > MaxHP) CurHP = MaxHP; MyClient.SendPacket(General.MyPackets.Vital(UID, 0, CurHP)); RemoveItem(ItemUID);
[Tiny-Release] LOFT SOURCE - FIXED+ADDED
10/31/2009 - CO2 PServer Guides & Releases - 38 Replies
HUGE CREDITS TO HADESET FOR HIS SOURCE, IT IS AMAZING! OTHER CREDITS TO... TruthCo for /allto me command and Pro Ip Site kinshi88 for /drop command EmmeTheCoder for /revive command reborn666 for Potency Fix XxArcherMasterxX for Fixed BroadCast imported_spitt_fire911 for /gm command
[Release] Loft Source:
07/17/2008 - CO2 Guides & Templates - 7 Replies
Orinal posted By Super.Pvper :cool:.



All times are GMT +1. The time now is 21:39.


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