Register for your free account! | Forgot your password?

You last visited: Today at 20:33

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

 

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

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   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 192
Received Thanks: 105
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   #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   #4
 
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   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
thanks rapid
Arcotemple:) is offline  
Thanks
2 Users
Old   #6
 
elite*gold: 0
Join Date: Dec 2008
Posts: 7
Received Thanks: 0
where said all cods??
sergen05 is offline  
Old   #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   #8
 
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   #9
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
pyro your clearly using a different source.
CIRASH is offline  
Old   #10
 
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   #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   #12
 
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   #13
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
lol yeah its a good source
Arcotemple:) is offline  
Old   #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   #15
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3
Received Thanks: 0
double post ftw


DaBigWeasel is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Mini-tut]How to drop items using a GM char!
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...
49 Replies - Dekaron Private Server
Mobs will drop soc items???
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...
4 Replies - CO2 Main - Discussions / Questions



All times are GMT +2. The time now is 20:33.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.