Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help]How to Set 1 mob to drop certain items

Initiate Mage
Joined
Aug 7, 2008
Messages
21
Reaction score
0
Hi all.. How can we set up a mob to drop certain items like Clean waters or other items so we can make MetZones and DBZones and Clean water hunting you know.. Just to set the mobs to drop that items.

Thanks
 
Experienced Elementalist
Joined
Jun 12, 2008
Messages
237
Reaction score
0
if u want to add a drop for clean water to WaterDevil mobs u have to add some things in entities.cs
If u are using stealarcher`s Source u have to do:
1. search for : " string Item = "1060101-0-0-0-0-0";"
2.before it add this drop:

Code:
                    if (Name == "WaterDevil")
                    {
                        if (Other.ChanceSuccess(1))
                        {
                            string Item = "721258-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);
                        }
                    }
3.after it add
Code:
                    if (Name != "WaterDevil")
                    {
4.and at end of drops add and }
If u are using TCWNN Source u have to do:
1. search for : "if (Map == 1043)"
2.before it add this:

Code:
                    if (Name == "WaterDevil")
                    {
                        if (Other.ChanceSuccess(1))
                        {
                            string Item = "721258-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);
                        }
                    }
3. search for :
Code:
                    if (Map != 1043 && Map != 1044 && Map != 1045 && Map != 1046 && Map != 1047 && Map != 1048 && Map != 1049)
4.do it :
Code:
                    if (Map != 1043 && Map != 1044 && Map != 1045 && Map != 1046 && Map != 1047 && Map != 1048 && Map != 1049 && Name != "WaterDevil" )
 
Last edited:
Initiate Mage
Joined
Aug 11, 2008
Messages
14
Reaction score
0
You don't need
Code:
                    if (Name != "WaterDevil")
                    {
 
Experienced Elementalist
Joined
Jun 12, 2008
Messages
237
Reaction score
0
well...nope if u want that mob to drop only 1 thing u have to add all things i told in that post....without the
Code:
if(Name !=WaterDevil)
{
the mob will drops like everyother mob + cleanwater
 
Last edited:
Initiate Mage
Joined
Aug 7, 2008
Messages
21
Reaction score
0
Im using shadowCo Source..

it's the same thing..

Something i dont get.. xD

how does the code looks like after it all maded?

thanks ;)
 
Initiate Mage
Joined
Aug 7, 2008
Messages
21
Reaction score
0
I mean.. I'm using ShadowCo source.. and im asking if should do the same as the Stealarcher source..?

Or TCWNN way?

And how the code looks.. when it's finished.. You said something before and something after.. xD Bit confusing =P

thanks
 
Initiate Mage
Joined
Aug 11, 2008
Messages
14
Reaction score
0
well...nope if u want that mob to drop only 1 thing u have to add all things i told in that post....without the
Code:
if(Name !=WaterDevil)
{
the mob will drops like everyother mob + cleanwater

Well I have it set up like this
Code:
                    if (Name == "WaterLord")
                    {
                        if (Other.ChanceSuccess(1))
                        {
                            string Item = "721258-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);
                        }
                    }
And it works perfect =P
 
Experienced Elementalist
Joined
Jun 12, 2008
Messages
237
Reaction score
0
well...i didnt tested that with mob names xD i tested with mobtypes and it didnt worked...i mean the mob drop the thing u want to drop but also it drop things like other mobs

anyway...hope i helped
 
Back
Top