[request]a guide

01/12/2010 21:01 coreymills#1
on how to do mob drops i dont understand how it goes could someone make a guide on how to make mobs drop stuff.
01/12/2010 21:05 pro4never#2
depends on source but all you have to do is find where monster drops are already handled and create a new one.

Example: CoEmu I think it was something like Entities>Monster.cs and you would find various calculations to determine if an item is dropped or not. Simply copy one of them and change around the conditions

if (Calculation.PercentSuccess(percentnumber) && condition such as level, monster name, map number, if a quest is active etcetc)
{
item dropping code
}

Regardless of source there will already be SOMEWHERE in it that will deal with monster death and item dropping. Simply find and copy one of them and create a new one for the item you want to drop.
01/13/2010 03:24 Arcо#3
Well for 5165 its something like,
if (MobName.Contains("Mobname")
{
Drop info.
}
01/13/2010 10:53 coreymills#4
Code:
else if (MyMath.ChanceSuccess(DropRates.Meteor))
                    {
                        DI2.Info.ID = 1088001;
                        DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                        DI2.Info.CurDur = DI2.Info.MaxDur;
                    }
this is for 5165
01/16/2010 06:29 Arcо#5
Quote:
Originally Posted by coreymills View Post
Code:
else if (MyMath.ChanceSuccess(DropRates.Meteor))
                    {
                        DI2.Info.ID = 1088001;
                        DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                        DI2.Info.CurDur = DI2.Info.MaxDur;
                    }
this is for 5165
You can do it quite a few ways for 5165.
Not just one way.
01/16/2010 06:42 Santa#6
Quote:
Originally Posted by Hepatitis C View Post
Well for 5165 its something like,
if (MobName.Contains("Mobname")
{
Drop info.
}
I don't think you can do that can you? If you could that would make things a WHOLE lot easier, i know you can in CoEmu. But for things like MZ and how things have the same number you could just use the MobId.
01/16/2010 06:44 Arcо#7
Quote:
Originally Posted by StarBucks View Post
I don't think you can do that can you? If you could that would make things a WHOLE lot easier, i know you can in CoEmu. But for things like MZ and how things have the same number you could just use the MobId.
Yes my idea does work.
If you wanna do it for everything in MZ you can do
if (GC.MyChar.Loc.Map == MapID)
{
drop info
}
01/16/2010 07:07 Santa#8
Quote:
Originally Posted by Hepatitis C View Post
Yes my idea does work.
If you wanna do it for everything in MZ you can do
if (GC.MyChar.Loc.Map == MapID)
{
drop info
}
Yes i know you can do that, lol. What I was trying to say was if you do the mob drops by name rather than mod id for things like MZ or special drops, it would drop the same item for every mob with that name. So you wouldn't really be able to have different drops for different MetDoves.. I know thats confusing but im too damn tired.
01/16/2010 13:29 coreymills#9
ya i still havn't figured out how to make a certine mob drop an item like gold ghost drop sky tokens