[Help] Making drop DBs LOTF

07/12/2009 15:14 12tails#1
hello (again)

i wanna to make Pheasants drop dbs... and it works ... but drop too many dbs...
my question: have some code to make the chances? (Of course it have)
if have how i can put that...

the code that i putted on Entities.cs is that:

if (Name == "Pheasant")
{
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);
}

but i kill one Pheasant that no drops... the other drops... its like every monster drop... have something i can do for make it drop less?

if not thanks anyway xD
07/12/2009 16:20 f0am#2
No clue what you said ... but edit your drop to this

Code:

Code:
if (Name == "Pheasant")
                    {
if (Other.ChanceSuccess(1))
{
                        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);
}
                    }
07/12/2009 16:28 pajar22#3
awe.. i was gonna help if..might be my first time to help..lol..again nice coding foam lol.. 12tails you can change the drop here if (Other.ChanceSuccess(1)) << just adjust the number to whatever you want cause mybe 1 is too low for you ^^..
07/12/2009 17:08 12tails#4
ooo ok very thankx ^^