this is for both lotf and coemu
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 How to make Cool Monster Drops

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 56
Join date : 2009-08-20

PostSubject: How to make Cool Monster Drops   Sun Aug 23, 2009 3:03 pm

Go to entities.cs Press Ctrl+F and find 1060100.

You'll see something like this:

Code:
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);
}

That's the code that makes a certain item drops
In this line

Code:
string Item = "1060100-0-0-0-0-0";
Quick breakdown of the numbers 1060100 is the item id first zero is for the plus of the item second 0 is the bless of the item 3rd 0 is the enchant of the item 4th 0 is the gemid and the fifth 0 is the gem id aswell

You just have to change the 1060100 to the item you want to drop ID.

But if you want to add more Items to drop and don't delete the others that are dropping already just do this
Copy the code and paste it after one of dropping codes. Make it look like this:

Code:
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(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);
}

This is just an example of what it does look like with the others.. You just have to paste 1 after another one and change the ..
string Item = "YOUR ITEM ID HERE-0-0-0-0-0";

And then you can change the drop rate of that item too..
Just change this..

Code:
if (Other.ChanceSuccess(1)) <<-- Change the 1 for the rate that you want..

NOTE: Rate 1 it's medium.. 30 it's super hiper mega high. 50 SUPER HIPER MEGA MEGA MEGA HIGH
1 number changes the rate a lot you can use 0.5 ; 2.5
You know.. numbers with . xDD

Not english but i guess this is helping..
Continuing..

After you made this.. Open source with Visual Studio C# and make rebuild Solution and there you have your mobs dropping items!!
----------------------------------------------------------------------------------
Getting a specific mob dropping a specific item:

Do the progress you made before.. just add this before the code.

Code:
if (Name == "YOUR MOB NAME HERE! ")
{

And then the code finished will look like this..

Code:
if (Name == "MOB NAME HERE")
{
if (Other.ChanceSuccess(2.5))
{
string Item = "1088000-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);
}
Back to top Go down
View user profile http://openprojects.forumotions.net
 
How to make Cool Monster Drops
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Lake Kezia Monster
» HOW TO MAKE BOOKMARKS FROM METAL
» my dragon deck for kcvds any1 think it need help make a shoutout im fix it=]..
» LOL - I'm trying to make a background for "rainbow"
» Cool new 1/35 scale sci-fi/Girly figures....

Permissions in this forum:You cannot reply to topics in this forum
lotf/coemu project :: LOTF :: Guides-
Jump to: