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 05:34

  • 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   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
[Mini-Guide]How to make mobs drop certain items

Somebody asked me to make a mini-tutorial for making mobs drop certain stuff in LOTF.
Well first we go to Entities.cs,
when your done with that search for this
Code:
                    if (Name == "Guard")
There should be something under that somewhat like this:
Code:
                    {
                        if (Other.ChanceSuccess(100))
                        {
                            string Item = "721020-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);
                        }
                    }
that right there is the code for Guards to drop Moonbox, Since moonbox code is 71020.
So for those "noobs" out there lol your probably wondering with the five "0"'s are after 721020.
They represent the stats of the item, usually used for gear.
the five zeros represent plus of the item, bless of the item, enchantment of the item, and the last two zeros are the gem's.
So back to the topic, this is the code you are gonna use to make a mob drop a certain item.

Code:
                    if (Name == "MOBNAME")
                    {
                        if (Other.ChanceSuccess(NUMBER CHANCE THE ITEM HAS TO DROP))
                        {
                            string Item = "ITEMID-PLUS-BLESS-ENCHANTMENT-GEMID-GEMID";
                            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);
                        }
                    }
That's pretty much how your gonna build mob drops code.
If you want the mob to drop more than one item then just look over the code and you'll figure it out.
Hope this helped somebody.

Btw: Wrote this pretty quick so something might be missing.
Just tell me if you see anything wrong.
Arcotemple:) is offline  
Thanks
5 Users
Old 07/20/2009, 10:17   #2
 
UnoAmigos's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 107
Quote:
Originally Posted by Arcotemple:) View Post
thats spam...

dont post spam

you'll get infractions
Sorry then....i just want to say "Good/Nice"

UnoAmigos is offline  
Old 07/20/2009, 10:38   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
Quote:
Originally Posted by UnoAmigos View Post
Sorry then....i just want to say "Good/Nice"

then +k please lol
Arcotemple:) is offline  
Thanks
2 Users
Old 07/20/2009, 10:51   #4
 
~RapidBlade~'s Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 113
Received Thanks: 15
Good guide, kept it nice and simple
~RapidBlade~ is offline  
Thanks
1 User
Old 07/20/2009, 11:04   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
thanks rapid
Arcotemple:) is offline  
Thanks
2 Users
Old 07/20/2009, 13:05   #6
 
elite*gold: 0
Join Date: Dec 2008
Posts: 7
Received Thanks: 0
where said all cods??
sergen05 is offline  
Old 07/21/2009, 10:09   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
@sergen05
this isnt a release
its a guide
Arcotemple:) is offline  
Thanks
2 Users
Old 07/23/2009, 21:25   #8
 
Pyro-G's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 25
Received Thanks: 10
Wtf? I can't find anything you wanted us to find....lol

if (Name == "Guard") doesnt exist
if (Other.ChanceSuccess doesnt exist
DroppedItem item = doesnt exist
World.ItemDrops(item); doesnt exist

Why does dumb sh*t like this always happen....

K..there's not even 1 monster name in the file so I don't see how this is going to make certain monsters drop certain things..lol
Pyro-G is offline  
Old 07/23/2009, 22:17   #9
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
pyro your clearly using a different source.
CIRASH is offline  
Old 07/26/2009, 03:12   #10
 
Pyro-G's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 25
Received Thanks: 10
I'm using the source Arcotemple provided here
Pyro-G is offline  
Old 07/26/2009, 03:16   #11
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol wow thats my old source
i never used it though
idk much about it
Arcotemple:) is offline  
Thanks
1 User
Old 07/26/2009, 21:40   #12
 
Pyro-G's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 25
Received Thanks: 10
It's a good source. Especially for practice.
Pyro-G is offline  
Old 07/26/2009, 23:22   #13
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol yeah its a good source
Arcotemple:) is offline  
Old 07/27/2009, 11:30   #14
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3
Received Thanks: 0
great guide i used it on my server to make every monster drop dbs lol
DaBigWeasel is offline  
Old 07/27/2009, 11:49   #15
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3
Received Thanks: 0
double post ftw
DaBigWeasel 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 +2. The time now is 05:34.


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.