Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 10:00

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

Advertisement



how to code the drop on monsters

Discussion on how to code the drop on monsters within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
how to code the drop on monsters

hello, can anyone say me how to code the drop on monsters?

i use the DeathCo Source right now and i learned to code npcs and lottery, if anyone can tell me how to code the drop rate, i will be very happy ( sry for my english )
_MaryJuana is offline  
Old 02/04/2009, 15:39   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
drop rates are in entities.cs

for regular droprates

Code:
   if (Other.ChanceSuccess(20))//CPBag
                    {
                        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);
                    }
for monster droprates

Code:
    if (Name == "HillMonster")//Emerald
                    {
                        if (Other.ChanceSuccess(1.7))
                        {
                            string Item = "1080001-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);
                        }
                    }
for multiple monsters

Code:
   if (Name == "Slinger" || Name == "BlueBird" || Name == "FiendBat" || Name == "Talon" || Name == "Bladeling" || Name == "AgileRat" || Name == "Naga" || Name == "GoldGhost")//CloudDiamond
                    {
                        if (Other.ChanceSuccess(1.7))
                        {
                            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);
                        }
                    }

press thanks if this helped...


( sick again....my mommy brought me home
PeTe Ninja is offline  
Thanks
1 User
Old 02/04/2009, 17:21   #3
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
thats for the LOFT source or not? o.O
_MaryJuana is offline  
Old 02/04/2009, 18:04   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
it is for lotf


press thanks if THAT helped you.. lol i want a thanks
PeTe Ninja is offline  
Thanks
2 Users
Old 02/04/2009, 19:53   #5
 
N6gesemees's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 164
Received Thanks: 43
Double post !
N6gesemees is offline  
Old 02/04/2009, 20:23   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by N6gesemees View Post
Double post !
not really its a bug and it happens if you click the sumbit reply twice which i did on accident because i didnt think it was loading
PeTe Ninja is offline  
Thanks
1 User
Old 02/04/2009, 23:04   #7
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,000
How it is a bug if you hit the Submit Reply button twice? It's working just as it is supposed to. :P
tanelipe is offline  
Old 02/04/2009, 23:11   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
bug for my computer , because it slow
PeTe Ninja is offline  
Thanks
1 User
Old 02/05/2009, 00:10   #9
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Patience is the key....
kinshi88 is offline  
Reply


Similar Threads Similar Threads
can anyone help me on making monsters drop cps?
06/21/2010 - CO2 Private Server - 10 Replies
sorry guys i know there is alot of threads for this but am having truble finding Mob.cs lol ahaha i know am a ture noob but im learning :) if u can help me that would be amazying thank again sorry for being too big of a noob
Boss monsters only drop 1 items
01/16/2010 - Dekaron Private Server - 2 Replies
If I make more set index inside monster.csv the monster won't drop any items. But if i make 1 set index the monster will drop the item. Why it won't allow to drop more than 1 items in each kill.
[HELP] How to make monsters drop Emeralds/moonbox?
05/12/2009 - CO2 Private Server - 6 Replies
tq binaries. how to make monsters drop emeralds and moonbox?
[HELP]how to remore the drop items from the monsters?
11/06/2008 - EO PServer Hosting - 9 Replies
hi, in my server allmost all of the monsters drop 2.7k eps cards, and when i use them they are value of 500keps, how can i remove them from the data base and make them from 500k eps to 2.7k eps?



All times are GMT +2. The time now is 10:00.


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.