Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] With DisCity Mob Drops

Discussion on [Help] With DisCity Mob Drops within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 35
Received Thanks: 41
[Help] With DisCity Mob Drops

Code:
                    if (Name == "UndeadSpearman")
                    {
                        string Item = "723085-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(10) || BossMob && Other.ChanceSuccess(30)) ;
                    }
                }
it says
Code:
;
is an error anyone know how to fix it?
jaker63 is offline  
Old 09/29/2008, 04:12   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Code:
if (Name == "UndeadSpearman")
                    {
if (Other.ChanceSuccess(10) || BossMob && Other.ChanceSuccess(30))
{
                        string Item = "723085-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);
}

                    }
I think that's what you're looking for, not sure..
tao4229 is offline  
Thanks
1 User
Old 09/30/2008, 05:29   #3
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
for you newbie here is some tutorials of drop

red color= needs to be changed

Selected monster will only drop the item you choose.
Code:
                        if (Name == "[COLOR="Red"]Monster Name here[/COLOR]")
                        {
                            if (Other.ChanceSuccess([COLOR="Red"]rate of the drop[/COLOR]))
                            {
                                string Item = "[COLOR="Red"]item no.[/COLOR]-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 you want all monster will drop here is it.
Code:
                            if (Other.ChanceSuccess([COLOR="Red"]drop rate[/COLOR]))
                            {
                                string Item = "[COLOR="Red"]item no.[/COLOR]-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 you want your monster to drop your selected item for 100% here is it
Code:
                        if (Name == "[COLOR="Red"]Monster name[/COLOR]")
                        {
                            string Item = "[COLOR="Red"]item no.[/COLOR]-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);
                        }
hope it help for you
pauldexter is offline  
Thanks
3 Users
Old 10/26/2008, 15:32   #4
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
it helped me to create a new item that gives u cps
~jochemke~ is offline  
Old 10/26/2008, 20:00   #5
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Actually,you didnt get an error,only a warning. As I say ; warning are nothing , just ignore them
_Emme_ is offline  
Old 10/26/2008, 20:20   #6

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
But a warning warns you for something so you're about to do something wrong, non?
Kiyono is offline  
Old 10/26/2008, 22:39   #7
 
elite*gold: 0
Join Date: Apr 2006
Posts: 49
Received Thanks: 12
Quote:
if (Other.ChanceSuccess(10) || BossMob && Other.ChanceSuccess(30)) ;
that is an invalid "if" code block, as you are terminating it with a ;, not with a { CODE }
null is offline  
Reply


Similar Threads Similar Threads
[Help] DisCity MapID
04/10/2010 - CO2 Private Server - 9 Replies
Can any one tell me the map ids for each stage of dis please =]
DisCity map ids?
03/14/2010 - CO2 Private Server - 32 Replies
I've tried the following: 2021, 2022, 2023, and 2024 But none of them seem to work(they take me to jail-like map). Any suggestions?
Help with discity
02/18/2010 - CO2 Private Server - 5 Replies
Im coding dis city into my 5165 source and im having trouble on one part, once you kill all of the syren's im trying to make it so that UltimatePluto will spawn only when the map has 0 syren's. I have made it so the syrens dont respawn and it calculates how many syren's are left in the map but i dont know how to make UltimatePluto spawn only when there are 0. if someone can help me it would be much appriciated! thx
I need DisCity Translate!
03/02/2009 - CO2 Private Server - 15 Replies
Sorry ppl but i couldn't translate any npc ... if any1 can help me in translate ?? or give me dis city Translate
Question regarding DisCity
07/07/2007 - Conquer Online 2 - 7 Replies
Ok these are my questions about dis city : 1. For the first stage is there a good spawn besides on the bridge that is also a very good source for soul stones? 2.One the third stage which side is better in you alls opinions xD 2b. One the third stage if there is a spawn that you get nds like not constant but have better luck there then plz do tell xD neone that helps me out gets +k XD



All times are GMT +2. The time now is 07:43.


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.