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 16:01

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

Advertisement



[Mini-Guide]How to make mobs drop certain items

Discussion on [Mini-Guide]How to make mobs drop certain items within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 07/27/2009, 11:52   #16
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
@weasel
who the hell are you and why do you thank every one of my posts?
Arcotemple:) is offline  
Old 07/30/2009, 05:18   #17
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
What LOTF source are you guys using to do this because I've searched a few of 'em now and none have "if (Name == "Guard")"
Jay1029 is offline  
Old 07/30/2009, 06:04   #18
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
No clue what source they are using. Cause even I never had that in LOTF. But if you're simply having difficulty finding where to do this... Open Entities.cs, and look for something like.

Code:
                uint MoneyDrops = 0;

                if (Other.ChanceSuccess(30))
                {
                    int DropTimes = 1;
                    if (Other.ChanceSuccess(15))
                    {
                        DropTimes = General.Rand.Next(1, 6);
                    }
                    for (int i = 0; i < DropTimes; i++)
                    {
                        MoneyDrops = (uint)General.Rand.Next(1, 10);

                        if (Other.ChanceSuccess(90))
                            MoneyDrops = (uint)General.Rand.Next(1, 200);
                        if (Other.ChanceSuccess(70))
                            MoneyDrops = (uint)General.Rand.Next(30, 500);
                        if (Other.ChanceSuccess(50))
                            MoneyDrops = (uint)General.Rand.Next(100, 1000);
                        if (Other.ChanceSuccess(30))
                            MoneyDrops = (uint)General.Rand.Next(500, 5000);
                        if (Other.ChanceSuccess(15))
                            MoneyDrops = (uint)General.Rand.Next(1000, 15000);

                        MoneyDrops = MoneyDrops / (136 - (uint)Level) * 10;
                        if (MoneyDrops < 1)
                            MoneyDrops = 1;
                        string Item = "";

                        if (MoneyDrops < 10)
                            Item = "1090000-0-0-0-0-0";
                        else if (MoneyDrops < 100)
                            Item = "1090010-0-0-0-0-0";
                        else if (MoneyDrops < 1000)
                            Item = "1090020-0-0-0-0-0";
                        else if (MoneyDrops < 3000)
                            Item = "1091000-0-0-0-0-0";
                        else if (MoneyDrops < 10000)
                            Item = "1091010-0-0-0-0-0";
                        else
                            Item = "1091020-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);
                    }
                }
                else
                {
                    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.5))
                    {
                        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.3))
                    {
                        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.1))
                    {
                        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);
                    }
and post your code, which could be something like...

Code:
                    if (Name == "TreasureBird")
                    {
                        if (Other.ChanceSuccess(5))
                        {
                            string Item = "1088001-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);
                        }
                    }
Directly below the first portion I added.

Yours will not be identical to mine, but hopefully this helps.
Incariuz is offline  
Thanks
1 User
Old 07/30/2009, 18:26   #19
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
Yeah I figured it out but that would have helped, thanks.
Jay1029 is offline  
Reply


Similar Threads Similar Threads
[Mini-tut]How to drop items using a GM char!
12/20/2010 - Dekaron Private Server - 49 Replies
Since I saw a loads of people asking how to drop an item with a GM char, and loads of responses that you can't do it (LIES!!!), I decided to make this mini-tutorial. 1. Empty ur GM char's inventory 2. Buy lots of 2*4 items like 2h axes (fill ur inventory with them) 3. Go to the database, user_bag table, then find your character, see how he has alot of the same IDs. Those are the IDs of the axes. 4. Change the IDs to the IDs of the item you want to have. 5. Log in, go ingame 6. Click on...
Mobs will drop soc items???
11/07/2006 - Conquer Online 2 - 4 Replies
just wondering if anyone of u guys got a soc items but not soc weapons from killing the mobs? i heard twice regarding to this already that someone got a soc items NOT WEAPONS!!! from killing the mobs at ape city map!!! i wanna know whether it's true or not... thanks!!!! ;) :)



All times are GMT +1. The time now is 16:01.


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