its a on death method if You want it to have random drops maybe something like this is what your looking for ,, is a few different ways to do the drops depends on what You wanting to do
public override void GenerateLoot()
{
AddLoot( LootPack.UltraRich ); /// this controls the lootpack
AddLoot( LootPack.MedScrolls, 2 ); // this is for dropping scrolls
AddLoot( LootPack.Gems, 5 ); // adds gems to loot
if (Utility.Random(5) == 2) //Select random number between 0-4 and if it's 2 continue
{
switch ( Utility.Random( 6 )) //select random number between 0-46
{
case 0: AddToBackpack( new YourDropGoesHere () ); break; //// this section allows You to add Your Own drops to it
case 1: AddToBackpack( new CuteFluffyBunnyFeet() ); break;
case 2: AddToBackpack( new RingOfTheCuteFluffyBunny() ); break;
case 3: AddToBackpack( new CuteFluffyBunnyDagger() ); break;
case 4: AddToBackpack( new CuteFluffyBunnyEarrings() ); break;
case 5: AddToBackpack( new Carrot() ); break;
case 6: AddToBackpack( new RandomPowerScrollDeed() ); break;
case 7: AddToBackpack( new WayStone() ); break;
//case 8: AddToBackpack( new ITEMHERE() ); break; //// remember for each new item You have to change the case #
}
SendMessage( "You got a goodie....");
}
}