Requirements for this code: Common Sense XD
Red Color: must be changed!
In Entities.cs
All monster will drop your selected items:
Code:
if (Other.ChanceSuccess([COLOR="Red"]rate of the drop ex. 2[/COLOR]))
{
string Item = "[COLOR="Red"]item number here(ex. 721537 for skytoken)[/COLOR]-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 you want that your drop will only drop in your selected monster:
Code:
if (Name == "[COLOR="Red"]Monster Name Here[/COLOR]")
{
if (Other.ChanceSuccess([COLOR="Red"]rate of the drop ex. 2[/COLOR]))
{
string Item = "[COLOR="Red"]item number here(ex. 721537 for skytoken)[/COLOR]-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);
}
}
Item Number:
730001=+1Stone
730002=+2Stone
730003=+3Stone
730004=+4Stone
730005=+5Stone
730006=+6Stone
730007=+7Stone
730008=+8Stone
730009=+9Stone
if this useful please hit Thanks